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

Cannot allocate memory Error #147

Open
junjchen opened this issue Dec 6, 2021 · 0 comments
Open

Cannot allocate memory Error #147

junjchen opened this issue Dec 6, 2021 · 0 comments

Comments

@junjchen
Copy link

junjchen commented Dec 6, 2021

Hi,

I am getting Errno::ENOMEM: Cannot allocate memory errors when trying to use this gem to decrypt text from a large size dataset. The data set contains 25k rows and this error started to appear after processing around 11k rows.

Container running the worker still has a lot of unused RAM so I dont believe system memory is the issue here. I also tried setting auto-expand-secmem in .gnupg/gpg-agent.conf but it didnt help either.

Would really appreciate if anyone can provide a direction as to what could have caused this issue.

Error stack

/usr/src/app/vendor/bundle/ruby/2.7.0/gems/gpgme-2.0.20/lib/gpgme/ctx.rb:435:in `decrypt_verify'
/usr/src/app/vendor/bundle/ruby/2.7.0/gems/gpgme-2.0.20/lib/gpgme/crypto.rb:172:in `block in decrypt'
/usr/src/app/vendor/bundle/ruby/2.7.0/gems/gpgme-2.0.20/lib/gpgme/ctx.rb:79:in `new'
/usr/src/app/vendor/bundle/ruby/2.7.0/gems/gpgme-2.0.20/lib/gpgme/crypto.rb:170:in `decrypt'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant