Azure_Kinect_ROS_Driver: Random crash happens after topic subscription
Hi, I am able to initialize the camera driver without a problem. However, as soon as I have a node subscribing to one of the topics, the driver crashes. Sometimes it happens and sometimes is does not. Also, if I have to sensors launched with independent drivers and in their own namespace, sometimes one of them or even both may crash when a node subscribes to one of the topics. For example: Cam1 provides topics /cam1/rgb/… Cam2 provides topics /cam2/rgb/…
If a node subscribes to /cam1/rgb…, Cam1 AND Cam2 may crash.
This is my launch file for the driver (see attachment). cameralaunch.txt The subscription is done in a node that does not have anything else but the subscription and a dummy callback.
This is the error that comes up:
[2020-04-07 13:15:50.398] [error] [t=107589] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/color/uvc_camerareader.cpp (1300): DecodeMJPEGtoBGRA32(). MJPEG decode failed: -1 [2020-04-07 13:15:50.402] [error] [t=107590] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/queue/queue.c (112): queue_pop(). Queue "Queue_capture" was popped in a disabled state. [2020-04-07 13:15:50.402] [error] [t=107590] /__w/1/s/extern/Azure-Kinect-Sensor-SDK/src/sdk/k4a.c (269): capturesync_get_capture(device->capturesync, capture_handle, timeout_in_ms) returned failure in k4a_device_get_capture() terminate called after throwing an instance of 'k4a::error' what(): Failed to get capture from device!
I am working with: Ubuntu 18.04 Azure kinect SDK 1.3 ROS melodic
Any help would be more than welcome, thanks in advance.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 34 (7 by maintainers)
Hi @carcormir, thanks for this great info. I hope you don’t mind but we should move this conversation over to Azure Kinect SDK so other members of our community can benefit.
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1187
@carcormir, Thank you for clarifying - I missed that in the thread.
I will also recommend to review the multicamera sync issue on Sensor SDK GitHub
I can open two instances of k4aviewer and open two cameras, yes. I can also launch two cameras with the ROS driver but as I mentioned the problem comes when subscribing to any of the topics like rgb/image_raw or rgb/image_rect_color, among others. But I had to increase the usb memory as suggested in other issues.