Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory leak during shard install #46

Closed
fauno opened this issue Nov 8, 2019 · 3 comments
Closed

memory leak during shard install #46

fauno opened this issue Nov 8, 2019 · 3 comments

Comments

@fauno
Copy link

fauno commented Nov 8, 2019

Hi, while trying to install micrate as a dependency for crecto, I got this message, the shard install took 70% RAM (out of 8GB) and was later killed by OOM. I tracked it down to micrate, but don't have much info since shard install -v doesn't show anything related (I think, I'm a newbie at crystal, but I'd expected to see some messages). Crystal version is 0.31.1

GC Warning: Repeated allocation of very large block (appr. size 805310464):
        May lead to memory leak and poor performance
@Fishdigger
Copy link

I'm also having this issue with Crystal v0.32.1.

@c-cesar
Copy link

c-cesar commented Mar 29, 2020

This is a shard bug.
I had to downgrade shards from 0.9 to 0.8 to stop getting oom.

As a sidenote to get crecto working I had to fix sqlite3 version to 0.14 (posting, because shards messages about conflicting versions are horrible.

sqlite3:
    github: crystal-lang/crystal-sqlite3
    version: ~> 0.14.0

Reported upstream:
crystal-lang/shards#338

@drujensen
Copy link
Member

could not duplicate. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants