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

Error: Internal device storage space low! #893

Open
michielvanerp opened this issue Dec 2, 2022 · 4 comments
Open

Error: Internal device storage space low! #893

michielvanerp opened this issue Dec 2, 2022 · 4 comments

Comments

@michielvanerp
Copy link

I recently got this error on my OnePlus 9 Pro:
Internal device storage space low! Bitcoin Wallet uses internal storage for remembering transactions and blocks. If it runs out of space, it will stop working and your Bitcoins will be at risk! Do you want to open the Application Manager to uninstall unneeded apps?

But no matter how many apps I remove (12 GB of free space now, as reported by Google Files) it keeps giving me this error.
How to solve this? I think it might be a storage permission thing, maybe it can't write. But can't find that in the Android settings of the app where you can configure notifications, permissions, etc.

@schildbach
Copy link
Collaborator

schildbach commented Dec 3, 2022

The app doesn't use external storage, so it doesn't even request or need storage permissions. The error message is clearly about app-internal storage, which doesn't require permissions to access.

The app uses

boolean isLow =
    application.registerReceiver(null, new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW)) != null;

to determine if storage is low. It has been deprecated, but there is no replacement either. Maybe we need to remove the entire dialog.

@michielvanerp
Copy link
Author

michielvanerp commented Dec 3, 2022

Ok, removing it sounds useful then.
At the bottom of the app I also get Error while syncing. Not enough storage.
Restoring a wallet is blocked: after the restore the app closes, when I start the app again the same dialog and message at the bottom appear. With zero balance shown.

@schildbach
Copy link
Collaborator

It should be noted though that the cause of your problem seems to be a bug in your device system, assuming that you in fact have enough storage left. Other apps will be affected too. Maybe you should report this to OnePlus?

@michielvanerp
Copy link
Author

I agree something feels off here. Although the OS or other apps weren't acting strange, the app Google Files was reporting strange numbers. '116 GB used, of 128 GB capacity' on the first screen but when clicking on that number, it said '142 GB used, of 128 GB capacity'. The sum of the categories below it seems right - and impossible, since I only have 128 GB. 😉
Removing more apps, cleaning cache of several ohter (system) apps somehow resolved the Bitcoin issue.
Google Files now states '113 GB used, of 128 GB capacity' on the first screen, when clicking on that number, it says '127 GB used, of 128 GB capacity'.
Although the numbers are still weird, my wallet was able to restore now. Thanks for your help!

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

2 participants