zhanghai / zhanghai/MaterialFiles
App crashes while trying to generate thumbnail
Open
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 9k
- Forks
- 736
- PR merge metrics
- No merged PRs in 30d
Description
This mostly happens with folders containing a lot of large videos.
Expected behavior: Silently fail and don't show thumbnail for those files.
Current Behavior: App crashes with the following error.
msg: java.util.concurrent.TimeoutException: android.media.MediaMetadataRetriever.finalize() timed out after 10 seconds
stacktrace: java.util.concurrent.TimeoutException: android.media.MediaMetadataRetriever.finalize() timed out after 10 seconds
at android.media.MediaMetadataRetriever.native_finalize(Native Method)
at android.media.MediaMetadataRetriever.finalize(MediaMetadataRetriever.java:1109)
at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:319)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:306)
at java.lang.Daemons$Daemon.run(Daemons.java:140)
at java.lang.Thread.run(Thread.java:1012)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the app's thumbnail-generation entry point and how Android MediaMetadataRetriever is used for large video folders. Reproduce the reported TimeoutException, then verify that affected files no longer crash the app and simply display without thumbnails.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100