ahh, make sure to install the depthai_sdk version you had previously
Starting Depthai Viewer
I think this version:
python -m pip install depthai-sdk==1.9.1.1
After installing that version I got back
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-trackerpython main.py
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 25, in <module>
oak.start(blocking=True)
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 268, in start
self.build() # Build the pipeline
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 349, in build
self._init_device()
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 211, in _init_device
self._oak.device = dai.Device(
RuntimeError: Device already closed or disconnected: io error
on this error just try again, or power-cycle and try again
I tried it a couple times and it works once, and then I shut it off and try it again, but it doesn't seem to want to work consistently. Because when I re try it, it wont start and it will give me an error message
Well, do you need to reset it many times? I think if it suits you, you should just let it run
It works once and a while, then when it doesn't, it sends me this error
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker>python main.p
[18443010F141790E00] [1.7] [1723832457.199] [host] [warning] Device crashed, but no crash dump could be extracted.
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 25, in <module>
oak.start(blocking=True)
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 268, in start
self.build() # Build the pipeline
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 349, in build
self._init_device()
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 211, in _init_device
self._oak.device = dai.Device(
RuntimeError: Device already closed or disconnected: io error
I think it should also sort itself out if you give it a minute
Do you think this error is just coming from me starting and stopping so frequently?
hmm, no. You can play arround with the camera FPS and lower it until it works for you
Maybe drop it to 5fps and see if that works, if yes, go up, until it doesn't work
So the FPS is what will determine if the device will turn on consistently?
Regardless if I go to 5 or to 15, it seems to be luck with when it decides to turn the viewing window on or off
But this error remains consistent
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-trackerpython main.py
[18443010F141790E00] [1.7] [1723832820.114] [host] [warning] Device crashed, but no crash dump could be extracted.
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 25, in <module>
oak.start(blocking=True)
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 268, in start
self.build() # Build the pipeline
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 349, in build
self._init_device()
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 211, in _init_device
self._oak.device = dai.Device(
RuntimeError: Device already closed or disconnected: io error
I am able to get it to work maybe 25% of the time
@michaelsalerno
Might be that the PC is unable to supply enough power on the USB port, hence the device crash when using more complex pipeline. Could you try a different power source/splitter?
Thanks, @filipjeretina