yekeskin / flutter_avif

A flutter plugin to view and encode avif images.
https://pub.dev/packages/flutter_avif
MIT License
47 stars 15 forks source link

issues with avifRGBImageSetDefaults #7

Closed ashunasar closed 1 year ago

ashunasar commented 1 year ago

i am getting this issue while testing my app on ios device

* thread #39, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x000000010097d524 Runner`avifRGBImageSetDefaults
Runner`avifRGBImageSetDefaults:
->  0x10097d524 <+0>:  ldr    d0, [x1]
    0x10097d528 <+4>:  str    d0, [x0]
    0x10097d52c <+8>:  ldr    w8, [x1, #0x8]
    0x10097d530 <+12>: mov    w9, #0x1
Target 0: (Runner) stopped.
yekeskin commented 1 year ago

Do you get this error with a specific image or do you get it with all images you try? I tried a couple of different images and I got the same error with a corrupted one.

ashunasar commented 1 year ago

I tried with not corrupted images, but still it's crashing the app But on android it's working fine

yekeskin commented 1 year ago

Can you share information about the device you are testing on and a repo to reproduce the issue? I have tried the plugin with ios version 12-16 on aws device farm and it is working fine.

ashunasar commented 1 year ago

i tested the app and then i found out that the api i was using to display avif images in my app was sometimes sending png images also. and then i filtered all the png images and the app is now working fine in ios. and thank you so much for creating this flutter plugin it helped me a lot <3.