Open queen0fpentacles opened 23 hours ago
Hi @queen0fpentacles Can you confirm which computer or computing device you are using please (PC, Mac, Raspberry Pi, Nvidia Jetson, etc). Thanks!
Does the crash happen immediately after plugging the camera in? And is there an error message displayed during the crash?
I have a Mac Apple M3 Pro, macOS sequoia version 15.1 Yes, immediately when plugged in. The application will open just fine until the camera is plugged in.
Process: realsense-viewer [3633] Path: /opt/homebrew/*/realsense-viewer Identifier: realsense-viewer Version: ??? Code Type: ARM-64 (Native) Parent Process: zsh [2215] Responsible: Terminal [2213] User ID: 501
Date/Time: 2024-10-31 10:39:49.6943 +0000 OS Version: macOS 15.1 (24B83) Report Version: 12 Anonymous UUID: E84864A7-89C4-10C3-8E3F-74D55487414F
Time Awake Since Boot: 5100 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000028 Exception Codes: 0x0000000000000001, 0x0000000000000028
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11 Terminating Process: exc handler [3633]
VM Region Info: 0x28 is not in any region. Bytes before following region: 4334600152
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 1025cc000-1027b4000 [ 1952K] r-x/r-x SM=COW /opt/homebrew/*/realsense-viewer
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_pthread.dylib 0x1869198e0 pthread_mutex_lock + 12
1 libusb-1.0.0.dylib 0x102b90f30 libusb_get_device_list + 268
2 librealsense2.2.56.2.dylib 0x1038ab7d4 librealsense::platform::usb_context::usb_context() + 448
3 librealsense2.2.56.2.dylib 0x1038b41f0 std::1::shared_ptr_emplace<librealsense::platform::usb_context, std::1::allocator
Thread 1:
0 libsystem_kernel.dylib 0x1868e15cc psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18691f894 _pthread_cond_wait + 1204
2 libc++.1.dylib 0x18685560c std::__1::condition_variable::do_timed_wait(std::1::unique_lock
Thread 2: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 4:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x1868dde34 mach_msg2_trap + 8 1 libsystem_kernel.dylib 0x1868f05d0 mach_msg2_internal + 80 2 libsystem_kernel.dylib 0x1868e69d8 mach_msg_overwrite + 480 3 libsystem_kernel.dylib 0x1868de17c mach_msg + 24 4 CoreFoundation 0x186a05edc CFRunLoopServiceMachPort + 160 5 CoreFoundation 0x186a0473c CFRunLoopRun + 1212 6 CoreFoundation 0x186a03bc4 CFRunLoopRunSpecific + 588 7 AppKit 0x18a654b8c _NSEventThread + 148 8 libsystem_pthread.dylib 0x18691f2e4 _pthread_start + 136 9 libsystem_pthread.dylib 0x18691a0fc thread_start + 8
Thread 5: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 6: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x1868e13c8 semwait_signal + 8
1 libsystem_c.dylib 0x1867c0714 nanosleep + 220
2 libc++.1.dylib 0x1868572f4 std::1::this_thread::sleep_for(std::1::chrono::duration<long long, std::1::ratio<1l, 1000000000l>> const&) + 84
3 realsense-viewer 0x10263c8f8 rs2::output_model::thread_loop() + 4012
4 realsense-viewer 0x102646b58 void std::1::thread_proxy[abi:ue170006]<std::1::tuple<std::1::unique_ptr<std::1::thread_struct, std::__1::default_delete
Thread 8:
0 libsystem_kernel.dylib 0x1868e15cc psynch_cvwait + 8
1 libsystem_pthread.dylib 0x18691f894 _pthread_cond_wait + 1204
2 libc++.1.dylib 0x18685560c std::__1::condition_variable::do_timed_wait(std::1::unique_lock
Thread 9: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 10: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 11: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 12: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 13: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 14: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 15: 0 libsystem_pthread.dylib 0x18691a0e8 start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000000000028 x1: 0x0000000000009603 x2: 0x0000002800001513 x3: 0x000143130000e807 x4: 0x00000b1000000000 x5: 0x0001431300000000 x6: 0x000000000000002c x7: 0x0000000000000000 x8: 0x0000000010000003 x9: 0x0000000000004003 x10: 0x000000000000000c x11: 0x00000000000001ff x12: 0x00000000000001ff x13: 0x0000000000000000 x14: 0x00000000001ff800 x15: 0x00000000000007fb x16: 0x00000001869198d4 x17: 0x00000001f3c8d400 x18: 0x0000000000000000 x19: 0x000060000231bec8 x20: 0x000060000231bde0 x21: 0x0000000000000028 x22: 0x0000000000000000 x23: 0x00000001ec8f1608 x24: 0x000000016d831518 x25: 0x00000001ec8f15d0 x26: 0x0000000000000000 x27: 0x00000001027bc758 x28: 0xaaaaaaaaaaaaaaab fp: 0x000000016d831420 lr: 0x0000000102b90f30 sp: 0x000000016d831420 pc: 0x00000001869198e0 cpsr: 0x80001000 far: 0x0000000000000028 esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x1025cc000 - 0x1027b3fff realsense-viewer () <75e252ed-f86c-38ec-8b99-8fa3bb00df72> /opt/homebrew//realsense-viewer
0x102c78000 - 0x102cf3fff librealsense2-gl.2.56.2.dylib () <755e36d7-9ce3-3ec2-8a0d-141311240ea2> /opt/homebrew//librealsense2-gl.2.56.2.dylib
0x103670000 - 0x103aaffff librealsense2.2.56.2.dylib ()
External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 0 thread_create: 0 thread_set_state: 0
VM Region Summary: ReadOnly portion of Libraries: Total=1.2G resident=0K(0%) swapped_out_or_unallocated=1.2G(100%) Writable regions: Total=722.4M written=578K(0%) resident=578K(0%) swapped_out=0K(0%) unallocated=721.9M(100%)
VIRTUAL REGION
REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 128K 1 Activity Tracing 256K 1 CG image 96K 4 ColorSync 560K 29 CoreAnimation 496K 21 CoreGraphics 32K 2 CoreUI image data 1040K 8 Foundation 16K 1 Kernel Alloc Once 32K 1 MALLOC 704.3M 39 MALLOC guard page 192K 12 STACK GUARD 56.2M 16 Stack 16.0M 17 VM_ALLOCATE 224K 11 AUTH 3007K 422 AUTH_CONST 43.1M 618 CTF 824 1 DATA 13.8M 606 DATA_CONST 20.1M 631 __DATA_DIRTY 1611K 210 FONT_DATA 2352 1 GLSLBUILTINS 5174K 1 LINKEDIT 591.5M 10 __OBJC_RW 2354K 1 TEXT 611.2M 645 TPRO_CONST 272K 2 mapped file 209.4M 22 owned unmapped memory 544K 1 page table in kernel 578K 1 shared memory 896K 15 =========== ======= ======= TOTAL 2.2G 3350
{"app_name":"realsense-viewer","timestamp":"2024-10-31 10:39:49.00 +0000","app_version":"","slice_uuid":"75e252ed-f86c-38ec-8b99-8fa3bb00df72","build_version":"","platform":1,"share_with_app_devs":0,"is_first_party":1,"bug_type":"309","os_version":"macOS 15.1 (24B83)","roots_installed":0,"incident_id":"EBD6DA3C-A004-496A-8B7A-266BEEDB0CB8","name":"realsense-viewer"}
{
"uptime" : 5100,
"procRole" : "Foreground",
"version" : 2,
"userID" : 501,
"deployVersion" : 210,
"modelCode" : "Mac15,6",
"coalitionID" : 1383,
"osVersion" : {
"train" : "macOS 15.1",
"build" : "24B83",
"releaseType" : "User"
},
"captureTime" : "2024-10-31 10:39:49.6943 +0000",
"codeSigningMonitor" : 1,
"incident" : "EBD6DA3C-A004-496A-8B7A-266BEEDB0CB8",
"pid" : 3633,
"translated" : false,
"cpuType" : "ARM-64",
"roots_installed" : 0,
"bug_type" : "309",
"procLaunch" : "2024-10-31 10:39:49.2225 +0000",
"procStartAbsTime" : 123413495242,
"procExitAbsTime" : 123424439894,
"procName" : "realsense-viewer",
"procPath" : "\/opt\/homebrew\/\/realsense-viewer",
"parentProc" : "zsh",
"parentPid" : 2215,
"coalitionName" : "com.apple.Terminal",
"crashReporterKey" : "E84864A7-89C4-10C3-8E3F-74D55487414F",
"responsiblePid" : 2213,
"responsibleProc" : "Terminal",
"codeSigningID" : "realsense-viewer-5555494475e252edf86c38ec8b998fa3bb00df72",
"codeSigningTeamID" : "",
"codeSigningFlags" : 570425857,
"codeSigningValidationCategory" : 10,
"codeSigningTrustLevel" : 4294967295,
"instructionByteStream" : {"beforePC":"ANAAkQUpAJTgAxWq\/XtCqfRPQan2V8Oo\/w9f1n8jA9X9e7+p\/QMAkQ==","atPC":"CABA+UmLilKpqqlyHwEJ62EEAFQIDEC5CQkaEj8BAXHABABUiAVwNw=="},
"bootSessionUUID" : "62E3D682-7A12-4255-AFC6-F4AAF8212A68",
"sip" : "enabled",
"vmRegionInfo" : "0x28 is not in any region. Bytes before following region: 4334600152\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n __TEXT 1025cc000-1027b4000 [ 1952K] r-x\/r-x SM=COW \/opt\/homebrew\/\/realsense-viewer",
"exception" : {"codes":"0x0000000000000001, 0x0000000000000028","rawCodes":[1,40],"type":"EXC_BAD_ACCESS","signal":"SIGSEGV","subtype":"KERN_INVALID_ADDRESS at 0x0000000000000028"},
"termination" : {"flags":0,"code":11,"namespace":"SIGNAL","indicator":"Segmentation fault: 11","byProc":"exc handler","byPid":3633},
"vmregioninfo" : "0x28 is not in any region. Bytes before following region: 4334600152\n REGION TYPE START - END [ VSIZE] PRT\/MAX SHRMOD REGION DETAIL\n UNUSED SPACE AT START\n---> \n TEXT 1025cc000-1027b4000 [ 1952K] r-x\/r-x SM=COW \/opt\/homebrew\/*\/realsense-viewer",
"extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
"faultingThread" : 0,
"threads" : [{"triggered":true,"id":97880,"threadState":{"x":[{"value":40},{"value":38403},{"value":171798697235},{"value":355223860209671},{"value":12163347382272},{"value":355223860150272},{"value":44},{"value":0},{"value":268435459},{"value":16387},{"value":12},{"value":511},{"value":511},{"value":0},{"value":2095104},{"value":2043},{"value":6552656084,"symbolLocation":0,"symbol":"pthread_mutex_lock"},{"value":8384992256},{"value":0},{"value":105553153081032},{"value":105553153080800},{"value":40},{"value":0},{"value":8263767560,"symbolLocation":0,"symbol":"VTT for std::__1::basic_ostringstream<char, std::1::char_traits
},
"deploymentId" : 240000003
}
], "experiments" : [ { "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8", "experimentId" : "6643969b3099cf28e049862f", "deploymentId" : 400000007 } ] } }
Hi @queen0fpentacles Thanks very much for the confirmation that you have an Apple Silicon 'M' Mac.
Other Mac users at https://github.com/IntelRealSense/librealsense/issues/12727 have reported this crash issue with realsense-viewer when inserting their camera.
'M' Macs have had problems with using RealSense with them since MacOS Monterey. However, Intel implemented a fix for librealsense compilation on these Macs in librealsense 2.56.1 and an update for MacOS Sonoma, as described at https://github.com/IntelRealSense/librealsense/issues/11815#issuecomment-2326189604
You are the first MacOS user on this support forum to report using the new Sequoia version though, so there are not currently solutions available for that specific MacOS version.
Does it make a difference if you launch realsense-viewer in sudo admin permissions mode with the command sudo realsense-viewer
This is what it says when I do that:
GLFW Driver Error: Cocoa: Regular windows do not have icons on macOS 2024-10-31 14:08:51.331 realsense-viewer[7114:169977] +[IMKClient subclass]: chose IMKClient_Modern zsh: segmentation fault sudo realsense-viewer anjakrusell@Anjas-MacBook-Pro ~ %
The same crash report as before also pops up.
Yesterday night I just updated my laptop to sequoia from macOS 14.6 as I saw somewhere that maybe my Mac had to be updated. Would you recommend going back to the previous update?
Yes, librealsense 2.56.1 or 2.56.2 and MacOS 14 (Sonoma) is likely your best chance of having a successful outcome until a solution that works with Sequoia is found by the RealSense MacOS user community.
Issue Description
The Realsense SDK crashes each time I plug in my D435i web camera and try to open the viewer, I do not know why this is happening. This is librealsense 2.56.2. Any help would be much appreciated, thank you.
|---------------------------------|------------------------------------------- | | Camera Model D435i | Firmware Version | (Open RealSense Viewer --> Click info) | Operating System & Version | MacOS | Kernel Version (Linux Only) | (e.g. 4.14.13)
| Platform | PC/Raspberry Pi/ NVIDIA Jetson / etc.. | SDK Version | 2.56.2.
| Language | {C/C#/labview/nodejs/opencv/pcl/python/unity }
| Segment | {Robot/Smartphone/VR/AR/others }