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

Gif crashes app without stack trace or any exception information #194

Closed
bkraszewski opened this issue Jul 30, 2015 · 10 comments
Closed

Gif crashes app without stack trace or any exception information #194

bkraszewski opened this issue Jul 30, 2015 · 10 comments
Labels

Comments

@bkraszewski
Copy link

Hello, please try to display this gif as GifDrawable:
image

It makes app crash and I have no stacktrace in logcat nor in Crashlitycs.
Logcat:

07-30 11:53:32.786  24503-24503/com.mewe.dev D/dalvikvm﹕ Late-enabling CheckJNI
07-30 11:53:32.916  24503-24503/com.mewe.dev I/Fabric﹕ Initializing Crashlytics 2.2.4.42
07-30 11:53:32.946  24503-24503/com.mewe.dev I/dalvikvm﹕ Could not find method         android.view.Window.setStatusBarColor, referenced from method     com.mewe.ui.BaseActivity.setStatusBarColor
07-30 11:53:32.946  24503-24503/com.mewe.dev W/dalvikvm﹕ VFY: unable to resolve virtual method 17214: Landroid/view/Window;.setStatusBarColor (I)V
07-30 11:53:32.946  24503-24503/com.mewe.dev D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000a
07-30 11:53:33.096  24503-24503/com.mewe.dev I/Tracer﹕ GCMHelper GCM register id - APA91bHm_1rWaeagLNioQ__oSlJqvZ3X3shJVfUBLWL5AU3008IsHOOXGpcrA3qluiEwBkqfvwZqdNYUjzD97oUiDybhLzUNo-TcUpd0PejF3PIZ6Iyi4Fg
07-30 11:53:33.196  24503-24503/com.mewe.dev I/dalvikvm﹕ Could not find method android.app.ActivityManager.isLowRamDevice, referenced from method         com.bumptech.glide.load.engine.cache.MemorySizeCalculator.isLowMemoryDevice
07-30 11:53:33.206  24503-24503/com.mewe.dev W/dalvikvm﹕ VFY: unable to resolve virtual method 141: Landroid/app/ActivityManager;.isLowRamDevice ()Z
07-30 11:53:33.206  24503-24503/com.mewe.dev D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000a
07-30 11:53:33.206  24503-24503/com.mewe.dev I/dalvikvm﹕ Could not find method     android.graphics.Bitmap.getAllocationByteCount, referenced from method com.bumptech.glide.util.Util.getBitmapByteSize
07-30 11:53:33.206  24503-24503/com.mewe.dev W/dalvikvm﹕ VFY: unable to resolve virtual method 836: Landroid/graphics/Bitmap;.getAllocationByteCount ()I
07-30 11:53:33.206  24503-24503/com.mewe.dev D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x0006
07-30 11:53:33.517  24503-24534/com.mewe.dev D/ShortcutBadger﹕ Finding badger
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
07-30 11:53:33.537  24503-24534/com.mewe.dev D/ShortcutBadger﹕ Returning badger:me.leolin.shortcutbadger.impl.DefaultBadger
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
07-30 11:53:33.537  24503-24515/com.mewe.dev I/dalvikvm﹕ Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sink
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to resolve static method 48206: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
07-30 11:53:33.537  24503-24515/com.mewe.dev D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x000a
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
07-30 11:53:33.537  24503-24515/com.mewe.dev I/dalvikvm﹕ Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.source
07-30 11:53:33.537  24503-24515/com.mewe.dev W/dalvikvm﹕ VFY: unable to resolve static method 48205: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
07-30 11:53:33.537  24503-24515/com.mewe.dev D/dalvikvm﹕ VFY: replacing opcode 0x71 at 0x000a
07-30 11:53:33.687  24503-24503/com.mewe.dev D/HockeyApp﹕ Looking for exceptions in: /data/data/com.mewe.dev/files
07-30 11:53:33.697  24503-24503/com.mewe.dev D/HockeyApp﹕ Current handler class = com.crashlytics.android.CrashlyticsUncaughtExceptionHandler
07-30 11:53:33.797  24503-24503/com.mewe.dev D/libEGL﹕ loaded /system/lib/egl/libEGL_adreno200.so
07-30 11:53:33.807  24503-24503/com.mewe.dev D/libEGL﹕ loaded /system/lib/egl/libGLESv1_CM_adreno200.so
07-30 11:53:33.827  24503-24503/com.mewe.dev D/libEGL﹕ loaded /system/lib/egl/libGLESv2_adreno200.so
07-30 11:53:33.827  24503-24503/com.mewe.dev I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615)
Build Date: 04/11/13 Thu
Local Branch:
Remote Branch: quic/mako_jb_mr1
Local Patches: NONE
Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 +  NOTHING
07-30 11:53:33.917  24503-24503/com.mewe.dev D/OpenGLRenderer﹕ Enabling debug mode 0
07-30 11:53:34.658  24503-24551/com.mewe.dev E/Tracer﹕ SocketClient ws connected

