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

bolt db can't allocate memory on ios #694

Open
dreacot opened this issue Oct 22, 2024 · 1 comment · May be fixed by #698
Open

bolt db can't allocate memory on ios #694

dreacot opened this issue Oct 22, 2024 · 1 comment · May be fixed by #698
Assignees

Comments

@dreacot
Copy link
Member

dreacot commented Oct 22, 2024

2024-10-22 10:45:15.518 [INF] DCR: Opened wallet
2024-10-22 10:45:15.534 [ERR] SHWL: loader.OpenExistingWallet:: wallet.OpenDB: cannot allocate memory
2024-10-22 10:45:15.534 [ERR] UI: Error opening wallet: loader.OpenExistingWallet:: wallet.OpenDB: cannot allocate memory
@dreacot
Copy link
Member Author

dreacot commented Oct 22, 2024

Bolt db crashes when wallet database size is getting close to 250mb. At that point, it's unable to open wallet because the allocated app memory cannot handle that. The crash usually starts from when the wallet is fetching headers and the wallet db rises to the size which the app's allocated memory cannot handle.

this issues was faced during dcrandroid and dcrios days planetdecred/dcrandroid#222

issue was later moved to dcrlibwallet
planetdecred/dcrlibwallet#39

the wallet database interface was exposed to allow the client choose the db driver to be used
decred/dcrwallet#1282

a fix was patched on dcrios by using badgerdb instead of bolt db
https://github.com/planetdecred/dcrios/pull/742/files

we can also do a check for when the user's disk space is low, to prevent that error from badger
planetdecred/dcrandroid#607

@dreacot dreacot linked a pull request Oct 24, 2024 that will close this issue
1 task
@dreacot dreacot self-assigned this Oct 24, 2024
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

Successfully merging a pull request may close this issue.

1 participant