Segmentation fault (core dumped)

I am using IP to use zed camera to implement the function of spatial mapping. After starting to record mesh files, the program flashed back and reported an error.
Fatal Python error: Segmentation fault

Current thread 0x00007f0acb5f5280 (most recent call first):
File “/home/xx/anaconda3/envs/zed/lib/python3.7/site-packages/OpenGL/wrapper.py”, line 693 in wrapperCall
File “/home/xx/anaconda3/envs/zed/lib/python3.7/site-packages/OpenGL/latebind.py”, line 43 in call
File “/home/xx/anaconda3/envs/zed/lib/python3.7/site-packages/OpenGL/GL/VERSION/GL_1_5.py”, line 89 in glBufferData
File “/home/xx/anaconda3/envs/zed/lib/python3.7/site-packages/OpenGL/latebind.py”, line 63 in call
File “/home/xx/zed-sdk/spatial mapping/spatial mapping/python/ogl_viewer/viewer.py”, line 491 in update_fpc
File “/home/xx/zed-sdk/spatial mapping/spatial mapping/python/ogl_viewer/viewer.py”, line 392 in update
File “/home/xx/zed-sdk/spatial mapping/spatial mapping/python/ogl_viewer/viewer.py”, line 365 in draw_callback
File “/home/xx/zed-sdk/spatial mapping/spatial mapping/python/ogl_viewer/viewer.py”, line 306 in is_available
File “spatial_mapping.py”, line 84 in main
File “spatial_mapping.py”, line 226 in .

Hi @2bHansome,

This seems like an OpenGL error, do you have the same error if you comment out the opengl visualization in the sample?

Can you run the ZED_Diagnostic tool and share the resulting JSON file in order for us to test on your platform?

sorry,I cant upload my .json file.
{
“AI Models”: {
“valid”: [
“MULTI CLASS DETECTION is optimized”,
“MULTI CLASS MEDIUM DETECTION is optimized”,
“MULTI CLASS ACCURATE DETECTION is optimized”,
“HUMAN BODY FAST DETECTION is optimized”,
“HUMAN BODY MEDIUM DETECTION is optimized”,
“HUMAN BODY ACCURATE DETECTION is optimized”,
“HUMAN BODY 38 FAST DETECTION is optimized”,
“HUMAN BODY 38 MEDIUM DETECTION is optimized”,
“HUMAN BODY 38 ACCURATE DETECTION is optimized”,
“PERSON HEAD DETECTION is optimized”,
“PERSON HEAD ACCURATE DETECTION is optimized”,
“REID ASSOCIATION is optimized”,
“NEURAL DEPTH is optimized”,
“NEURAL PLUS DEPTH is optimized”
]
},
“Camera Test”: {
“InternalDevicesCount”: 0,
“ZEDCount”: 0,
“error”: [
Camera not detected
Make sure the camera is plugged in or try another USB 3.0 port.”
]
},
“Devices”: {
“CorruptedFirmware”: false,
“USBList”: [
{
“USB_path”: “/9/2”,
“idProduct”: “0x6f5c”,
“idVendor”: “0x1a2c”
},
{
“USB_path”: “/9”,
“idProduct”: “0x0608”,
“idVendor”: “0x05e3”
},
{
“USB_path”: “/7”,
“idProduct”: “0x1040”,
“idVendor”: “0x260d”
},
{
“USB_path”: “/11”,
“idProduct”: “0x7d90”,
“idVendor”: “0x1462”
}
],
“ZEDDetected”: null,
“notTested”: [
“Please connect a camera to test the USB connection.”
]
},
“Graphics Card”: {
“deviceCount”: 1,
“deviceDriverVersion”: 12040,
“devices”: [
{
“arch”: “Ada Lovelace”,
“computeCapability”: “8.9”,
“cores”: 7168,
“name”: “NVIDIA GeForce RTX 4070 SUPER”,
“totalMemoryBytes”: “12577079296”,
“totalMemoryMB”: 11994.4375
}
],
“glx_info”: “OpenGL vendor string: NVIDIA Corporation\nOpenGL renderer string: NVIDIA GeForce RTX 4070 SUPER/PCIe/SSE2\nOpenGL core profile version string: 4.6.0 NVIDIA 550.54.14\nOpenGL core profile shading language version string: 4.60 NVIDIA\nOpenGL core profile context flags: (none)\nOpenGL core profile profile mask: core profile\nOpenGL core profile extensions:\nOpenGL version string: 4.6.0 NVIDIA 550.54.14\nOpenGL shading language version string: 4.60 NVIDIA\nOpenGL context flags: (none)\nOpenGL profile mask: (none)\nOpenGL extensions:\nOpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 550.54.14\nOpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20\nOpenGL ES profile extensions:\n”,
“initResult”: 0,
“valid”: [
Graphics card: NVIDIA GeForce RTX 4070 SUPER”
]
},
“Processor”: {
“OS”: “Ubuntu 20.04.6 LTS “,
“avxSupported”: true,
“coreCount”: “”,
“cpu”: " 12th Gen Intel(R) Core™ i5-12600KF”,
“datetime”: “2024-07-29 17时56分39秒”,
“hyperThreading”: “0”,
“motherboard”: “PRO B760M-B (MS-7D90), Micro-Star International Co., Ltd.”,
“ramCapacity”: “33.486885”,
“ramUsage”: “”,
“ramUsed”: “25.039880”,
“threadCount”: “0”,
“valid”: [
Motherboard: PRO B760M-B (MS-7D90), Micro-Star International Co., Ltd.”
],
“warning”: [
“Unable to identify your processor, make sure that it fits the requirements.”
]
},
“ZED SDK”: {
“CUDA Toolkit version”: “V11.8.89 -->located in /usr/local/cuda-11.8/bin/nvcc”,
“CUDA loading”: false,
“GPU Driver Version”: “Driver Version : 550.54.14”,
“GPU Performance”: " Performance State : P8”,
“ZED SDK Version (Diag)”: “4.1.3”,
“ZED SDK Version (RT)”: “4.1.3”,
“[Warning] Other cuda version N°0”: “V11.3.109–>located in in /usr/local/cuda-11.3/bin/nvcc”,
“ai”: {
“checkAI”: true,
“cudaVersion”: 11080,
“cudnnCudartVersion”: 11080,
“cudnnVersion”: 8907,
“cudnnVersionExpected”: 8907,
“tensorVersion”: 8601
},
“binFiles”: [
“libsl_ai.so”,
“libsl_zed.so”,
“libsl_zed_static.a”
],
“resourcesFiles”: [
“neural_depth_3.6.model”,
“objects_accurate_3.2.model”,
“objects_medium_3.2.model”,
“objects_performance_3.2.model”,
“person_head_accurate_2.4.model”,
“person_head_performance_2.4.model”,
“person_reid_1.4.model”,
“skeleton_body18_3.2.model”,
“skeleton_body38_3.5.model”
],
“resourcesFilesExpected”: [
“objects_performance_3.2”
],
“valid”: [
ZED SDK version: 4.1.3”,
CUDA version: V11.8.89”
],
“warning”: [
“Multiple version of CUDA has been detected. It is recommended to uninstall other versions than 11.8.”
]
}
}

Hi @2bHansome,

Your diagnostic file appears to be correct, however I would suggest removing the additional cuda-11.3 installed on your system.

To verify that the segfault comes from the viewer and not from the SDK itself, can you remove the viewer code in the spatial mapping sample and run it again?

I still have this problem,but I find it works well when using cpp program.