• LuxonisHub
  • RobotHub Getting Started, appears broken

I can connect my OAK-D Lite to the Hub. However, using the Template App it crashes on line 83 (of app.py), when deploying with a Raspberry Pi 4 and current release of Bookworm. My hardware configuration appears OK, as I can run some of the example apps to get a video displayed, but the Template App runs for a few seconds and then crashes every time. Re-installed everything, with nothing else running and the problem persists. I am too new to RobotHub to even know where to look for a solution…

    Is this the right link? That post seems to be about Docker related issues with an OAK4 and I can’t seem to relate that to my OAK-D lite on Raspberry Pi, using the Template App. I’m not making any changes to the Template App. If a ‘Hello World’ app doesn’t work, surely there is a more basic issue somewhere?

    14 days later

    Hello, please try to upload the application that keeps crashing to the device in HUB as a "RUN" application.
    Open the device detail in the HUB, then go to the Apps tab -> click the Install App button -> select Run -> ... and complete all installation steps.
    After installing the application, try to start it by clicking the Start button in the application detail. Then check the logs in the Logs tab.
    Please send us the log record afterwards.

    Thank you. Apologies for the delayed response.

    Martin

    [2025-04-28 14:38:10.0 +00:00:00] [2025-04-28 14:38:10] INFO [robothub.application.__manage_device:127] Device 14442C1031D142D400: management thread started.

    [2025-04-28 14:38:10.0 +00:00:00] [2025-04-28 14:38:10] INFO [robothub.application._connect:169] Establishing connection with Device 14442C1031D142D400...

    [2025-04-28 14:38:12.0 +00:00:00] [2025-04-28 14:38:12] INFO [robothub.application._connect:184] Device 14442C1031D142D400: successfully connected.

    [2025-04-28 14:38:12.0 +00:00:00] [2025-04-28 14:38:12] INFO [robothub.application._manage_device_inner:240] Device 14442C1031D142D400: creating Pipeline...

    [2025-04-28 14:38:12.0 +00:00:00] [2025-04-28 14:38:12] INFO [root.setup_pipeline:58] App config: {'fps': 20, 'image_event_upload_interval_minutes': 1, 'video_event_upload_interval_minutes': 5}

    [2025-04-28 14:38:24.0 +00:00:00] [2025-04-28 14:38:24] INFO [robothub.application._manage_device_inner:243] Device 14442C1031D142D400: Pipeline created...

    [2025-04-28 14:38:25.0 +00:00:00] [2025-04-28 14:38:25] INFO [root.manage_device:74] 14442C1031D142D400 creating output queues...

    [2025-04-28 14:38:25.0 +00:00:00] [2025-04-28 14:38:25] INFO [root.manage_device:79] 14442C1031D142D400 Application started

    [2025-04-28 14:38:25.0 +00:00:00] [2025-04-28 14:38:25] ERROR [root._default_thread_excepthook:159] Uncaught Thread Exception occured, printing traceback and Exiting!

    [2025-04-28 14:38:25.0 +00:00:00] Traceback (most recent call last):

    [2025-04-28 14:38:25.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    [2025-04-28 14:38:25.0 +00:00:00] self.run()

    [2025-04-28 14:38:25.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 953, in run

    [2025-04-28 14:38:25.0 +00:00:00] self.target(*self.args, **self._kwargs)

    [2025-04-28 14:38:25.0 +00:00:00] File "/app/app.py", line 83, in manage_device

    [2025-04-28 14:38:25.0 +00:00:00] object_detections = object_detections_queue.get()

    [2025-04-28 14:38:25.0 +00:00:00] RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'object_detections' (X_LINK_ERROR)'

    [2025-04-28 14:38:25.0 +00:00:00] [2025-04-28 14:38:25] INFO [root._stop:248] Exiting

    [2025-04-28 14:38:25.0 +00:00:00] [2025-04-28 14:38:25] INFO [robothub.application.on_stop:115] Application is terminating...

    [2025-04-28 14:38:29.0 +00:00:00] [14442C1031D142D400] [1.1.1] [1745851109.613] [host] [warning] Device crashed, but no crash dump could be extracted.

    [2025-04-28 14:38:31.0 +00:00:00] [2025-04-28 14:38:31] INFO [robothub.application._close_device:198] Device 14442C1031D142D400: closed gracefully.

    [2025-04-28 14:38:31.0 +00:00:00] [2025-04-28 14:38:31] INFO [robothub.application.__manage_device:135] Device 14442C1031D142D400: thread stopped.

    [2025-04-28 14:38:31.0 +00:00:00] [2025-04-28 14:38:31] INFO [robothub.application.on_stop:120] Device thread 14442C1031D142D400: stopped.

    [2025-04-28 14:38:31.0 +00:00:00] [2025-04-28 14:38:31] INFO [root._shutdown:71] Agent client shutdown complete

    [2025-04-28 14:38:37.0 +00:00:00] [2025-04-28 14:38:37] INFO [robothub.application.__manage_device:127] Device 14442C1031D142D400: management thread started.

    [2025-04-28 14:38:37.0 +00:00:00] [2025-04-28 14:38:37] INFO [robothub.application._connect:169] Establishing connection with Device 14442C1031D142D400...

    [2025-04-28 14:38:40.0 +00:00:00] [2025-04-28 14:38:40] INFO [robothub.application._connect:184] Device 14442C1031D142D400: successfully connected.

    [2025-04-28 14:38:40.0 +00:00:00] [2025-04-28 14:38:40] INFO [robothub.application._manage_device_inner:240] Device 14442C1031D142D400: creating Pipeline...

    [2025-04-28 14:38:40.0 +00:00:00] [2025-04-28 14:38:40] INFO [root.setup_pipeline:58] App config: {'fps': 20, 'image_event_upload_interval_minutes': 1, 'video_event_upload_interval_minutes': 5}

    [2025-04-28 14:38:40.0 +00:00:00] [2025-04-28 14:38:40] INFO [robothub.application._manage_device_inner:243] Device 14442C1031D142D400: Pipeline created...

    [2025-04-28 14:38:41.0 +00:00:00] [2025-04-28 14:38:41] INFO [root.manage_device:74] 14442C1031D142D400 creating output queues...

    [2025-04-28 14:38:41.0 +00:00:00] [2025-04-28 14:38:41] INFO [root.manage_device:79] 14442C1031D142D400 Application started

    [2025-04-28 14:38:42.0 +00:00:00] [2025-04-28 14:38:41] ERROR [root._default_thread_excepthook:159] Uncaught Thread Exception occured, printing traceback and Exiting!

    [2025-04-28 14:38:42.0 +00:00:00] Traceback (most recent call last):

    [2025-04-28 14:38:42.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    [2025-04-28 14:38:42.0 +00:00:00] self.run()

    [2025-04-28 14:38:42.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 72, in run

    [2025-04-28 14:38:42.0 +00:00:00] reraise(*_capture_exception())

    [2025-04-28 14:38:42.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/_compat.py", line 99, in reraise

    [2025-04-28 14:38:42.0 +00:00:00] raise value

    [2025-04-28 14:38:42.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 70, in run

    [2025-04-28 14:38:42.0 +00:00:00] return old_run_func(self, *a, **kw)

    [2025-04-28 14:38:42.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 953, in run

    [2025-04-28 14:38:42.0 +00:00:00] self.target(*self.args, **self._kwargs)

    [2025-04-28 14:38:42.0 +00:00:00] File "/app/app.py", line 83, in manage_device

    [2025-04-28 14:38:42.0 +00:00:00] object_detections = object_detections_queue.get()

    [2025-04-28 14:38:42.0 +00:00:00] RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'object_detections' (X_LINK_ERROR)'

    [2025-04-28 14:38:42.0 +00:00:00] [2025-04-28 14:38:42] INFO [root._stop:248] Exiting

    [2025-04-28 14:38:42.0 +00:00:00] [2025-04-28 14:38:42] INFO [robothub.application.on_stop:115] Application is terminating...

    [2025-04-28 14:38:45.0 +00:00:00] [14442C1031D142D400] [1.1.1] [1745851125.485] [host] [warning] Device crashed, but no crash dump could be extracted.

    [2025-04-28 14:38:46.0 +00:00:00] [2025-04-28 14:38:46] INFO [robothub.application._close_device:198] Device 14442C1031D142D400: closed gracefully.

    [2025-04-28 14:38:46.0 +00:00:00] [2025-04-28 14:38:46] INFO [robothub.application.__manage_device:135] Device 14442C1031D142D400: thread stopped.

    [2025-04-28 14:38:46.0 +00:00:00] [2025-04-28 14:38:46] INFO [robothub.application.on_stop:120] Device thread 14442C1031D142D400: stopped.

    [2025-04-28 14:38:47.0 +00:00:00] [2025-04-28 14:38:47] INFO [root._shutdown:71] Agent client shutdown complete

    [2025-04-28 14:38:47.0 +00:00:00] Sentry is attempting to send 2 pending events

    [2025-04-28 14:38:47.0 +00:00:00] Waiting up to 2 seconds

    [2025-04-28 14:38:47.0 +00:00:00] Press Ctrl-C to quit

    [2025-04-28 14:38:53.0 +00:00:00] [2025-04-28 14:38:53] INFO [robothub.application.__manage_device:127] Device 14442C1031D142D400: management thread started.

    [2025-04-28 14:38:53.0 +00:00:00] [2025-04-28 14:38:53] INFO [robothub.application._connect:169] Establishing connection with Device 14442C1031D142D400...

    [2025-04-28 14:38:56.0 +00:00:00] [2025-04-28 14:38:56] INFO [robothub.application._connect:184] Device 14442C1031D142D400: successfully connected.

    [2025-04-28 14:38:56.0 +00:00:00] [2025-04-28 14:38:56] INFO [robothub.application._manage_device_inner:240] Device 14442C1031D142D400: creating Pipeline...

    [2025-04-28 14:38:56.0 +00:00:00] [2025-04-28 14:38:56] INFO [root.setup_pipeline:58] App config: {'fps': 20, 'image_event_upload_interval_minutes': 1, 'video_event_upload_interval_minutes': 5}

    [2025-04-28 14:38:56.0 +00:00:00] [2025-04-28 14:38:56] INFO [robothub.application._manage_device_inner:243] Device 14442C1031D142D400: Pipeline created...

    [2025-04-28 14:38:57.0 +00:00:00] [2025-04-28 14:38:57] INFO [root.manage_device:74] 14442C1031D142D400 creating output queues...

    [2025-04-28 14:38:57.0 +00:00:00] [2025-04-28 14:38:57] INFO [root.manage_device:79] 14442C1031D142D400 Application started

    [2025-04-28 14:38:57.0 +00:00:00] [2025-04-28 14:38:57] ERROR [root._default_thread_excepthook:159] Uncaught Thread Exception occured, printing traceback and Exiting!

    [2025-04-28 14:38:57.0 +00:00:00] Traceback (most recent call last):

    [2025-04-28 14:38:57.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    [2025-04-28 14:38:57.0 +00:00:00] self.run()

    [2025-04-28 14:38:57.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 72, in run

    [2025-04-28 14:38:57.0 +00:00:00] reraise(*_capture_exception())

    [2025-04-28 14:38:57.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/_compat.py", line 99, in reraise

    [2025-04-28 14:38:57.0 +00:00:00] raise value

    [2025-04-28 14:38:57.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 70, in run

    [2025-04-28 14:38:57.0 +00:00:00] return old_run_func(self, *a, **kw)

    [2025-04-28 14:38:57.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 953, in run

    [2025-04-28 14:38:57.0 +00:00:00] self.target(*self.args, **self._kwargs)

    [2025-04-28 14:38:57.0 +00:00:00] File "/app/app.py", line 82, in manage_device

    [2025-04-28 14:38:57.0 +00:00:00] mjpeg_frame = mjpeg_frames_queue.get()

    [2025-04-28 14:38:57.0 +00:00:00] RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'mjpeg_frames' (X_LINK_ERROR)'

    [2025-04-28 14:38:57.0 +00:00:00] [2025-04-28 14:38:57] INFO [root._stop:248] Exiting

    [2025-04-28 14:38:57.0 +00:00:00] [2025-04-28 14:38:57] INFO [robothub.application.on_stop:115] Application is terminating...

    [2025-04-28 14:39:01.0 +00:00:00] [14442C1031D142D400] [1.1.1] [1745851141.077] [host] [warning] Device crashed, but no crash dump could be extracted.

    [2025-04-28 14:39:02.0 +00:00:00] [2025-04-28 14:39:02] INFO [robothub.application._close_device:198] Device 14442C1031D142D400: closed gracefully.

    [2025-04-28 14:39:02.0 +00:00:00] [2025-04-28 14:39:02] INFO [robothub.application.__manage_device:135] Device 14442C1031D142D400: thread stopped.

    [2025-04-28 14:39:02.0 +00:00:00] [2025-04-28 14:39:02] INFO [robothub.application.on_stop:120] Device thread 14442C1031D142D400: stopped.

    [2025-04-28 14:39:02.0 +00:00:00] [2025-04-28 14:39:02] INFO [root._shutdown:71] Agent client shutdown complete

    [2025-04-28 14:39:02.0 +00:00:00] Sentry is attempting to send 2 pending events

    [2025-04-28 14:39:02.0 +00:00:00] Waiting up to 2 seconds

    [2025-04-28 14:39:02.0 +00:00:00] Press Ctrl-C to quit

    [2025-04-28 14:39:09.0 +00:00:00] [2025-04-28 14:39:09] INFO [robothub.application.__manage_device:127] Device 14442C1031D142D400: management thread started.

    [2025-04-28 14:39:09.0 +00:00:00] [2025-04-28 14:39:09] INFO [robothub.application._connect:169] Establishing connection with Device 14442C1031D142D400...

    [2025-04-28 14:39:11.0 +00:00:00] [2025-04-28 14:39:11] INFO [robothub.application._connect:184] Device 14442C1031D142D400: successfully connected.

    [2025-04-28 14:39:11.0 +00:00:00] [2025-04-28 14:39:11] INFO [robothub.application._manage_device_inner:240] Device 14442C1031D142D400: creating Pipeline...

    [2025-04-28 14:39:11.0 +00:00:00] [2025-04-28 14:39:11] INFO [root.setup_pipeline:58] App config: {'fps': 20, 'image_event_upload_interval_minutes': 1, 'video_event_upload_interval_minutes': 5}

    [2025-04-28 14:39:12.0 +00:00:00] [2025-04-28 14:39:12] INFO [robothub.application._manage_device_inner:243] Device 14442C1031D142D400: Pipeline created...

    [2025-04-28 14:39:13.0 +00:00:00] [2025-04-28 14:39:12] INFO [root.manage_device:74] 14442C1031D142D400 creating output queues...

    [2025-04-28 14:39:13.0 +00:00:00] [2025-04-28 14:39:13] INFO [root.manage_device:79] 14442C1031D142D400 Application started

    [2025-04-28 14:39:13.0 +00:00:00] [2025-04-28 14:39:13] ERROR [root._default_thread_excepthook:159] Uncaught Thread Exception occured, printing traceback and Exiting!

    [2025-04-28 14:39:13.0 +00:00:00] Traceback (most recent call last):

    [2025-04-28 14:39:13.0 +00:00:00] self.run()

    [2025-04-28 14:39:13.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner

    [2025-04-28 14:39:13.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 72, in run

    [2025-04-28 14:39:13.0 +00:00:00] reraise(*_capture_exception())

    [2025-04-28 14:39:13.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/_compat.py", line 99, in reraise

    [2025-04-28 14:39:13.0 +00:00:00] raise value

    [2025-04-28 14:39:13.0 +00:00:00] File "/usr/local/lib/python3.10/dist-packages/sentry_sdk/integrations/threading.py", line 70, in run

    [2025-04-28 14:39:13.0 +00:00:00] return old_run_func(self, *a, **kw)

    [2025-04-28 14:39:13.0 +00:00:00] File "/usr/lib/python3.10/threading.py", line 953, in run

    [2025-04-28 14:39:13.0 +00:00:00] self.target(*self.args, **self._kwargs)

    [2025-04-28 14:39:13.0 +00:00:00] File "/app/app.py", line 83, in manage_device

    [2025-04-28 14:39:13.0 +00:00:00] object_detections = object_detections_queue.get()

    [2025-04-28 14:39:13.0 +00:00:00] RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'object_detections' (X_LINK_ERROR)'

    [2025-04-28 14:39:13.0 +00:00:00] [2025-04-28 14:39:13] INFO [root._stop:248] Exiting

    [2025-04-28 14:39:13.0 +00:00:00] [2025-04-28 14:39:13] INFO [robothub.application.on_stop:115] Application is terminating...

    [2025-04-28 14:39:16.0 +00:00:00] [14442C1031D142D400] [1.1.1] [1745851156.989] [host] [warning] Device crashed, but no crash dump could be extracted.

    [2025-04-28 14:39:18.0 +00:00:00] [2025-04-28 14:39:18] INFO [robothub.application._close_device:198] Device 14442C1031D142D400: closed gracefully.

    [2025-04-28 14:39:18.0 +00:00:00] [2025-04-28 14:39:18] INFO [robothub.application.__manage_device:135] Device 14442C1031D142D400: thread stopped.

    [2025-04-28 14:39:18.0 +00:00:00] [2025-04-28 14:39:18] INFO [robothub.application.on_stop:120] Device thread 14442C1031D142D400: stopped.

    [2025-04-28 14:39:18.0 +00:00:00] [2025-04-28 14:39:18] INFO [root._shutdown:71] Agent client shutdown complete

    [2025-04-28 14:39:18.0 +00:00:00] Sentry is attempting to send 2 pending events

    [2025-04-28 14:39:18.0 +00:00:00] Waiting up to 2 seconds

    [2025-04-28 14:39:18.0 +00:00:00] Press Ctrl-C to quit

    It is getting its power from the Raspberry Pi, however, the system logs for the Pi suggest it is not having any power issues. Also, I did get this working about a year ago, unfortunately, I then had to park my project and have only just picked it up again. However, I have now ordered the part you suggest so that this can be eliminated. (I'd not done this before as the postage to the UK is more than the cost of the part and I could not find anywhere to source it locally!). I'll try again when the adapter arrives.

    7 days later

    Thanks for the help. Yes, the power does seem to be the problem. I had thought I would be OK, as the depth tests all seemed fine. Presumably, the Robohub client is more power hungry than running local python based depthai application? Anyway, I now have a way forward - I just need to work out how to fit the power adaptor inside, as I have restricted space!

    Much appreciated.