question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DATASTORE] Out of memory error

See original GitHub issue

Hello,

I am getting the following out of memory error on my Android 7 device while using the Datastore:

Possible Unhandled Promise Rejection (id: 2):
Error: database or disk is full (code 13)
convertError@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:102962:24
map@[native code]
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:102765:35
__invokeCallback@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2790:23
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2494:34
__guard@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2702:15
invokeCallbackAndReturnFlushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:2493:21
invokeCallbackAndReturnFlushedQueue@[native code]

I understand that Android devices have a soft cap of 7MB per app for storage but this is far below my requirements (2GB db), as the storage cap is not recommended to be exceeded, is there any other way to overcome this? Set the DB into the devices storage? My Android devices are running in Kiosk mode with 12GB internal storage.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
PatrickLambert1101commented, Apr 28, 2020

Thanks @Ashish-Nanda that works,

The issue occurred when my database grew, could I expect the Datastore to handle a 2GB database with its current setup? Do you have a roadmap for larger DB support?

1reaction
Ashish-Nandacommented, Apr 27, 2020

@PatrickLambert1101 it seems like you are using React Native. There is a limit of 6mb on Android. Could you try the steps linked here to increase the size: https://stackoverflow.com/a/57013148

Also was datastore working initially and then you got the error as the size of your database grew? I would try increasing the size but wanted to let you know we are aware of this issue and looking into alternative storage layers to support larger databases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

out of memory errors - VMware Technology Network VMTN
on my esxi 4.1 host, I am unable to browse to the local datastore. and in message logs, I am seeing a lot...
Read more >
Resolve "Out of Memory" Errors - MATLAB & Simulink
When your code operates on large amounts of data or does not use memory efficiently, MATLAB ® might produce an error in response...
Read more >
Firebase Firestore Emulator throwing java out of memory ...
It keeps throwing a memory error. Any help/ideas? These are the logs given by firestore-debug.log when trying to run command: firebase emulators ...
Read more >
Increasing memory giving error in VMware ESXi - Server Fault
Please check if you can access the file from datastore and see if you are seeing any errors in the datastore.
Read more >
Out of memory when creating index with concatenated datastore
ERROR: ORA-04030: out of process memory when trying to allocate 24 bytes (top call heap,PGA heap pool) I can create the index on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found