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.

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)

image

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
argzdevcommented, Apr 8, 2022

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.

0reactions
3HJackcommented, Apr 8, 2022

@argzdev The crash is not happening in the assetPathExists function, so I don’t think it can be fixed.

Read more comments on GitHub >

github_iconTop 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 >

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