openpilot icon indicating copy to clipboard operation
openpilot copied to clipboard

camerad fails to start when trying to use webcam with openpilot on Ubuntu

Open MikeBusuttil opened this issue 2 months ago • 9 comments

Describe the bug

Following the steps in the webcam readme and running NOSENSOR=1 USE_WEBCAM=1 system/manager/manager.py appears to work. UI loads and all green in console:

(openpilot) mike@MIKEZLAP:~/openpilot$ NOSENSOR=1 USE_WEBCAM=1 system/manager/manager.py
system/loggerd/bootlog.cc: bootlog to /home/mike/.comma/media/0/realdata/boot/00000001--cad91c878d
missing public key: /home/mike/.comma/persist/comma/id_rsa.pub
selfdrive/ui/qt/network/wifi_manager.cc: DBus call error: "The name org.freedesktop.NetworkManager was not provided by any .service files"
selfdrive/ui/qt/network/wifi_manager.cc: DBus call error: "The name org.freedesktop.NetworkManager was not provided by any .service files"
MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
logmessaged ui pandad deleter hardwared statsd
logmessaged ui pandad deleter hardwared statsd
logmessaged ui pandad deleter hardwared statsd

but then results in the following when pressing the Driver Camera Preview button in the UI (red camerad and dmonitoringmodeld in console):

logmessaged ui pandad deleter hardwared statsd
logmessaged ui pandad deleter hardwared statsd
Process camerad:
Traceback (most recent call last):
  File "/home/mike/.local/share/uv/python/cpython-3.12.0-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/home/mike/.local/share/uv/python/cpython-3.12.0-linux-x86_64-gnu/lib/python3.12/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/mike/openpilot/openpilot/system/manager/process.py", line 56, in nativelauncher
    os.execvp(pargs[0], pargs)
  File "<frozen os>", line 580, in execvp
  File "<frozen os>", line 603, in _execvpe
FileNotFoundError: [Errno 2] No such file or directory
camerad logmessaged dmonitoringmodeld ui pandad deleter dmonitoringd hardwared statsd
selfdrive.modeld.dmonitoringmodeld: common/clutil.cc:79: cl_context cl_create_context(cl_device_id): Assertion `_ret&& err == CL_SUCCESS' failed.
camerad logmessaged dmonitoringmodeld ui pandad deleter dmonitoringd hardwared statsd
camerad logmessaged dmonitoringmodeld ui pandad deleter dmonitoringd hardwared statsd
camerad logmessaged dmonitoringmodeld ui pandad deleter dmonitoringd hardwared statsd

OS Version

Ubuntu 24.04

openpilot version or commit

57fc4f79d16c132d526a66d603fd9100804569d1

Additional info

  • The webcam readme references system/camerad/cameras/camera_webcam.cc which no longer exists.
  • others appear to be experiencing the same issue
    • https://discord.com/channels/469524606043160576/524594418628558878/1285247575246503937
    • https://discord.com/channels/469524606043160576/524594418628558878/1283916435575410688
    • https://discord.com/channels/469524606043160576/524594418628558878/1269416272555147294
    • https://discord.com/channels/469524606043160576/524594418628558878/1250604552827306115

MikeBusuttil avatar Dec 09 '24 23:12 MikeBusuttil