Im using library version '1.1.+'
The same crash on HTC One S 4.3.1 and Genymotion Nexus 6 5.1

@koral-- koral-- added the bug label Jul 30, 2015
@koral--
Copy link
Owner

koral-- commented Jul 30, 2015

Working for me on Genymotion Nexus 6 5.1 (screenshot attached). More info is needed to investigate.
BTW if attached LogCat is complete then it looks like this library is not even used. Something like this should appear on device with API level <19:

07-30 20:58:14.715  12380-12380/pl.droidsonroids.gif.sample I/dalvikvm﹕ Could not find method android.graphics.Bitmap.getAllocationByteCount, referenced from method pl.droidsonroids.gif.GifDrawable.getAllocationByteCount
07-30 20:58:14.715  12380-12380/pl.droidsonroids.gif.sample W/dalvikvm﹕ VFY: unable to resolve virtual method 481: Landroid/graphics/Bitmap;.getAllocationByteCount ()I
07-30 20:58:14.715  12380-12380/pl.droidsonroids.gif.sample D/dalvikvm﹕ VFY: replacing opcode 0x6e at 0x000e
07-30 20:58:14.720  12380-12380/pl.droidsonroids.gif.sample D/dalvikvm﹕ Trying to load lib /data/data/pl.droidsonroids.gif.sample/lib/libpl_droidsonroids_gif.so 0x4298cf48
07-30 20:58:14.720  12380-12380/pl.droidsonroids.gif.sample D/dalvikvm﹕ Added shared lib /data/data/pl.droidsonroids.gif.sample/lib/libpl_droidsonroids_gif.so 0x4298cf48

image

@bkraszewski
Copy link
Author

Please try using GifDrawable constructor with String file location on device.
Im doing this operation in Async Task, and set Drawable to GifImageView in onPostExecute method
Logcat is cleared after crash I can only see message:
Fatal signal 11 (SIGSEGV) at 0xff776379 (code=1) thread 25006 (fifo-pool-threa)

@bkraszewski
Copy link
Author

More detailed event info:

