Comments (5)
From this error message,it could because of the high memory usage.You should check system and app memory usage at the moment while this exception occured.
from apng4android.
I have no controls over images that crash. I wonder if this out of memory error could be handled like it is in other part of the library.
from apng4android.
OutOfMemory Exception willl cause function not working.
from apng4android.
Yes, I understand, but handling for avoiding a crash would be better for UX.
I still have crashes like:
STACK_TRACE=java.lang.OutOfMemoryError: Failed to allocate a 911429800 byte allocation with 22020815 free bytes and 490MB until OOM, max allowed footprint 44074399, growth limit 536870912
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:54)
at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:49)
at java.nio.ByteBuffer.allocate(ByteBuffer.java:281)
at com.github.penfeizhou.animation.io.ByteBufferWriter.reset(ByteBufferWriter.java:51)
at com.github.penfeizhou.animation.apng.io.APNGWriter.reset(APNGWriter.java:33)
at com.github.penfeizhou.animation.apng.decode.APNGFrame.encode(APNGFrame.java:70)
at com.github.penfeizhou.animation.apng.decode.APNGFrame.draw(APNGFrame.java:126)
at com.github.penfeizhou.animation.apng.decode.APNGFrame.draw(APNGFrame.java:22)
at com.github.penfeizhou.animation.apng.decode.APNGDecoder.renderFrame(APNGDecoder.java:190)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder.step(FrameSeqDecoder.java:451)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder.access$200(FrameSeqDecoder.java:34)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder$1.run(FrameSeqDecoder.java:58)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder.innerStart(FrameSeqDecoder.java:270)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder.access$900(FrameSeqDecoder.java:34)
at com.github.penfeizhou.animation.decode.FrameSeqDecoder$3.run(FrameSeqDecoder.java:240)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)
from apng4android.
update to 2.2.0 will fix it
from apng4android.
Related Issues (20)
- 异常报错 HOT 2
- 使用Glide插件 加载没有动画效果了? HOT 1
- How to load APNG file from Shared AssetFolder.? HOT 2
- Apng fails to render with versions newer then 2.23.0 HOT 9
- Seekbar 的 thumb 中无法使用 HOT 4
- 调用WebPEncoder.fromGif实现gif转webp,webp出现闪的问题 HOT 13
- 虚拟内存变大 HOT 1
- 虚拟内存变大
- AVIF 的动画能够支持一下吗? HOT 1
- Is there a way to use this with compose? HOT 2
- Gif memory leak HOT 8
- Make APNGDecoder#getLoopCount public method
- [QUESTION]: libwebp vulnerabilty HOT 5
- notifyItemChanged 刷新之后其他item会暂停
- 使用ImageSpan时,不会自动播放,有没有不使用定时刷新invalidate的方案 HOT 7
- recycleview加载apng我没有直接使用glide加载,我是先通过下载到本地的方式再转的APNGDrawable.fromFile(filePath),会偶现动画不播的情况
- [bug] onRender:Buffer not large enough for pixels HOT 1
- Glide 支持 DiskCacheStrategy.ALL 和 DiskCacheStrategy.RESOURCE 示意代码
- Fatal Exception: java.lang.OutOfMemoryError android.graphics.Bitmap.nativeCreate (Bitmap.java) android.graphics.Bitmap.createBitmap (Bitmap.java:991)
- AVIF module is unavailable on maven HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apng4android.