Android外接USB设备报错
Fatal signal 6 (SIGABRT), code 0 in tid 3596 (RenderThread)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'unknown'
Revision: '0'
ABI: 'arm'
signal 6 (SIGABRT), code 0 (SI_USER), fault addr --------
Abort message: 'GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:550'
r0 00000000 r1 00000e0c r2 00000006 r3 00000008
r4 93377978 r5 00000006 r6 93377920 r7 0000010c
r8 928d9980 r9 00000000 sl ad8b46bc fp ad8b46b8
ip 00000018 sp 93376f38 lr afe84857 pc afe870c0 cpsr 600f0010
backtrace:
#00 pc 0004a0c0 /system/lib/libc.so (tgkill+12)
#01 pc 00047853 /system/lib/libc.so (pthread_kill+34)
#02 pc 0001d8b5 /system/lib/libc.so (raise+10)
#03 pc 00019401 /system/lib/libc.so (__libc_android_abort+34)
#04 pc 00017048 /system/lib/libc.so (abort+4)
#05 pc 0000c3df /system/lib/libcutils.so (__android_log_assert+114)
#06 pc 00024135 /system/lib/libhwui.so
#07 pc 00025b43 /system/lib/libhwui.so
#08 pc 00029139 /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+80)
#09 pc 0000e325 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144)
#10 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)
#11 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22)
#12 pc 00019e5d /system/lib/libc.so (__start_thread+6)
ls -la proc/pid/fd/
pid换成要监控的进程号,发现每次打开预览都保留了usb下面的fd,关闭的时候却没有释放,导致单进程持有fd超过1024的限制崩溃