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

FileNotFoundException - Too many open files #71

Closed
mhernand40 opened this issue Sep 16, 2022 · 4 comments
Closed

FileNotFoundException - Too many open files #71

mhernand40 opened this issue Sep 16, 2022 · 4 comments

Comments

@mhernand40
Copy link

Seeing the following crash in production for our Android app:

java.io.FileNotFoundException: /data/user/0/*********/app_amplitude-disk-queue/cab21925f6ed6f9bb0f53ea20cba9c2b-4.tmp (Too many open files)
    at java.io.FileOutputStream.open0(FileOutputStream.java)
    at java.io.FileOutputStream.open(FileOutputStream.java:287)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:223)
    at com.amplitude.core.utilities.EventsFileManager.writeToFile(SourceFile:147)
    at com.amplitude.core.utilities.EventsFileManager.finish(SourceFile:128)
    at com.amplitude.core.utilities.EventsFileManager.rollover(SourceFile:99)
    at com.amplitude.android.utilities.AndroidStorage.rollover
    at com.amplitude.core.platform.EventPipeline$upload$1$1$1.invokeSuspend(SourceFile:102)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:33)
    at kotlinx.coroutines.DispatchedTask.run(SourceFile:106)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
    at java.lang.Thread.run(Thread.java:764)

Though the number of affected users seems to be low; less than 50 users or so.

Environment

  • Device OS and Version: Android 7.0, 7.1.1, 7.1.2, 8.0.0, 8.1.0, 9, 10, 11, 12
@yuhao900914
Copy link
Contributor

Hi @mhernand40 , which version of SDK are you using?

@mhernand40
Copy link
Author

Hi @yuhao900914. I am using version 1.3.0.

@bohan-amplitude
Copy link
Contributor

Hi @mhernand40 Thank you for submitting feedback. I'm working on fix the issue. I'll release a new version and give you update.

@liuyang1520
Copy link
Collaborator

Thank you for supporting Amplitude! This issue should be fixed in #103 and released in 1.6.1.

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

4 participants