ZEDfu crashes with unknown cuda error segmentation fault

I am running on ubuntu 22.04.05
I have cuda version 12.1
installed ZED sdk
Ran into following error:
CUDA Initialisation failed : cudaErrorUnknown Stack trace (most recent call last): #22 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in #21 Object "/usr/local/zed/tools/ZEDfu", at 0x564e436de5a4, in #20 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f01a8429e3f, in __libc_start_main #19 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f01a8429d8f, in #18 Object "/usr/local/zed/tools/ZEDfu", at 0x564e436de46b, in #17 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89c3afc, in QCoreApplication::exec() #16 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89bf921, in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) #15 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89f2ec5, in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) #14 Object "/home/sumit/anaconda3/envs/zedcv/lib/./libglib-2.0.so.0", at 0x7f01a731da60, in g_main_context_iteration #13 Object "/home/sumit/anaconda3/envs/zedcv/lib/./libglib-2.0.so.0", at 0x7f01a731d998, in #12 Object "/home/sumit/anaconda3/envs/zedcv/lib/./libglib-2.0.so.0", at 0x7f01a731d6cb, in g_main_context_dispatch #11 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89f32c0, in #10 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89c25db, in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) #9 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89c1d61, in QCoreApplication::notifyInternal2(QObject*, QEvent*) #8 Object "/usr/local/zed/tools/ZEDfu", at 0x564e436dfe62, in #7 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Widgets.so.5", at 0x7f01a956a0f0, in QApplicationPrivate::notify_helper(QObject*, QEvent*) #6 Object "/home/sumit/anaconda3/envs/zedcv/lib/libQt5Core.so.5", at 0x7f01a89d855e, in QObject::event(QEvent*) #5 Object "/usr/local/zed/tools/ZEDfu", at 0x564e437029fc, in #4 Object "/usr/local/cuda/lib64/libcudart.so.12", at 0x7f01a9a67b87, in cudaMemcpy2DToArray #3 Object "/usr/local/cuda/lib64/libcudart.so.12", at 0x7f01a9a18bec, in #2 Object "/usr/local/cuda/lib64/libcudart.so.12", at 0x7f01a9a44be3, in #1 Object "/usr/local/cuda/lib64/libcudart.so.12", at 0x7f01a9a42ab4, in #0 Object "/lib/x86_64-linux-gnu/libcuda.so.1", at 0x7f01aa0c5915, in Segmentation fault (Address not mapped to object [0x564b21486e73]) Segmentation fault (core dumped)

Hi,

Can you send the diagnostic generated with ZED_Diagnostics ?
Cuda 12.1 is supported since very recently, 4.0.x ZED SDK version.

