AssetManager.java
See original GitHub issue- Android Studio version: 2021.1.1 Patch 2
- Firebase Component: _____ (Database, Firestore, Storage, Functions, etc)
- Component version: _firebase-bom: 29.0.3
- implementation ‘com.google.firebase:firebase-analytics’
- implementation ‘com.google.firebase:firebase-auth’
- implementation ‘com.google.firebase:firebase-auth-ktx’
- implementation ‘com.google.firebase:firebase-messaging’
- implementation ‘com.google.firebase:firebase-dynamic-links’
- implementation ‘com.google.firebase:firebase-perf’
- implementation ‘com.google.firebase:firebase-crashlytics-ndk’
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur? This could be a description, log/console output, etc.
Relevant Code:
Fatal Exception: java.util.concurrent.TimeoutException: android.content.res.AssetManager$AssetInputStream.finalize() timed out after 10 seconds
at android.content.res.AssetManager$AssetInputStream.close(AssetManager.java:622)
at android.content.res.AssetManager$AssetInputStream.finalize(AssetManager.java:655)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:217)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:200)
at java.lang.Thread.run(Thread.java:818)
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
AssetManager - Android Developers
Stay organized with collections Save and categorize content based on your preferences. Dismiss Got it. Kotlin |Java. public final class AssetManager
Read more >core/java/android/content/res/AssetManager.java - Google Git
* Create a new AssetManager containing only the basic system assets. * Applications will not generally use this method, instead retrieving the. *...
Read more >assets - android assetManager - Stack Overflow
First I try to get path (in green ractangle) this way but I alwase get "False". Then I comment this block and try...
Read more >android.content.res.AssetManager.open java code examples
Best Java code snippets using android.content.res.AssetManager.open (Showing top 20 results out of 5,895). Refine search Refine arrow. InputStream.close.
Read more >AssetManager (The Adobe AEM Quickstart and Web ...
java.lang.String, assignAssetID(Asset asset). Ask Asset ID Provider (associated with Asset Manager) to assign ID (if needed) to an asset and establish its ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @3HJack, we were able to come up with a fix using
.open()
instead. Since.list()
have performance issues, I think.open()
would be a better option to choose when checking if a specific file exists, at the same time if any issue occurs, the correct exception (IOException) will definitely get caught. That being said, the fix for this has been merged, so I’ll be closing this now.@argzdev The crash is not happening in the assetPathExists function, so I don’t think it can be fixed.