jiangdongguo / AndroidUSBCamera

🔥🔥🔥Flexible and useful UVC camera engine on Android platform, supporting multi-road cameras!
https://juejin.cn/post/7115229806844706847
Apache License 2.0
2.33k stars 795 forks source link

ANR Problem : I/dalvikvm: threadid=3: reacting to signal 3 #18

Open pinlin0726 opened 6 years ago

pinlin0726 commented 6 years ago

I copy the sample code to a new empty project and run the app for a while. The USBCamera widget can display the video smoothly but the app will be no response randomly and the logcat will throw ANR message. I am trying to dump the trace.txt log from android and search for threadid=3.

Here is the debug message about threadid=3 :

"Signal Catcher" daemon prio=5 tid=3 RUNNABLE | group="system" sCount=0 dsCount=0 obj=0x424699b8 self=0x639c08e8 | sysTid=617 nice=0 sched=0/0 cgrp=apps handle=1714186872 | state=R schedstat=( 0 0 0 ) utm=18 stm=29 core=3 at dalvik.system.NativeStart.run(Native Method)

pinlin0726 commented 6 years ago

I have solved the problem by commenting out the line 455 which is "mEglSurface.makeCurrent();" of UVCCameraTextrueView class.