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

Crash app when loading GIF on Android 9.0 #19

Closed
GeniusRUS opened this issue Aug 13, 2019 · 4 comments
Closed

Crash app when loading GIF on Android 9.0 #19

GeniusRUS opened this issue Aug 13, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@GeniusRUS
Copy link

GeniusRUS commented Aug 13, 2019

Describe the bug
Crash on Android 9.0 when loading GIF-image

To Reproduce

  1. Add io.coil-kt:coil-gif to dependencies
  2. Try to load this GIF-file:
    success
  3. Image will freeze at start frame
  4. After ~2 seconds crash will happened

Expected behavior
GIF picture will load and move

Logs/Screenshots

A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 8197 (AnimatedImageTh), pid 8010 (app.package.name)

Usage:
Code screenshot
Image container:
Image view container
Tested on devices:

  • Nokia 6.1 (Android 9.0)
  • Honor 9 Lite (Android 9.0)

Library version
version 0.6.0

@GeniusRUS GeniusRUS added the bug Something isn't working label Aug 13, 2019
@colinrtwhite
Copy link
Member

Thanks for the report. My gut feeling says this is an issue with Android's ImageDecoder, but will explore further.

As a work-around I would use GifDecoder for all API levels at the moment.

@colinrtwhite
Copy link
Member

Confirmed that it's an issue with Android's ImageDecoder APIs and not Coil. I filed a bug with a project that reproduces the issue (without Coil) on the Android bug tracker here.

To work around this crash, I would only register GifDecoder for all API levels.

@bveenvliet
Copy link

bveenvliet commented Aug 15, 2019

I am getting this issue as well on Pixel 2XL running latest Android 9 firmware and can confirm if you use GifDecoder instead, it works without crashing.

@colinrtwhite
Copy link
Member

@bveenvliet Yes, GifDecoder should still work fine on Android P and above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants