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

Android 14 - OutOfMemoryError #231

Open
josh-watcha opened this issue Jan 20, 2025 · 0 comments
Open

Android 14 - OutOfMemoryError #231

josh-watcha opened this issue Jan 20, 2025 · 0 comments

Comments

@josh-watcha
Copy link

This abnormal termination is happening, and there have been about 100 cases in a month.
More than 98% are Android 14 and Samsung devices

Iterator<Bitmap> iterator = cacheBitmaps.iterator();
I think too many bitmaps are cached in obtainBitmap, is it possible to modify it?

Exception java.lang.OutOfMemoryError:
  at java.util.HashMap$KeySet.iterator (HashMap.java:981)
  at java.util.HashSet.iterator (HashSet.java:173)
  at com.github.penfeizhou.animation.decode.FrameSeqDecoder.obtainBitmap (FrameSeqDecoder.java:103)
  at com.github.penfeizhou.animation.apng.decode.APNGDecoder.renderFrame (APNGDecoder.java:139)
  at com.github.penfeizhou.animation.decode.FrameSeqDecoder.step (FrameSeqDecoder.java:510)
  at com.github.penfeizhou.animation.decode.FrameSeqDecoder.access$200 (FrameSeqDecoder.java:36)
  at com.github.penfeizhou.animation.decode.FrameSeqDecoder$1.run (FrameSeqDecoder.java:60)
  at android.os.Handler.handleCallback (Handler.java:958)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.os.HandlerThread.run (HandlerThread.java:67)
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

1 participant