`depthai_demo.py -dnn` or disable UI toggle crashes with "Queue for stream name 'nnInput' doesn't exist"
See original GitHub issueAttempting to disable NN with depthai_demo.py -dnn
crashes with “Queue for stream name ‘nnInput’ doesn’t exist”
Setup
- Microsoft Windows [Version 10.0.19044.1469]
- depthai
main
at f83ff69db8ad9cc4fe174e59ee48ad81c59867bb - Python 3.9.5
Repro
c:\python39\python.exe depthai_demo.py -dnn
Result
C:\njs\depthai>c:\python39\python.exe depthai_demo.py -dnn
Using depthai module from: C:\Users\dale\AppData\Roaming\Python\Python39\site-packages\depthai.cp39-win_amd64.pyd
Depthai version installed: 2.14.1.0.dev+27fa4519f289498e84768ab5229a1a45efb7e4df
Setting up demo...
Available devices:
[0] 14442C10C1A1C6D200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
File "C:\njs\depthai\depthai_demo.py", line 633, in run
self.instance.run_all(self.conf)
File "C:\njs\depthai\depthai_demo.py", line 121, in run_all
self.run()
File "C:\njs\depthai\depthai_demo.py", line 310, in run
self._pv.createQueues(self._device, self._createQueueCallback)
File "c:\njs\depthai\depthai_sdk\src\depthai_sdk\managers\preview_manager.py", line 88, in createQueues
self.outputQueues.append(device.getOutputQueue(name=name, maxSize=1, blocking=False))
Queue for stream name 'nnInput' doesn't exist
The crash can also be reproduced by
- Run
c:\python39\python.exe depthai_demo.py
- Click the top-right AI “enabled” toggle to disable it.
- Click “apply and restart”
Same crash will occur.
Expected
Demo runs with all camera feeds displayed (color, depth, etc.) except for the NN/AI feeds. My goal is to get maximum FPS (~120fps) for color and mono cameras in the demo.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Device - DepthAI documentation - Luxonis
Device, name: str, maxSize: int, blocking: bool = True) -> depthai.DataInputQueue. Gets an input queue corresponding to stream name. If it doesn't exist...
Read more >Python API Reference — DepthAI documentation | Luxonis
Disabling this bool uses the translation information from the calibration ... Gets a queue corresponding to stream name, if it exists, otherwise it...
Read more >Frequently Asked Questions - DepthAI
DepthAI FAQs & How-To. Why Does DepthAI Exist? In trying to solve an Embedded Spatial AI problem (details here), we discovered that although...
Read more >Capture single frame from Luxonis OAK-D (DepthAi)
Here is my code, "maxSize" is set to 1 and "blocking" is disabled. with dai.Device(pipeline) as device: qRgb = device.getOutputQueue(name="rgb", ...
Read more >depthai - ROS Index
DepthAI library doesn't yet provide API stability guarantees. ... black image) * Fix crash under high load (regression with camera events streaming) *...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@diablodale @sbelhareth3 could you check this PR? https://github.com/luxonis/depthai/pull/637 It resolves the issue on my side, hopefully will be merged soon
Can we notify a member of the Luxonis team of this issue? Such as @Erol444 @Luxonis-Brandon @alex-luxonis or someone else? This is my first time participating in a Github forum so I’m not sure what the protocol and social expectations are.