Skip to content

Android: notifications with large images attached crash the app #474

Closed
@daedric7

Description

@daedric7

Hello

I've noticed this for a while but has it's only trigger by very large images, it's difficult to find a case.

A notification sent via curl with a very large image attached to a topic makes the app crash when opening that topic.

All other topics keep working, the app keeps receiving more notifications on that topic although unable to display them.

The last image to cause this was this: (WARNING: NSFW!)

https://i.imgur.com/pKiQk6l.jpg , 4.4mb 4480x6720

Android creates a log report and sends it somewhere, but i cannot intercept it.

The only error i found was:

java.lang.RuntimeException: Canvas: trying to draw too large(120422400bytes) bitmap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    android-appntfy Android app🪲 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions