-
Notifications
You must be signed in to change notification settings - Fork 564
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
java.io.FileNotFoundException: open failed: ENOSPC (No space left on device) #5802
Comments
Hi @mrblrrd, thanks for reaching out. It looks like the issue is due to the device not having enough memory left in the internal storage. Does this happen even with fair amount of internal memory within the device? Also is this occurring on multiple devices? |
Yes, this is due to lack of disk space. I believe this should not lead to a crash of the application. We see a noticeable increase in such crashes in our prod application on Crashlytics Dashboard after updating to version 18.6.2. Different devices: Redmi 9T, Honor X7a, Redmi Note 10S, Galaxy A12, etc. |
Thanks for the extra details, @mrblrrd. What was the previous version of Crashlytics did you use prior to encounter this issue? Any chance you could share the full stacktrace? I'm having a hard time pin pointing in which part of Crashlytics is triggering the issue. |
The previous version was 18.3.3. The stack trace above is full. I can give you another recent example:
Most likely the error occurs when accessing dataStore without catching |
Hey @mrblrrd, thanks for pointing me in the right direction. I was able to kind of simulate the behavior using a datastore separately without Firebase and then testing it on a emulator with full memory. It's technically the same with the issue here. I might have a solution in mind. I'll reach out to our engineers and see if we can add this fix. Notes: Lines 103 to 112 in 30b10ab
Upon testing, initialization of datastore does not cause any crash. I'm suspecting because the created On the other hand, when calling the Lines 87 to 89 in 30b10ab
which will cause the Possible solution would to be add a conditional checker before writing in the datastore, or actually I think a simple try catch would also work.
|
Proposed fix for issue #5802. Datastore crashes when writing from a device that has full internal memory. I did a manual test by creating a clean project and importing the part of the code with the condition checkers to simulate the issue. I was able to receive the issue stacktrace the developer was encountering and was able to verify that the try catch condition mitigates the issue.
This was fixed, please update to the latest version. |
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Relevant Code:
No specific code.
The text was updated successfully, but these errors were encountered: