-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] a JNI crash recycle Bitmap on Android 4.4.4 rarely. #1362
Comments
释放Bitmap对象的JNI崩溃问题,在释放Bitmap对象(来自ashmem)发现这块内存已经被改写或破坏。 目前只发现在Android 4.4.4版本出现此问题,推测是Android系统BUG 或其他外部程序 使用或破坏普通应用(如Fresco)申请的ashmem内存,导致之后普通应用继续操作此内存时候,出现内存异常:
|
I also faced this bug on devices with OS < 5.0. It's usually happens when displaying and scrolling many photos in RecyclerView. 06-12 19:50:29.325 23128-23128/com.zing.zalo A/libc: @@@ ABORTING: heap corruption detected by dlmalloc
06-12 17:51:31.247 1967-1969/? D/dalvikvm: GC_CONCURRENT freed 1804K, 29% free 27822K/38976K, paused 14ms+8ms, total 119ms |
A JNI Crash recycle Bitmap which allocated on ashmem by pinBitmap.
It was just Found on Android 4.4.4 rarely.
Crash on Android 4.4.4
JNI Crash log as follow
Java backtrace
The text was updated successfully, but these errors were encountered: