Giter VIP home page Giter VIP logo

Comments (5)

penfeizhou avatar penfeizhou commented on June 15, 2024

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.

 avatar commented on June 15, 2024

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.

penfeizhou avatar penfeizhou commented on June 15, 2024

OutOfMemory Exception willl cause function not working.

from apng4android.

 avatar commented on June 15, 2024

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.

jingpeng avatar jingpeng commented on June 15, 2024

update to 2.2.0 will fix it

from apng4android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.