So apparently, for no good reason and without any other error message, the camera stops grabbing frames, leading to no ros2 topics such as point clouds or images anymore. Is that known behaviour? I thought it is due to a ffmpeg compression problem first, but without this compression, the behaviour stays same and after some time I do not receive any image topics anymore.
Maybe some more info here, sometimes I also get a CUDA error, not sure if it is the reason of failure every time or only when I get the log:
zed_camera_container | [component_container_isolated-2] [DEBUG] [1756213780.117336725] [zed.zed_node]: Grab thread: grabbing frame #43 zed_camera_container | [component_container_isolated-2] CUDA error at /builds/sl/ZEDKit/lib/src/sl_core/utils/util.cu:482 code=702(cudaErrorLaunchTimeout) “cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL)” zed_camera_container | [component_container_isolated-2] in sl::ERROR_CODE sl::Mat::updateGPUfromCPU(cudaStream_t, int) : Err [702]: the launch timed out and was terminated. zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] IExecutionContext::enqueueV3: Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] CUDA error at /builds/sl/ZEDKit/lib/src/sl_core/utils/util.cu:482 code=702(cudaErrorLaunchTimeout) “cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL)” zed_camera_container | [component_container_isolated-2] CUDA error at /builds/sl/ZEDKit/lib/src/sl_core/utils/util.cu:482 code=702(cudaErrorLaunchTimeout) “cudaCreateTextureObject(tex, &resDesc, &texDesc, NULL)” zed_camera_container | [component_container_isolated-2] [DEBUG] [1756213780.266976134] [zed.zed_node]: Grabbed zed_camera_container | [component_container_isolated-2] [ERROR] [1756213780.266999048] [zed.zed_node]: Critical camera error: CUDA ERROR. NODE KILLED. zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [Grab] CUDA error returned: the launch timed out and was terminated ( 702 ) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] CUDA ERROR in sl::ERROR_CODE sl::grab(sl::RuntimeParameters) zed_camera_container | [component_container_isolated-2] CUDA error at Camera.cpp:219 code=702(cudaErrorLaunchTimeout) “void sl::close()” zed_camera_container | [component_container_isolated-2] CUDA error at ../src/sl_zed/Camera.cpp:225 code=702(cudaErrorLaunchTimeout) “cudaStreamSynchronize(h->global_stream)” zed_camera_container | [component_container_isolated-2] CUDA error at Camera.cpp:238 code=702(cudaErrorLaunchTimeout) “void sl::close()” zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [graphContext.h::~MyelinGraphContext::85] Error Code 1: Myelin ([impl.cpp:unload_cuda:625] Error 702 destroying event ‘0x751c44527a90’.) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [defaultAllocator.cpp::deallocate::85] Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [defaultAllocator.cpp::deallocate::85] Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [cudaResources.cpp::~ScopedCudaStream::35] Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [scopedCudaResources.cpp::~ScopedCudaEvent::30] Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [scopedCudaResources.cpp::~ScopedCudaEvent::30] Error Code 1: Cuda Runtime (the launch timed out and was terminated) zed_camera_container | [component_container_isolated-2] [2025-08-26 13:09:40 UTC][ZED][WARNING] [scopedCudaResources.cpp::~ScopedCudaEvent::30] Error Code 1: Cuda Runtime (the launch timed out and was terminated)
This is the only error I get, the other times, the camera just stops publishing topics, as seen above when it stops to grab frames.
Thanks for reaching out and giving more information.
I wasn’t able to reproduce your issue on my end with the Jazzy version of our wrapper. Does this issue happen also when you try running the camera outside of the ROS2 framework (e.g, running in ‘ZED_Explorer’ instead) ?
I did try ZED Explorer and did not experience a crash, although I tested it only once and for about 15 minutes only, which the ros2 wrapper sometimes also manages to do, so it is hard to definetly say if it is only that. I will try another dockerfile next, to try to see if it helps. So far I’ve either installed the SDK by wget, or used the official dockerfile, but both lead to the same issue.
Is there somewhere an official ros2 jazzy dockerfile? The one on GitHub is still for humble, and the example cuda/sdk versions don’t even work together. I managed to run it with cuda 12.9 and the 5.0.5 devel SDK, but that is where the crashes happen.