Hi Oskar,
Thank you for investigating and for testing on your side.
I would like to send the bundle privately rather than attach the core file to this public thread.
Confirmed environment from the bundle:
- Device: OAK4-D R9
- Luxonis OS: 1.40.0
- OS VERSION_ID: r851-1.40.0
- OS BUILD_ID: 20260818221539
- DepthAI: 3.10.0
- RVC4 runtime: 0.0.1+71b86d25a6d031b508784bd12d98b4623d613afa
The device clock was not set, which is why the bundle filename and logs show January 1, 1970.
Crash details:
- Thread name: ImageManip(13)
- Stack trace thread ID: 2178
- Top frame: __memcpy_generic, memcpy.S:205
- Reported fault address: 0x7e67b4b000
- Signal: SIGSEGV (11)
Could you please provide a private upload link or another approved way to send the complete bundle?
Thanks!
# ---- Inputs ----
camera = pipeline.create(dai.node.Camera).build() # CAM_A
camera_out = camera.requestOutput(size=(1024, 768), type=dai.ImgFrame.Type.BGR888i, fps=30)
visualizer_out = camera.requestOutput(size=(1024, 768), type=dai.ImgFrame.Type.NV12, fps=30)
recording_queue = camera_out.createOutputQueue(maxSize=4, blocking=False)
# ---- Person detection (stereo depth) ----
mono_left = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_B, sensorFps=30)
mono_right = pipeline.create(dai.node.Camera).build(dai.CameraBoardSocket.CAM_C, sensorFps=30)
stereo = pipeline.create(dai.node.StereoDepth)
stereo.setExtendedDisparity(True)
mono_left.requestFullResolutionOutput().link(stereo.left)
mono_right.requestFullResolutionOutput().link(stereo.right)
spatial = pipeline.create(dai.node.SpatialDetectionNetwork).build(
camera, stereo, dai.NNModelDescription("luxonis/yolo26-nano:coco-512x288"))
spatial.input.setBlocking(False)
spatial.setBoundingBoxScaleFactor(0.5)
spatial.setDepthLowerThreshold(100)
spatial.setDepthUpperThreshold(30000)
spatial.setConfidenceThreshold(0.6)
# depthai-nodes 0.5.0
detection_filter = pipeline.create(ImgDetectionsFilter).build(spatial.out)
detection_filter.keepLabels([0]) # person
detection_filter.minConfidence(threshold=0.6)
detections_out = detection_filter.out
annotations = pipeline.create(dai.node.AnnotationsGenerator).build(detections_out)
# ---- Person crop for re-identification ----
osnet_archive = dai.NNArchive(dai.getModelFromZoo(
dai.NNModelDescription.fromYamlFile("osnet_imagenet.RVC4.yaml")))
# osnet_archive.getInputSize() -> (128, 256)
crop_node = (
pipeline.create(FrameCropper)
.fromImgDetections(inputImgDetections=detections_out, outputSize=(128, 256))
.build(inputImage=spatial.passthrough)
)
embeddings_nn = pipeline.create(ParsingNeuralNetwork).build(crop_node.out, osnet_archive)
gather_data = pipeline.create(GatherData).build(
cameraFps=30,
inputData=embeddings_nn.out,
inputReference=detections_out,
)
# ---- Host-side tracker ----
class DeepsortTracking(dai.node.HostNode):
def build(self, img_frame, gathered_data, labels=None):
self.link_args(img_frame, gathered_data)
return self
def process(self, img_frame: dai.Buffer, gathered_data: dai.Buffer) -> None:
frame = img_frame.getCvFrame() # full passthrough frame, read on host
detections = gathered_data.reference_data.detections
embeddings = gathered_data.items # list[dai.NNData], one per crop
# ... DeepSORT tracking (application logic, omitted) ...
# outputs dai.Tracklets on self._out
tracking = pipeline.create(DeepsortTracking).build(
img_frame=spatial.passthrough,
gathered_data=gather_data.out,
)
# ---- Outputs consumed by the host ----
person_queue = detections_out.createOutputQueue(maxSize=8, blocking=False)
visualizer.addTopic("video", visualizer_out)
visualizer.addTopic("detections", tracking.out)
visualizer.addTopic("annotations", annotations.output)
pipeline.start()
Notes:
- spatial.passthrough is linked to two consumers: the FrameCropper (device side) and the DeepsortTracking HostNode (host side, which calls getCvFrame()).
- detections_out (ImgDetectionsFilter output) is linked to FrameCropper, GatherData, AnnotationsGenerator and a host output queue.
- All host output queues are non-blocking.
- The DeepSORT tracking logic itself is omitted. DeepsortTracking is a Python HostNode running
inside the OAK App container (standalone mode on the OAK4-D). Its only pipeline output is
dai.Tracklets on tracking.out, which is consumed only by the Visualizer. It does not send
any ImageManipConfig or other messages to device-side nodes. It reads the passthrough frame
with getCvFrame() only to get the image width and height, and does not modify it.