cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
8.98k stars 2.26k forks source link

native crash #495

Closed gejiashu closed 4 years ago

gejiashu commented 4 years ago

2020-02-20 19:50:11.105 23894-23894/? A/DEBUG: 2020-02-20 19:50:11.105 23894-23894/? A/DEBUG: Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:10/QPP6.190730.005.B1/5775370:userdebug/test-keys' 2020-02-20 19:50:11.105 23894-23894/? A/DEBUG: Revision: '0' 2020-02-20 19:50:11.105 23894-23894/? A/DEBUG: ABI: 'x86_64' 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: Timestamp: 2020-02-20 11:50:11+0000 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: pid: 23772, tid: 23882, name: GLThread 708 >>> com.netease.meowcam <<< 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: uid: 10114 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x5af3c000 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: rax 00000000ff43576b rbx 00000000000002fd rcx 000000000000006b rdx 0000000000000000 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: r8 000000000000018d r9 0000000000169e00 r10 0000000000000500 r11 000000005b06510c 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: r12 0000000000000059 r13 000000000000000a r14 000000005afe900c r15 000000005af3b40c 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: rdi 00000000fffffff4 rsi 000000000043006b 2020-02-20 19:50:11.106 23894-23894/? A/DEBUG: rbp 000000000000006b rsp 000077aaba0e7b10 rip 000077aab44faa40 2020-02-20 19:50:11.154 1619-3770/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 33937172 , only wrote 33937062 2020-02-20 19:50:11.155 1619-3770/? W/audio_hw_generic: Not supplying enough data to HAL, expected position 33937107 , only wrote 33937062 2020-02-20 19:50:11.199 23894-23894/? A/DEBUG: backtrace: 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #00 pc 0000000000000a40 /data/app/com.netease.meowcam--LsXagB4qZfC1zyQWVmqHQ==/lib/x86_64/libyuv-decoder.so (Java_jp_co_cyberagent_android_gpuimage_GPUImageNativeLibrary_YUVtoRBGA+416) (BuildId: 334b70427811e76ea6a704efe6a4e285b0004ba0) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #01 pc 0000000000174641 /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+209) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #02 pc 00000000001696b6 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+806) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #03 pc 0000000000179c61 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+305) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #04 pc 0000000000340ffc /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread, art::ArtMethod, art::ShadowFrame, unsigned short, art::JValue)+380) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #05 pc 000000000033b20f /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod, art::Thread, art::ShadowFrame&, art::Instruction const, unsigned short, art::JValue)+1151) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #06 pc 000000000066c545 /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+677) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #07 pc 0000000000162999 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+25) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #08 pc 00000000002ea3f8 [anon:dalvik-classes.dex extracted in memory from /data/app/com.netease.meowcam--LsXagB4qZfC1zyQWVmqHQ==/base.apk] (jp.co.cyberagent.android.gpuimage.GPUImageRenderer$1.run+32) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #09 pc 000000000066b06d /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+2253) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #10 pc 0000000000162a19 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+25) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #11 pc 00000000002eae1e [anon:dalvik-classes.dex extracted in memory from /data/app/com.netease.meowcam--LsXagB4qZfC1zyQWVmqHQ==/base.apk] (jp.co.cyberagent.android.gpuimage.GPUImageRenderer.runAll+26) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #12 pc 000000000066be41 /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1537) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #13 pc 0000000000162919 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+25) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #14 pc 00000000002eac9e [anon:dalvik-classes.dex extracted in memory from /data/app/com.netease.meowcam--LsXagB4qZfC1zyQWVmqHQ==/base.apk] (jp.co.cyberagent.android.gpuimage.GPUImageRenderer.onDrawFrame+14) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #15 pc 000000000066b06d /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+2253) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #16 pc 0000000000162a19 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+25) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #17 pc 00000000002d243a /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.guardedRun+1086) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #18 pc 000000000066be41 /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1537) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #19 pc 0000000000162919 /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+25) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #20 pc 00000000002d2a34 /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.run+48) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #21 pc 000000000030dcad /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.13960599661070883162+253) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #22 pc 000000000065854a /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1210) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #23 pc 00000000001747cc /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+140) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #24 pc 0000000000169354 /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #25 pc 0000000000179c50 /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+288) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.200 23894-23894/? A/DEBUG: #26 pc 0000000000549d29 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod, art::(anonymous namespace)::ArgArray, art::JValue, char const)+89) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.201 23894-23894/? A/DEBUG: #27 pc 000000000054afc5 /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, _jmethodID, jvalue const)+437) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.201 23894-23894/? A/DEBUG: #28 pc 00000000005a0a7e /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void)+1438) (BuildId: 8bb3225e7c408f2ca23abac3db0417f2) 2020-02-20 19:50:11.201 23894-23894/? A/DEBUG: #29 pc 0000000000100fce /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+30) (BuildId: a08a19770d6696739c847e29c3f5f650) 2020-02-20 19:50:11.201 23894-23894/? A/DEBUG: #30 pc 0000000000098fe7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: a08a19770d6696739c847e29c3f5f650) 2020-02-20 19:50:11.445 1695-1695/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_32

act262 commented 4 years ago
// there defind fixed size
glRgbBuffer = IntBuffer.allocate(width * height);

// but if size changed now(new size small than old size), cause that err
 GPUImageNativeLibrary.YUVtoRBGA(data, width, height, glRgbBuffer.array());
gejiashu commented 4 years ago

这个问题 我也发现了 已经解决了