Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Fatal error when setting manual ISO on OAK-D-Lite #916

Open
domef opened this issue Jan 24, 2023 · 2 comments
Open

[BUG] Fatal error when setting manual ISO on OAK-D-Lite #916

domef opened this issue Jan 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@domef
Copy link

domef commented Jan 24, 2023

Describe the bug
When setting manual ISO with very small or very big values, a fatal error is thrown.

Minimal Reproducible Example

import cv2
import depthai as dai


pipeline = dai.Pipeline()
camera = pipeline.create(dai.node.ColorCamera)
camera.initialControl.setManualExposure(10000, 10000)
link = pipeline.createXLinkOut()
link.setStreamName("rgb")
link.input.setBlocking(False)
camera.video.link(link.input)
device = dai.Device(pipeline, usb2Mode=False)
queue = device.getOutputQueue(name="rgb", maxSize=10, blocking=False)
while True:
    image_raw = queue.get()
    image = image_raw.getCvFrame()
    cv2.namedWindow("image", cv2.WINDOW_NORMAL)
    cv2.imshow("image", image)
    c = cv2.waitKey(1)
    if c == ord("q"):
        break

This is the stacktrace:

[18443010C1818F0E00] [1.1] [0.903] [system] [critical] Fatal error. Please report to developers. Log: 'PlgSrcCtrl' '87'
Traceback (most recent call last):
  File "program.py", line 15, in <module>
    image_raw = queue.get()
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'rgb' (X_LINK_ERROR)'

Expected behavior
The device shouldn't raise a critical error, maybe it could just clip the ISO value and raise a warning.

Additional context
Depthai version: 2.20.0.0
Python version: 3.8.10
OS: Ubuntu 20.04.5 LTS
Device: Oak-D-Lite

@domef domef added the bug Something isn't working label Jan 24, 2023
@bolopenguin
Copy link

I'm having the same issue too...

@PetrNovota
Copy link
Contributor

PetrNovota commented Mar 30, 2023

Thank you for reporting. I can reproduce. I suggest your application ensures that it sends valid Exposure >0 and ISO [100;1600] values. The depthai library could handle it as you are suggesting, but as it can be easily handled by the programmer I dont think this will be resolved soon
@bolopenguin and @domef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants