Simple-Gallery icon indicating copy to clipboard operation
Simple-Gallery copied to clipboard

Gallery crash opening webp file

Open amebtw opened this issue 1 year ago • 9 comments

I have a few images like this one that just crash the gallery to the main screen when I try to open them. The gallery is fine displaying the thumbnail of them. This is what Scoop caught:

FATAL EXCEPTION: FrameDecoderExecutor-0
Process: com.simplemobiletools.gallery.pro, PID: 30072
java.lang.OutOfMemoryError: Failed to allocate a 361344016 byte allocation with 25165824 free bytes and 183MB until OOM, target footprint 33738944, growth limit 201326592
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:54)
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:49)
 at java.nio.ByteBuffer.allocate(ByteBuffer.java:284)
 at m2.b.A(SourceFile:20)
 at m2.b.l(Unknown Source:0)
 at m2.b$e.run(SourceFile:52)
 at android.os.Handler.handleCallback(Handler.java:942)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loopOnce(Looper.java:201)
 at android.os.Looper.loop(Looper.java:288)
 at android.os.HandlerThread.run(HandlerThread.java:67)

FATAL EXCEPTION: FrameDecoderExecutor-2
Process: com.simplemobiletools.gallery.pro, PID: 30370
java.lang.OutOfMemoryError: Failed to allocate a 608000016 byte allocation with 50331648 free bytes and 93MB until OOM, target footprint 153160976, growth limit 201326592
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:54)
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:49)
 at java.nio.ByteBuffer.allocate(ByteBuffer.java:284)
 at m2.b.A(SourceFile:20)
 at m2.b.l(Unknown Source:0)
 at m2.b$e.run(SourceFile:52)
 at android.os.Handler.handleCallback(Handler.java:942)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loopOnce(Looper.java:201)
 at android.os.Looper.loop(Looper.java:288)
 at android.os.HandlerThread.run(HandlerThread.java:67)

The default LineageOS 20 gallery is fine opening them.

amebtw avatar Apr 16 '23 16:04 amebtw

just restart your device

tibbi avatar Apr 16 '23 19:04 tibbi

Just did

FATAL EXCEPTION: FrameDecoderExecutor-2
Process: com.simplemobiletools.gallery.pro, PID: 8781
java.lang.OutOfMemoryError: Failed to allocate a 608000016 byte allocation with 50331648 free bytes and 96MB until OOM, target footprint 150957112, growth limit 201326592
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:54)
 at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:49)
 at java.nio.ByteBuffer.allocate(ByteBuffer.java:284)
 at m2.b.A(SourceFile:20)
 at m2.b.l(Unknown Source:0)
 at m2.b$e.run(SourceFile:52)
 at android.os.Handler.handleCallback(Handler.java:942)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loopOnce(Looper.java:201)
 at android.os.Looper.loop(Looper.java:288)
 at android.os.HandlerThread.run(HandlerThread.java:67)

Aves also is able to handle the files.

amebtw avatar Apr 16 '23 19:04 amebtw

I can open it, the program does not crash. the problem is somewhere else

OmlineEditor avatar Apr 26 '23 12:04 OmlineEditor

retry with 6.26.8 once it becomes available

tibbi avatar Apr 26 '23 15:04 tibbi

Same error sadly. @OmlineEditor Try a bigger image.

amebtw avatar Apr 26 '23 19:04 amebtw

Try a bigger image.

if I use a large picture, then I can't open the full screen, the application crashes. but I can see the preview in the gallery. there is a problem when opening large images - they are present.

OmlineEditor avatar Apr 26 '23 22:04 OmlineEditor

Here's a sample for testing. Image isn't displayed, app resets to start screen after an attempt to view the file. https://filebin.net/dqtn80stolbiuybt

slavanap avatar Aug 20 '23 01:08 slavanap

Here's a sample for testing. Image isn't displayed, app resets to start screen after an attempt to view the file. https://filebin.net/dqtn80stolbiuybt

I can open the image there is no problem Galery v6.26.8 (F-Droid)

OmlineEditor avatar Aug 20 '23 15:08 OmlineEditor

I'm using 6.27.2 from F-Droid

slavanap avatar Aug 20 '23 15:08 slavanap