AIRLegend / aitrack

6DoF Head tracking software
MIT License
1.04k stars 105 forks source link

Application crash with Logitech C920 #60

Closed kinou777 closed 3 years ago

kinou777 commented 3 years ago

Describe the bug Application does not respond / crashed, in to 2 cases :

To Reproduce Aitrack is crashing at start one time over 2 When successfull started, it is crashing everytime when launching the tracking In any cases, application is never working as expected.

Screenshots 2 logs available :

Crash at start : [2020-10-03 12:41:07.032] [aitrack] [info] ---------- AITRACK LOG ---------- [2020-10-03 12:41:07.265] [aitrack] [info] Created/Found prefs.ini [2020-10-03 12:41:07.265] [aitrack] [info] Searching for cameras...

Crash at tracking start : [2020-10-03 12:45:21.465] [aitrack] [info] ---------- AITRACK LOG ---------- [2020-10-03 12:45:21.714] [aitrack] [info] Created/Found prefs.ini [2020-10-03 12:45:21.714] [aitrack] [info] Searching for cameras... [2020-10-03 12:45:23.378] [aitrack] [info] Number of recognized cameras: 1 [2020-10-03 12:45:23.379] [aitrack] [info] UDP sender reinitialized. IP: 127.0.0.1 PORT: 4242 [2020-10-03 12:45:23.379] [aitrack] [info] Building Tracker with selected camera: 0 [2020-10-03 12:45:23.420] [aitrack] [info] Tracker initialized. [2020-10-03 12:45:23.420] [aitrack] [info] Updated stabilizer. [2020-10-03 12:45:23.420] [aitrack] [info] Updating camera parameters... [2020-10-03 12:45:23.420] [aitrack] [info] Updated camera parameters. 1280x720@30 [2020-10-03 12:45:23.420] [aitrack] [info] Checking for updates [2020-10-03 12:45:23.457] [aitrack] [info] App initialized [2020-10-03 12:45:29.839] [aitrack] [info] Starting camera 0 capture

Environment

Additional context Resolution method tried :

AIRLegend commented 3 years ago

Hello! Thanks for the info!

Seems to be the same bug some people are experiencing (some other issues are already posted here). I don't think it's a hardware issue as there are quite a few of people who are using that camera. However, until now, I've been unable to get to the root of the problem. My guess for the moment is that windows could be interfering in some way with OpenCV while accessing the camera device. That would explain both types of crash you described.

Quick questions:

kinou777 commented 3 years ago

Hello ! Thanks for quick reply !

AIRLegend commented 3 years ago

Do you get the same error if you use Snap Camera (or any other virtual camera)?

Thanks!

kinou777 commented 3 years ago

Indeed working with snap Camera selected.

AIRLegend commented 3 years ago

Strange then... Do you have your camera connected via USB hub?

kinou777 commented 3 years ago

No, directly to pc, I've tried different ports, make no difference.