question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`depthai_demo.py -dnn` or disable UI toggle crashes with "Queue for stream name 'nnInput' doesn't exist"

See original GitHub issue

Attempting 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

  1. 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

  1. Run c:\python39\python.exe depthai_demo.py
  2. Click the top-right AI “enabled” toggle to disable it.
  3. 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:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
VanDavvcommented, Feb 12, 2022

@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

1reaction
sbelhareth3commented, Feb 12, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found