{ "AI Models": { "info": [ "MULTI CLASS DETECTION is not optimized", "MULTI CLASS MEDIUM DETECTION is not optimized", "MULTI CLASS ACCURATE DETECTION is not optimized", "HUMAN BODY FAST DETECTION is not optimized", "HUMAN BODY MEDIUM DETECTION is not optimized", "HUMAN BODY ACCURATE DETECTION is not optimized", "HUMAN BODY 38 FAST DETECTION is not optimized", "HUMAN BODY 38 MEDIUM DETECTION is not optimized", "HUMAN BODY 38 ACCURATE DETECTION is not optimized", "HUMAN BODY 70 FAST DETECTION is not optimized", "HUMAN BODY 70 MEDIUM DETECTION is not optimized", "HUMAN BODY 70 ACCURATE DETECTION is not optimized", "PERSON HEAD DETECTION is not optimized", "PERSON HEAD ACCURATE DETECTION is not optimized", "REID ASSOCIATION is not optimized", "NEURAL DEPTH is not optimized" ] }, "Camera Test": { "InternalDevicesCount": 2, "ZEDCount": 1, "camera": { "Device ID": 0, "Firmware": 1523, "Init Output": "OK", "Model": "ZED 2i", "Serial Number": 37311086, "valid": [ "<b>Camera: </b>ZED 2i", "<b>Firmware: </b>1523" ] }, "resolutions": { "HD1080@15": { "fps (input)": 15, "fps (output)": 15, "height (input)": 1080, "height (output)": 1080, "initialization": "OK", "status": true, "width (input)": 1920, "width (output)": 1920 }, "HD1080@30": { "fps (input)": 30, "fps (output)": 30, "height (input)": 1080, "height (output)": 1080, "initialization": "OK", "status": true, "width (input)": 1920, "width (output)": 1920 }, "HD2K@15": { "fps (input)": 15, "fps (output)": 15, "height (input)": 1242, "height (output)": 1242, "initialization": "OK", "status": true, "width (input)": 2208, "width (output)": 2208 }, "HD720@15": { "fps (input)": 15, "fps (output)": 15, "height (input)": 720, "height (output)": 720, "initialization": "OK", "status": true, "width (input)": 1280, "width (output)": 1280 }, "HD720@30": { "fps (input)": 30, "fps (output)": 30, "height (input)": 720, "height (output)": 720, "initialization": "OK", "status": true, "width (input)": 1280, "width (output)": 1280 }, "HD720@60": { "dropCount": 0, "fps (input)": 60, "fps (output)": 60, "height (input)": 720, "height (output)": 720, "imageCount": 501, "initialization": "OK", "status": true, "tearingCount": 0, "width (input)": 1280, "width (output)": 1280 }, "VGA@100": { "fps (input)": 100, "fps (output)": 100, "height (input)": 376, "height (output)": 376, "initialization": "OK", "status": true, "width (input)": 672, "width (output)": 672 }, "VGA@15": { "fps (input)": 15, "fps (output)": 15, "height (input)": 376, "height (output)": 376, "initialization": "OK", "status": true, "width (input)": 672, "width (output)": 672 }, "VGA@30": { "fps (input)": 30, "fps (output)": 30, "height (input)": 376, "height (output)": 376, "initialization": "OK", "status": true, "width (input)": 672, "width (output)": 672 }, "VGA@60": { "fps (input)": 60, "fps (output)": 60, "height (input)": 376, "height (output)": 376, "initialization": "OK", "status": true, "width (input)": 672, "width (output)": 672 } }, "sensors": { "Firmware": 777, "Init Output": "OK", "Model": "ZED 2i (MCU)", "Serial Number": 37311086 } }, "Devices": { "CorruptedFirmware": false, "MCUDetected": true, "USBList": [ { "USB_path": "/3", "idProduct": "0x0010", "idVendor": "0x3277" }, { "USB_path": "/2", "idProduct": "0x3563", "idVendor": "0x13d3" }, { "USB_path": "/1", "idProduct": "0xa658", "idVendor": "0x2808" }, { "USBMode": 3, "USB_path": "/2", "bDescriptorType": 1, "bDeviceProtocol": 1, "bLength": 18, "bMaxPacketSize0": 9, "bNumConfigurations": 1, "bcdDevice": "1.0", "bcdUSB": "3.0", "bcdUSBClass": 239, "bcdUSBSubClass": 2, "busNumber": 2, "device": "ZED2i", "iManufacturer": 1, "iProduct": 2, "iSerial": 4, "idProduct": "0xf880", "idVendor": "0x2b03" }, { "USBMode": 2, "USB_path": "/2/2", "bDescriptorType": 1, "bDeviceProtocol": 0, "bLength": 18, "bMaxPacketSize0": 64, "bNumConfigurations": 1, "bcdDevice": "3.9", "bcdUSB": "2.0", "bcdUSBClass": 0, "bcdUSBSubClass": 0, "busNumber": 1, "device": "ZED2i MCU", "iManufacturer": 1, "iProduct": 2, "iSerial": 3, "idProduct": "0xf881", "idVendor": "0x2b03" }, { "USB_path": "/2", "idProduct": "0x2514", "idVendor": "0x0424" } ], "USBMode": 3, "ZED Camera Module Detected": 63616, "ZED MCU Module Detected": 63617, "ZEDDetected": true, "valid": [ "<b>USB Bandwidth: </b> OK" ] }, "Graphics Card": { "deviceCount": 1, "deviceDriverVersion": 12010, "devices": [ { "arch": "Turing", "computeCapability": "7.5", "cores": 1792, "name": "NVIDIA GeForce GTX 1650", "totalMemoryBytes": "4096196608", "totalMemoryMB": 3906.4375 } ], "initResult": 0, "valid": [ "<b>Graphics card: </b> NVIDIA GeForce GTX 1650" ] }, "Processor": { "OS": "Ubuntu 22.04.2 LTS ", "avxSupported": true, "coreCount": "16", "cpu": " AMD Ryzen 7 5800H with Radeon Graphics", "datetime": "2023-04-28 05:30:06 PM IST", "hyperThreading": "1", "motherboard": "M6500QH, ASUSTeK COMPUTER INC.", "ramCapacity": "16.145588", "ramUsage": "", "ramUsed": "8.077926", "threadCount": "32", "valid": [ "<b>Processor: </b> AMD Ryzen 7 5800H with Radeon Graphics", "<b>Motherboard: </b> M6500QH, ASUSTeK COMPUTER INC." ] }, "ZED SDK": { "CUDA Toolkit version": "V12.1.105 -->located in /usr/local/cuda-12.1/bin/nvcc", "CUDA loading": false, "GPU Driver Version": "Driver Version : 530.30.02", "GPU Performance": " Performance State : P0", "ZED SDK Version (Diag)": "4.0.1", "ZED SDK Version (RT)": "4.0.1", "ai": { "checkAI": true, "cudaVersion": 12010, "cudnnCudartVersion": 12000, "cudnnVersion": 8801, "cudnnVersionExpected": 8801, "tensorVersion": 8600 }, "binFiles": [ "libsl_ai.so", "libsl_zed.so", "libsl_zed_static.a" ], "resourcesFiles": [ ], "resourcesFilesExpected": [ "objects_performance_2.2" ], "valid": [ "<b>ZED SDK version:</b> 4.0.1", "<b>CUDA version:</b> V12.1.105" ] } }

Actually I am no longer getting the error.
What I did:
sudo cp ~/anaconda3/envs/zedcv/lib/libc.so.6 /lib/x86_64-linux-gnu/libc.so.6

But I don’t think manually replacing library files like this is ideal solution.
Does anyone know how to make sure the libraries in /lib/x86_64-linux-gnu and ~/anaconda3/envs/zedcv/lib can be ensured to be same ?
PS: I have installed zed while conda was activated.