amethyst icon indicating copy to clipboard operation
amethyst copied to clipboard

[BUG] [Pixel] App crash on large bitmap

Open davotoula opened this issue 1 year ago • 1 comments

Describe the bug App crashes when a large (e.g. 1x300,000 pixels) image is in a note

To Reproduce Steps to reproduce the behavior:

  1. Go to note nostr:nevent1qqsvf0j6mc67rlrs0l44mgxezn3vkdvcf9ar7h8yr047pefa0s95gcspzpmhxue69uhkummnw3ezuamfdejsygpnxhfh8ekpkk7xdx6tzgsvppega2xwvgh95l87adxqqqwerhk3mcpsgqqqqqqsh4lfhr

Expected behavior Image not displayed, app not crashing, rest of the note and comments visible

Error Log

10:03:13.395  E  Failed to allocate (1 x 30000) layerCount 1 format 1 usage 100: 5
10:03:13.395  E  GraphicBuffer(w=1, h=30000, lc=1) failed (Unknown error -5), handle=0x0
10:03:13.395  W  allocateHardwareBitmap() failed in AHardwareBuffer_allocate()

Device (please complete the following information):

  • Phone Brand/Model: Pixel 7 Pro
  • Android Version: 33
  • App Version: 0.66.4

davotoula avatar Jul 10 '23 09:07 davotoula

It seems to happen only on Pixel phones. I checked the stack and it's all Android and Compose. I think we will need to wait for Google to have a fix for this.

vitorpamplona avatar Jul 10 '23 12:07 vitorpamplona