07-31 13:15:04.239: I/DEBUG(245): *** *** *** *** *** *** *** *** *** *** *** *** *** *** ** ***
07-31 13:15:04.239: I/DEBUG(245): Build fingerprint: 'htc_europe/ville/ville:4.1.1/JRO03C/128506.8:user/release-keys'
07-31 13:15:04.239: I/DEBUG(245): Revision: '128'
07-31 13:15:04.239: I/DEBUG(245): pid: 14803, tid: 15544, name: pool-4-thread-1 >>> com.mewe.dev <<<
07-31 13:15:04.239: I/DEBUG(245): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 43004000
07-31 13:15:04.329: I/DEBUG(245): r0 0000945d r1 0000003f r2 5f575b50 r3 0000005f
07-31 13:15:04.329: I/DEBUG(245): r4 607d0c8b r5 5e41c238 r6 43004000 r7 00000000
07-31 13:15:04.339: I/DEBUG(245): r8 607d0a11 r9 00000016 sl 000002d9 fp 43003618
07-31 13:15:04.339: I/DEBUG(245): ip 00000300 sp 61b2cb08 lr 000000ff pc 60cc7684 cpsr 80000030
07-31 13:15:04.339: I/DEBUG(245): d0 06371e31adbf3b94 d1 0c4a832e3679b79b
07-31 13:15:04.339: I/DEBUG(245): d2 6300f6f05342fc0d d3 fc8ce573931ebc31
07-31 13:15:04.339: I/DEBUG(245): d4 3fadab18441cf89a d5 43c7000043760000
07-31 13:15:04.339: I/DEBUG(245): d6 3fadab1844070000 d7 4407000000000000
07-31 13:15:04.339: I/DEBUG(245): d8 0000000000000000 d9 0000000000000000
07-31 13:15:04.339: I/DEBUG(245): d10 0000000000000000 d11 0000000000000000
07-31 13:15:04.339: I/DEBUG(245): d12 0000000000000000 d13 0000000000000000
07-31 13:15:04.339: I/DEBUG(245): d14 0000000000000000 d15 0000000000000000
07-31 13:15:04.339: I/DEBUG(245): d16 b10cdc12ef2868ee d17 ecb8ec32e5e23a17
07-31 13:15:04.339: I/DEBUG(245): d18 30b63af526bc0145 d19 8ccc5810ff432b73
07-31 13:15:04.339: I/DEBUG(245): d20 1d33b4094fc96682 d21 2cad5ccc2130dd12
07-31 13:15:04.339: I/DEBUG(245): d22 b62178b73169ce97 d23 4cd341607fe3234c
07-31 13:15:04.339: I/DEBUG(245): d24 0000000000000000 d25 3ff5b56300000000
07-31 13:15:04.339: I/DEBUG(245): d26 0000000000000000 d27 3ff5b56300000000
07-31 13:15:04.339: I/DEBUG(245): d28 407261d980000000 d29 0000000000000000
07-31 13:15:04.349: I/DEBUG(245): d30 0000000000000000 d31 3ff5b56300000000
07-31 13:15:04.349: I/DEBUG(245): scr 68000013
07-31 13:15:04.349: I/DEBUG(245): backtrace:
07-31 13:15:04.349: I/DEBUG(245): #00 pc 00002684 /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (drawNextBitmap+603)
07-31 13:15:04.349: I/DEBUG(245): #1 pc 000027dd /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (getBitmap+4)
07-31 13:15:04.349: I/DEBUG(245): #2 pc 00003997 /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (Java_pl_droidsonroids_gif_GifInfoHandle_renderFrame+90)
07-31 13:15:04.349: I/DEBUG(245): #3 pc 0001eb0c /system/lib/libdvm.so (dvmPlatformInvoke+112)
07-31 13:15:04.349: I/DEBUG(245): #4 pc 0004f457 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const_, JValue_, Method const_, Thread_)+398)
07-31 13:15:04.349: I/DEBUG(245): #5 pc 00027fa0 /system/lib/libdvm.so
07-31 13:15:04.349: I/DEBUG(245): #6 pc 0002c9d0 /system/lib/libdvm.so (dvmInterpret(Thread_, Method const_, JValue_)+184)
07-31 13:15:04.349: I/DEBUG(245): #7 pc 000614ad /system/lib/libdvm.so (dvmCallMethodV(Thread_, Method const_, Object_, bool, JValue_, std::va_list)+292)
07-31 13:15:04.349: I/DEBUG(245): #8 pc 000614d7 /system/lib/libdvm.so (dvmCallMethod(Thread
, Method const
, Object_, JValue
, ...)+20)
07-31 13:15:04.349: I/DEBUG(245): #9 pc 0005625f /system/lib/libdvm.so
07-31 13:15:04.349: I/DEBUG(245): #10 pc 0000cbe0 /system/lib/libc.so (__thread_entry+72)
07-31 13:15:04.349: I/DEBUG(245): #11 pc 0000cd5c /system/lib/libc.so (pthread_create+208)
07-31 13:15:04.349: I/DEBUG(245): #12 pc 0000c774
07-31 13:15:04.349: I/DEBUG(245): stack:
07-31 13:15:04.349: I/DEBUG(245): 61b2cac8 00000b98
07-31 13:15:04.349: I/DEBUG(245): 61b2cacc 60ccb742 /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so
07-31 13:15:04.359: I/DEBUG(245): 61b2cad0 00000041
07-31 13:15:04.359: I/DEBUG(245): 61b2cad4 00000040
07-31 13:15:04.359: I/DEBUG(245): 61b2cad8 5f5aa359
07-31 13:15:04.359: I/DEBUG(245): 61b2cadc 60cc99bd /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (DGifGetImageDesc+364)
07-31 13:15:04.359: I/DEBUG(245): 61b2cae0 9cbe3e6e
07-31 13:15:04.359: I/DEBUG(245): 61b2cae4 60c5ac80
07-31 13:15:04.359: I/DEBUG(245): 61b2cae8 00000001
07-31 13:15:04.359: I/DEBUG(245): 61b2caec 61b2cb08 [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2caf0 61b2cb10 [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2caf4 00000000
07-31 13:15:04.359: I/DEBUG(245): 61b2caf8 61b2cb14 [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2cafc 61b2cb0c [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2cb00 df0027ad
07-31 13:15:04.359: I/DEBUG(245): 61b2cb04 00000000
07-31 13:15:04.359: I/DEBUG(245): #00 61b2cb08 000000f9
07-31 13:15:04.359: I/DEBUG(245): 61b2cb0c 60c5ac80
07-31 13:15:04.359: I/DEBUG(245): 61b2cb10 5e558c48
07-31 13:15:04.359: I/DEBUG(245): 61b2cb14 60c5ac80
07-31 13:15:04.359: I/DEBUG(245): 61b2cb18 60c5d720
07-31 13:15:04.359: I/DEBUG(245): 61b2cb1c 00000003
07-31 13:15:04.359: I/DEBUG(245): 61b2cb20 ffffffe0
07-31 13:15:04.359: I/DEBUG(245): 61b2cb24 1f900005
07-31 13:15:04.359: I/DEBUG(245): 61b2cb28 0dc53f1f
07-31 13:15:04.359: I/DEBUG(245): 61b2cb2c 60622788
07-31 13:15:04.359: I/DEBUG(245): 61b2cb30 61b2cb84 [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2cb34 60cc77e1 /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (getBitmap+8)
07-31 13:15:04.359: I/DEBUG(245): #1 61b2cb38 60c5ac80
07-31 13:15:04.359: I/DEBUG(245): 61b2cb3c 60cc899b /data/app-lib/com.mewe.dev-1/libpl_droidsonroids_gif.so (Java_pl_droidsonroids_gif_GifInfoHandle_renderFrame+94)
07-31 13:15:04.359: I/DEBUG(245): #2 61b2cb40 42dfe8d0 /dev/ashmem/dalvik-heap (deleted)
07-31 13:15:04.359: I/DEBUG(245): 61b2cb44 9cbe3e6e
07-31 13:15:04.359: I/DEBUG(245): 61b2cb48 578e2028 /dev/ashmem/dalvik-LinearAlloc (deleted)
07-31 13:15:04.359: I/DEBUG(245): 61b2cb4c 60622778
07-31 13:15:04.359: I/DEBUG(245): 61b2cb50 00000003
07-31 13:15:04.359: I/DEBUG(245): 61b2cb54 60cd1e4c
07-31 13:15:04.359: I/DEBUG(245): 61b2cb58 61b2cb6c [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2cb5c 60cd1e40
07-31 13:15:04.359: I/DEBUG(245): 61b2cb60 61b2cb84 [stack:15544]
07-31 13:15:04.359: I/DEBUG(245): 61b2cb64 408c7b10 /system/lib/libdvm.so (dvmPlatformInvoke+116)
07-31 13:15:04.379: I/DEBUG(245): memory near r0:
07-31 13:15:04.379: I/DEBUG(245): 0000943c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000944c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000945c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000946c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000947c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000948c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 0000949c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094ac ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094bc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094cc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094dc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094ec ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.379: I/DEBUG(245): 000094fc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.389: I/DEBUG(245): 0000950c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.389: I/DEBUG(245): 0000951c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.389: I/DEBUG(245): 0000952c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.389: I/DEBUG(245): memory near r2:
07-31 13:15:04.389: I/DEBUG(245): 5f575b30 6e6e6e6e 6e6e6e6e 6c6c6d6d 71706e6d
07-31 13:15:04.389: I/DEBUG(245): 5f575b40 72727272 76757473 00000610 0000030a
07-31 13:15:04.389: I/DEBUG(245): 5f575b50 f7a0945d 8af6302f 35190d65 fb2acdea
07-31 13:15:04.389: I/DEBUG(245): 5f575b60 ce00fcfc 8a7971ce be968781 2215cbc3
07-31 13:15:04.389: I/DEBUG(245): 5f575b70 b3a9913d 2775632a 69188879 6d590579
07-31 13:15:04.389: I/DEBUG(245): 5f575b80 ad2c747f 2198bcb1 7763592f 635b4337
07-31 13:15:04.389: I/DEBUG(245): 5f575b90 53487f6c a4988f68 aadad3ce b5f9c5bc
07-31 13:15:04.389: I/DEBUG(245): 5f575ba0 60493c9f 24624b42 3b314b30 50362a54
07-31 13:15:04.389: I/DEBUG(245): 5f575bb0 bfc1d0fa 54524593 4f4e752c 19918343
07-31 13:15:04.389: I/DEBUG(245): 5f575bc0 5d53715e 4c435872 4f452a1d 5d0e6d58
07-31 13:15:04.389: I/DEBUG(245): 5f575bd0 e8e4e06d 082e205b 607c5139 6f5f0863
07-31 13:15:04.389: I/DEBUG(245): 5f575be0 a32c1539 3e396e75 e0dcd42c fc394a97
07-31 13:15:04.389: I/DEBUG(245): 5f575bf0 5101d5df 98a0c767 1e7a683e 60b35f49
07-31 13:15:04.389: I/DEBUG(245): 5f575c00 6d5b004c 003062f5 0f002d0f ffffff2e
07-31 13:15:04.389: I/DEBUG(245): 5f575c10 00000000 00000000 00000000 00000000
07-31 13:15:04.389: I/DEBUG(245): 5f575c20 00000000 00000000 00000000 00000000
07-31 13:15:04.389: I/DEBUG(245): memory near r4:
07-31 13:15:04.399: I/DEBUG(245): 607d0c68 0007323a 00000e00 09070300 00000008
07-31 13:15:04.399: I/DEBUG(245): 607d0c78 750f0000 00000010 000e0000 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0c88 00000000 09000000 00070009 0007020e
07-31 13:15:04.399: I/DEBUG(245): 607d0c98 0e000007 00090900 0a000000 000e0e09
07-31 13:15:04.399: I/DEBUG(245): 607d0ca8 e4333209 00080e61 00070700 0e000000
07-31 13:15:04.399: I/DEBUG(245): 607d0cb8 070e080a 00030000 0809070e 0000000e
07-31 13:15:04.399: I/DEBUG(245): 607d0cc8 0a090000 070e0000 00070000 13320900
07-31 13:15:04.399: I/DEBUG(245): 607d0cd8 070041eb 00070700 0e0e0200 00090908
07-31 13:15:04.399: I/DEBUG(245): 607d0ce8 00000000 00000000 00000e00 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0cf8 00000000 00000000 07000000 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0d08 0e000000 00000000 00000000 000e0000
07-31 13:15:04.399: I/DEBUG(245): 607d0d18 00000000 00000000 00000000 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0d28 00000000 0e070000 0e000000 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0d38 000e0000 00000000 00000000 000e0000
07-31 13:15:04.399: I/DEBUG(245): 607d0d48 00000000 00000000 000e0700 00000000
07-31 13:15:04.399: I/DEBUG(245): 607d0d58 00000000 0e000000 00000000 00070000
07-31 13:15:04.399: I/DEBUG(245): memory near r5:
07-31 13:15:04.399: I/DEBUG(245): 5e41c218 5e49be60 5e49bd28 5e49c1b8 5e49c1f8
07-31 13:15:04.409: I/DEBUG(245): 5e41c228 5e49cea0 5e49cdb0 00000068 0000001b
07-31 13:15:04.409: I/DEBUG(245): 5e41c238 00000040 40099106 5f575b50 00007473
07-31 13:15:04.409: I/DEBUG(245): 5e41c248 00000018 0000001b 00000001 00000001
07-31 13:15:04.409: I/DEBUG(245): 5e41c258 5e41bac0 00000000 00000000 0000001b
07-31 13:15:04.409: I/DEBUG(245): 5e41c268 00000000 5e41c268 5e41c268 00000000
07-31 13:15:04.409: I/DEBUG(245): 5e41c278 00000018 00000033 6e614c5b 696f7264
07-31 13:15:04.409: I/DEBUG(245): 5e41c288 72672f64 69687061 642f7363 61776172
07-31 13:15:04.409: I/DEBUG(245): 5e41c298 2f656c62 77617244 656c6261 642e003b
07-31 13:15:04.409: I/DEBUG(245): 5e41c2a8 312d7665 00000033 5e41c348 40099178
07-31 13:15:04.409: I/DEBUG(245): 5e41c2b8 be8be290 00000000 be8be2a4 ffffffff
07-31 13:15:04.409: I/DEBUG(245): 5e41c2c8 00010000 68000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 5e41c2d8 656d5f63 00000013 5e421ba0 00000000
07-31 13:15:04.409: I/DEBUG(245): 5e41c2e8 00000001 0000005b 00000001 00000040
07-31 13:15:04.409: I/DEBUG(245): 5e41c2f8 70707573 2e74726f 401e4d98 1d20026a
07-31 13:15:04.409: I/DEBUG(245): 5e41c308 4153fd58 401a4c45 0073006f 0049002e
07-31 13:15:04.409: I/DEBUG(245): memory near r6:
07-31 13:15:04.409: I/DEBUG(245): 43003fe0 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.409: I/DEBUG(245): 43003ff0 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.409: I/DEBUG(245): 43004000 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004010 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004020 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004030 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004040 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004050 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004060 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004070 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004080 00000000 00000000 00000000 00000000
07-31 13:15:04.409: I/DEBUG(245): 43004090 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 430040a0 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 430040b0 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 430040c0 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 430040d0 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): memory near r8:
07-31 13:15:04.419: I/DEBUG(245): 607d09f0 00000000 00000000 00000000 0e000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a00 00000000 0e000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a10 00000e00 00000000 00000000 07000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a20 0e070000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a30 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a40 00000e00 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a50 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a60 0e000000 00000000 0e00070e 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a70 00000000 0e000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a80 00000000 00000000 00000000 0e000000
07-31 13:15:04.419: I/DEBUG(245): 607d0a90 00000007 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0aa0 000e0000 0e000302 02020100 0e0e0e03
07-31 13:15:04.419: I/DEBUG(245): 607d0ab0 01737703 00000e03 020e030e 00070300
07-31 13:15:04.419: I/DEBUG(245): 607d0ac0 0002020e 00000000 00000e07 00000000
07-31 13:15:04.419: I/DEBUG(245): 607d0ad0 00000000 00000000 00000000 000e070e
07-31 13:15:04.419: I/DEBUG(245): 607d0ae0 0e000000 0e000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): memory near fp:
07-31 13:15:04.419: I/DEBUG(245): 430035f8 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 43003608 00000000 00000000 00000000 00000000
07-31 13:15:04.419: I/DEBUG(245): 43003618 ff796918 ffa0945d ffa0945d ffa0945d
07-31 13:15:04.419: I/DEBUG(245): 43003628 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.419: I/DEBUG(245): 43003638 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.419: I/DEBUG(245): 43003648 ffa0945d ffa0945d ff8a7971 ffa0945d
07-31 13:15:04.419: I/DEBUG(245): 43003658 ffa0945d ff8a7971 ff796918 ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 43003668 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 43003678 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 43003688 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 43003698 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 430036a8 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 430036b8 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 430036c8 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 430036d8 ff796918 ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): 430036e8 ffa0945d ffa0945d ffa0945d ffa0945d
07-31 13:15:04.429: I/DEBUG(245): memory near sp:
07-31 13:15:04.429: I/DEBUG(245): 61b2cae8 00000001 61b2cb08 61b2cb10 00000000
07-31 13:15:04.429: I/DEBUG(245): 61b2caf8 61b2cb14 61b2cb0c df0027ad 00000000
07-31 13:15:04.429: I/DEBUG(245): 61b2cb08 000000f9 60c5ac80 5e558c48 60c5ac80
07-31 13:15:04.429: I/DEBUG(245): 61b2cb18 60c5d720 00000003 ffffffe0 1f900005
07-31 13:15:04.429: I/DEBUG(245): 61b2cb28 0dc53f1f 60622788 61b2cb84 60cc77e1
07-31 13:15:04.429: I/DEBUG(245): 61b2cb38 60c5ac80 60cc899b 42dfe8d0 9cbe3e6e
07-31 13:15:04.429: I/DEBUG(245): 61b2cb48 578e2028 60622778 00000003 60cd1e4c
07-31 13:15:04.429: I/DEBUG(245): 61b2cb58 61b2cb6c 60cd1e40 61b2cb84 408c7b10
07-31 13:15:04.429: I/DEBUG(245): 61b2cb68 1f900005 408f3401 60cd1e40 00000001
07-31 13:15:04.429: I/DEBUG(245): 61b2cb78 5d9a01d4 42363eb0 41fc2438 408f845b
07-31 13:15:04.429: I/DEBUG(245): 61b2cb88 60cd1e40 5d9a01d1 60cc893d 60622788
07-31 13:15:04.429: I/DEBUG(245): 61b2cb98 00000000 00000000 24200001 00000000
07-31 13:15:04.429: I/DEBUG(245): 61b2cba8 00000000 40099310 00000000 00000000
07-31 13:15:04.429: I/DEBUG(245): 61b2cbb8 00000000 0000001c 0000001c 417c8008
07-31 13:15:04.429: I/DEBUG(245): 61b2cbc8 40955c78 408c7c80 58606f98 588402f0
07-31 13:15:04.429: I/DEBUG(245): 61b2cbd8 41fc2438 41f8bff8 41542158 41542158
07-31 13:15:04.429: I/DEBUG(245): code around pc:
07-31 13:15:04.429: I/DEBUG(245): 60cc7664 af08f850 46449002 465e4653 0f00f1ba
07-31 13:15:04.439: I/DEBUG(245): 60cc7674 7827d01a d009428f eb0768aa 5bd00747
07-31 13:15:04.439: I/DEBUG(245): 60cc7684 19d08030 70b07880 e003f886 34013604
07-31 13:15:04.439: I/DEBUG(245): 60cc7694 d1ee3b01 44d09802 eb0b9a01 68000b8a
07-31 13:15:04.439: I/DEBUG(245): 60cc76a4 c034f8d2 e0014682 0a00f04f 000aebac
07-31 13:15:04.439: I/DEBUG(245): 60cc76b4 0901f1b9 0b80eb0b e05dd1d5 0f00f1b9
07-31 13:15:04.439: I/DEBUG(245): 60cc76c4 9802d05a 1f08f850 46409002 465b460a
07-31 13:15:04.439: I/DEBUG(245): 60cc76d4 d0172900 7b01f810 68ae3a01 0747eb07
07-31 13:15:04.439: I/DEBUG(245): 60cc76e4 44375bf4 78bf801c f103709f d1f10304
07-31 13:15:04.439: I/DEBUG(245): 60cc76f4 44889802 eb0b9a01 68000b81 c034f8d2
07-31 13:15:04.439: I/DEBUG(245): 60cc7704 e0004601 ebac2100 f1b90001 eb0b0901
07-31 13:15:04.439: I/DEBUG(245): 60cc7714 d1da0b80 f1b9e030 d02d0f00 f8509802
07-31 13:15:04.439: I/DEBUG(245): 60cc7724 90022f08 f04f4658 f00131ff 9802eee0
07-31 13:15:04.439: I/DEBUG(245): 60cc7734 465b4641 28006800 d0134602 7b01f811
07-31 13:15:04.439: I/DEBUG(245): 60cc7744 68ae3a01 0747eb07 44375bf4 78bf801c
07-31 13:15:04.439: I/DEBUG(245): 60cc7754 f103709f d1f10304 44809902 0b80eb0b
07-31 13:15:04.439: I/DEBUG(245): code around lr:
07-31 13:15:04.439: I/DEBUG(245): 000000dc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.439: I/DEBUG(245): 000000ec ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.439: I/DEBUG(245): 000000fc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.439: I/DEBUG(245): 0000010c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.439: I/DEBUG(245): 0000011c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.439: I/DEBUG(245): 0000012c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000013c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000014c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000015c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000016c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000017c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000018c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 0000019c ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 000001ac ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 000001bc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): 000001cc ffffffff ffffffff ffffffff ffffffff
07-31 13:15:04.449: I/DEBUG(245): memory map around fault addr 43004000:
07-31 13:15:04.449: I/DEBUG(245): 41fc8000-43004000 rw- /dev/ashmem/dalvik-heap (deleted)
07-31 13:15:04.449: I/DEBUG(245): 43004000-51544000 --- /dev/ashmem/dalvik-heap (deleted)
07-31 13:15:04.449: I/DEBUG(245): 51544000-51944000 rw- /dev/ashmem/dalvik-bitmap-1 (deleted)

@koral--
Copy link
Owner

koral-- commented Aug 4, 2015

OK, stacktrace is useful, but how to reproduce it? Could you post a snippet of code which reproduces that error? Or maybe more info about circumstances eg.

  • is file on disk changing during animation?
  • does that error happens every time or randomly?

BTW not sure if it is intended but content of the attached GIF has changed. It looked fine at the day of posting but now is malformed.

@bkraszewski
Copy link
Author

Yeah, app crashes when this malformed gif is displayed, Ill provide you isolated sample of crashing code.

@koral--
Copy link
Owner

koral-- commented Aug 9, 2015

It looks like this is effect of the same bug as reported in #196. Stacktraces are a little bit different because GIF in this issue contains transparent pixels in affected frame while that another one does not.

Attached malformed GIF contains pixels located outside of the canvas. Segfault happens when calculated address of such pixel belongs to space allocated for another process, so it is not always reproducible.

I'll fix it ASAP.

@bkraszewski
Copy link
Author

It may helps: I noticed even malformed gifs cause not crash when memory usage of app is low, but if you have for example some bitmaps around, or other gifs preloaded, app gets crashed

@koral--
Copy link
Owner

koral-- commented Aug 9, 2015

OK, now there should be no segfaults when image is not confined to canvas. In such cases canvas is extended.
BTW I've checked how such case is handled by PC software displaying GIFs and found two approaches:

  • canvas is extended using transparent pixels, observed in web browsers (opera, firefox, chromium)
  • canvas is extended respecting background color, observed in image viewers (gwenview, qiviewer)

I used 2nd solution.

@rohankandwal
Copy link

I am getting same crash with the latest version of library. I am using your library in an image intensive app. I have a complex view which contains recyclerview inside a nested scrollview. In recyclerview's adapter, I am using your library to load a gif which crashes with following error on logcat -

A/libc(790): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1), thread 824 (Thread-112)

Changing view to ImageView fixed the issue so I assume that it is coming from the library itself, please advice.

@koral--
Copy link
Owner

koral-- commented Jul 9, 2016

@rohankandwal please attach complete stacktrace (like this: https://github.com/koral--/android-gif-drawable/issues/194#issuecomment-126657767) and/or affected GIF file. Preferably in separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants