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

This post is too gay causing a crash (IllegalArgumentException: width and height must be > 0) #4293

Open
MinekPo1 opened this issue Feb 28, 2024 · 4 comments
Labels

Comments

@MinekPo1
Copy link

MinekPo1 commented Feb 28, 2024

Detailed description

tbh its probably the emoji being funny but idk

Steps to reproduce the problem

  1. open https://fedi.catboy.agency/notes/9q9u3nwjd8hd03wx

Debug information

Tusky 24.1 Device: motorola moto e22 Android version: 12 SDK version: 31 Account: @[email protected] Version: 4.3.0-alpha.3+glitch

full logcat trace
FATAL EXCEPTION: FrameDecoderExecutor-1
Process: com.keylesspalace.tusky, PID: 4875
java.lang.IllegalArgumentException: width and height must be > 0
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1095)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1062)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:1012)
	at android.graphics.Bitmap.createBitmap(Bitmap.java:973)
	at com.github.penfeizhou.animation.decode.e.l(SourceFile:65)
	at x6.l.p(SourceFile:149)
	at com.github.penfeizhou.animation.decode.e.r(SourceFile:48)
	at com.github.penfeizhou.animation.decode.b.run(SourceFile:50)
	at com.github.penfeizhou.animation.decode.e.i(SourceFile:81)
	at com.bumptech.glide.manager.q.run(SourceFile:89)
	at android.os.Handler.handleCallback(Handler.java:938)
	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)
@MinekPo1 MinekPo1 added the bug label Feb 28, 2024
@MinekPo1 MinekPo1 changed the title This post is to gay causing a crash (IllegalArgumentException: width and height must be > 0) This post is too gay causing a crash (IllegalArgumentException: width and height must be > 0) Feb 28, 2024
@Tak
Copy link
Collaborator

Tak commented Feb 29, 2024

😐 I can't reproduce this on Tusky 24 nor nightly (pixel 2xl android 11, emulator android 12) - maybe something was fixed on the source instance?

@MinekPo1
Copy link
Author

weird, though I believe I can confirm it is the emoji (specifically :FelixPeek: from fedi.catboy.agency , though it originates from mraww.catboy.download), as this post also triggers the crash for me.

is there anything I could do to help yall find the glitch? I might be able to analyse that .webp image, though I unfortunately cannot promise to do that.

@connyduck
Copy link
Collaborator

I can reproduce. Probably another bug in the apng library. Maybe we need to look for another library, there are so many problem recently :/
@Tak do you have "animate custom emojis" on?

@MinekPo1
Copy link
Author

MinekPo1 commented Feb 29, 2024

I can reproduce. Probably another bug in the apng library. Maybe we need to look for another library, there are so many problem recently :/
@Tak do you have "animate custom emojis" on?

it crashed with animate custom emojis off for me, though I have not restated the app between changing the setting and loading the post

restarting the app before loading the post fixes the issue prevents the crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants