depthai icon indicating copy to clipboard operation
depthai copied to clipboard

[BUG] depthai_demo.py fails with a core dump on Ubuntu 20.04

Open lukebayes opened this issue 4 years ago • 3 comments
trafficstars

After bumping into the (super helpful) USB device permission prompt, and updating my udev rules with the supplied commands (thanks!), and then getting the python3 requirements installed, initiating the demo fails with a core dump.

CPU / Hardware info attached (Created by running, cat /proc/cpuinfo > ~/Desktop/cpuinfo)

Ubuntu:

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal

To Reproduce

  1. Run python3 depthai_demo.py
  2. See following output:
Using depthai module from:  /home/lukebayes/.local/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
Depthai version installed:  2.10.0.0.dev+7a0749a61597c086c5fd6e579618ae33accec8df
Available devices:
[0] 14442C1011FB65D300 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
terminate called without an active exception
[2]    2436322 abort (core dumped)  python3 depthai_demo.py

Expected behavior A window to appear and show the demo

lukebayes avatar Oct 26 '21 17:10 lukebayes

The root cause appears to be a conflict with an Aukey webcam that was attached to this computer.

If I disconnect my webcam, the script works as expected. Connecting the webcam causes it to fail consistently.

The particular model camera is no longer available on Amazon, but here is the description from my purchase history:

AUKEY FHD Webcam, 1080p Live Streaming Camera with Stereo Microphone, Desktop or Laptop USB Webcam for Widescreen Video Calling and Recording

Also, here are the USB VID/PID data for the camera device:

Bus 005 Device 067: ID 1bcf:0215 Sunplus Innovation Technology Inc

I'm mainly posting here, so that others can potentially find a solution, and to possibly help with an update to the error message in this case.

Thanks!

lukebayes avatar Oct 26 '21 17:10 lukebayes

Hi @lukebayes, thanks for the report!

Since the issue is reproducible, could you try running it with gdb?

$ gdb --args python3 depthai_demo.py
(gdb) run
# ... app log here and error ...
(gdb) backtrace
# ... backtrace log which will help in finding the issue

Maybe it's something in our core API that we can fix so that we don't face same issue with other cameras

VanDavv avatar Oct 26 '21 20:10 VanDavv

Nice job getting back so quick!

I'm jammed up with some other things this week, but I'll dig back in early next week and let you know what I find.

lukebayes avatar Oct 27 '21 19:10 lukebayes