Coil: Crash app when loading GIF on Android 9.0

Created on 13 Aug 2019  路  4Comments  路  Source: coil-kt/coil

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

bug

Most helpful comment

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.

All 4 comments

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.

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.

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.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianhanniballake picture ianhanniballake  路  3Comments

Starscream9559 picture Starscream9559  路  7Comments

adesamp picture adesamp  路  3Comments

digitalheir picture digitalheir  路  4Comments

mare011 picture mare011  路  5Comments