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.35k stars 802 forks source link

Crash if plug out my camera #104

Open quocnhat7 opened 5 years ago

quocnhat7 commented 5 years ago

Hi, thank you for this lib, now I can connect to my external camera and get the video.

Note: if I run your sample app, there is no problem when I plug camera out. Perhaps there is something special will make lib got crash?

Please help. I am using version com.github.jiangdongguo:AndroidUSBCamera:2.2.8

quocnhat7 commented 5 years ago

Hi, can you help me :(

yu12mang commented 5 years ago

i have same problem ,anyone can help us?

Scribbler1984 commented 5 years ago

It would be nice to have more information about the problem.

Debugging without USB is not that hard. I would reccomend an App called MatLog. Follow the instructions and you can view your Android log. It helps a lot and gives you a very clear list what the problem is and where it came from.

Debugging without any hint is very difficult.

quocnhat7 commented 5 years ago

@AsmodanPushPlay thank you, will try that lib. @jiangdongguo we found problem. The native lib will encounter this crash on some devices running android 9 (not only because of android 9. I have 2 phones honor and xiaomi, 1 is ok, 1 got crash). Our team rebuild the native lib from parent project, it is ok now. We will submit that update to parent lib project. Your lib will be safe also with this crash :D

runxmedia commented 5 years ago

I don't get a craash, but it stops executing at thread.mSync.wait(); It never moves on from this

quocnhat7 commented 5 years ago

I don't get a craash, but it stops executing at thread.mSync.wait(); It never moves on from this