GramEditor/gram
37
980
Fork
You've already forked gram
89

Gram 3.0.0 crashing on startup (macOS) #359

Closed
opened 2026年06月30日 11:10:54 +02:00 by grovdata · 2 comments

I upgraded Gram to latest 3.0.0 and found that it no longer starts.

It seems to be related to NSScreen, but crashes regardless if external screen is connected or not (Macbook Pro M1).

macOS version is 15.7.4, here is the crash log:

/Applications/Gram.app
11:02 $ Contents/MacOS/gram
2026年06月30日T11:04:08+02:00 INFO [gram] ========== starting gram 3.0.0 sha=03b0f47 ==========
2026年06月30日T11:04:08+02:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "Apple M1 Max" (Metal)
2026年06月30日T11:04:09+02:00 INFO [gram] Using git binary path: "/Applications/Gram.app/Contents/MacOS/git"
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSScreen CGDirectDisplayID]: unrecognized selector sent to instance 0x600003a3f840'
*** First throw call stack:
(
 0 CoreFoundation 0x000000019ebe3a30 __exceptionPreprocess + 176
 1 libobjc.A.dylib 0x000000019e6a6b90 objc_exception_throw + 88
 2 CoreFoundation 0x000000019eca0988 -[NSObject(NSObject) __retain_OA] + 0
 3 CoreFoundation 0x000000019eb51b6c ___forwarding___ + 1500
 4 CoreFoundation 0x000000019eb514d0 _CF_forwarding_prep_0 + 96
 5 gram 0x0000000106f60e64 _RNvMs_NtNtNtCshcMXQGktMpv_4gpui8platform3mac7displayNtB4_10MacDisplay7primary + 148
 6 gram 0x0000000106f2d70c _RNvMs4_NtNtNtCshcMXQGktMpv_4gpui8platform3mac6windowNtB5_9MacWindow4open + 652
 7 gram 0x0000000106fb442c _RNvXs0_NtNtNtCshcMXQGktMpv_4gpui8platform3mac8platformNtB5_11MacPlatformNtB9_8Platform11open_window + 88
 8 gram 0x0000000106f790a8 _RNvMsm_NtCshcMXQGktMpv_4gpui6windowNtB5_6Window3new + 2372
 9 gram 0x000000010c417390 _RINvMs_NtNtCshcMXQGktMpv_4gpui3app13async_contextNtB5_8AsyncApp11open_windowNtCs3H8AgNVvrx9_9workspace9WorkspaceNCNCNCNvMsc_B1e_B1c_9new_local00s8_0EB1e_ + 516
 10 gram 0x000000010c40509c _RINCNCNvMsc_Cs3H8AgNVvrx9_9workspaceNtBa_9Workspace9new_local00lEBa_ + 12676
 11 gram 0x000000010c4cf930 _RNCINvMs5_NtCshcMXQGktMpv_4gpui3appNtB8_3App5spawnNCNvMsc_Cs3H8AgNVvrx9_9workspaceNtBU_9Workspace9new_local0INtNtCs6sq8b9ugfBC_4core6result6ResultTINtNtBa_6window12WindowHandleB1i_EINtNtCs8dnTdr 12 gram 0x000000010c57c65c _RNvMs2_NtCsKv5cvIftqT_10async_task3rawINtB5_7RawTaskINtNvNtCshcMXQGktMpv_4gpui8executor32spawn_local_with_source_location7CheckedINtNtCs6sq8b9ugfBC_4core3pin3PinINtNtCs8dnTdrJsiec_5alloc5boxed3B 13 gram 0x0000000106f95f1c _RNvNtNtNtCshcMXQGktMpv_4gpui8platform3mac10dispatcher10trampoline + 504
 14 libdispatch.dylib 0x000000019e8e985c _dispatch_client_callout + 16
 15 libdispatch.dylib 0x000000019e906b80 _dispatch_main_queue_drain.cold.5 + 812
 16 libdispatch.dylib 0x000000019e8dedb0 _dispatch_main_queue_drain + 180
 17 libdispatch.dylib 0x000000019e8decec _dispatch_main_queue_callback_4CF + 44
 18 CoreFoundation 0x000000019ebb0b30 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
 19 CoreFoundation 0x000000019eb7182c __CFRunLoopRun + 1980
 20 CoreFoundation 0x000000019eb709e8 CFRunLoopRunSpecific + 572
 21 HIToolbox 0x00000001aa61227c RunCurrentEventLoopInMode + 324
 22 HIToolbox 0x00000001aa6154e8 ReceiveNextEventCommon + 676
 23 HIToolbox 0x00000001aa7a0484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
 24 AppKit 0x00000001a2a91a34 _DPSNextEvent + 684
 25 AppKit 0x00000001a34305cc -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
 26 AppKit 0x00000001a2a84be4 -[NSApplication run] + 480
 27 gram 0x0000000106fb7e14 _RNvXs0_NtNtNtCshcMXQGktMpv_4gpui8platform3mac8platformNtB5_11MacPlatformNtB9_8Platform3run + 644
 28 gram 0x000000010707f078 _RINvMs1_NtCshcMXQGktMpv_4gpui3appNtB6_11Application3runNCNvCsdq7fyCDUbhN_4gram4mains7_0EBV_ + 308
 29 gram 0x000000010745164c _RNvCsdq7fyCDUbhN_4gram4main + 5036
 30 gram 0x00000001074a42b8 _RINvNtNtCsaLOjE9VYtxK_3std3sys9backtrace28___rust_begin_short_backtraceFEuuECshx4yWcbjgq5_4gram + 12
 31 gram 0x00000001074a4284 _RNCINvNtCsaLOjE9VYtxK_3std2rt10lang_startuE0Cshx4yWcbjgq5_4gram + 16
 32 gram 0x000000010ae6dfb8 _RNvNtCsaLOjE9VYtxK_3std2rt19lang_start_internal + 952
 33 gram 0x00000001074a42f8 main + 52
 34 dyld 0x000000019e6e6b98 start + 6076
)
libc++abi: terminating due to uncaught exception of type NSException
Abort trap: 6
I upgraded Gram to latest 3.0.0 and found that it no longer starts. It seems to be related to NSScreen, but crashes regardless if external screen is connected or not (Macbook Pro M1). macOS version is 15.7.4, here is the crash log: ``` /Applications/Gram.app 11:02 $ Contents/MacOS/gram 2026年06月30日T11:04:08+02:00 INFO [gram] ========== starting gram 3.0.0 sha=03b0f47 ========== 2026年06月30日T11:04:08+02:00 INFO [gpui::platform::wgpu::wgpu_context] Selected GPU adapter: "Apple M1 Max" (Metal) 2026年06月30日T11:04:09+02:00 INFO [gram] Using git binary path: "/Applications/Gram.app/Contents/MacOS/git" *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSScreen CGDirectDisplayID]: unrecognized selector sent to instance 0x600003a3f840' *** First throw call stack: ( 0 CoreFoundation 0x000000019ebe3a30 __exceptionPreprocess + 176 1 libobjc.A.dylib 0x000000019e6a6b90 objc_exception_throw + 88 2 CoreFoundation 0x000000019eca0988 -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x000000019eb51b6c ___forwarding___ + 1500 4 CoreFoundation 0x000000019eb514d0 _CF_forwarding_prep_0 + 96 5 gram 0x0000000106f60e64 _RNvMs_NtNtNtCshcMXQGktMpv_4gpui8platform3mac7displayNtB4_10MacDisplay7primary + 148 6 gram 0x0000000106f2d70c _RNvMs4_NtNtNtCshcMXQGktMpv_4gpui8platform3mac6windowNtB5_9MacWindow4open + 652 7 gram 0x0000000106fb442c _RNvXs0_NtNtNtCshcMXQGktMpv_4gpui8platform3mac8platformNtB5_11MacPlatformNtB9_8Platform11open_window + 88 8 gram 0x0000000106f790a8 _RNvMsm_NtCshcMXQGktMpv_4gpui6windowNtB5_6Window3new + 2372 9 gram 0x000000010c417390 _RINvMs_NtNtCshcMXQGktMpv_4gpui3app13async_contextNtB5_8AsyncApp11open_windowNtCs3H8AgNVvrx9_9workspace9WorkspaceNCNCNCNvMsc_B1e_B1c_9new_local00s8_0EB1e_ + 516 10 gram 0x000000010c40509c _RINCNCNvMsc_Cs3H8AgNVvrx9_9workspaceNtBa_9Workspace9new_local00lEBa_ + 12676 11 gram 0x000000010c4cf930 _RNCINvMs5_NtCshcMXQGktMpv_4gpui3appNtB8_3App5spawnNCNvMsc_Cs3H8AgNVvrx9_9workspaceNtBU_9Workspace9new_local0INtNtCs6sq8b9ugfBC_4core6result6ResultTINtNtBa_6window12WindowHandleB1i_EINtNtCs8dnTdr 12 gram 0x000000010c57c65c _RNvMs2_NtCsKv5cvIftqT_10async_task3rawINtB5_7RawTaskINtNvNtCshcMXQGktMpv_4gpui8executor32spawn_local_with_source_location7CheckedINtNtCs6sq8b9ugfBC_4core3pin3PinINtNtCs8dnTdrJsiec_5alloc5boxed3B 13 gram 0x0000000106f95f1c _RNvNtNtNtCshcMXQGktMpv_4gpui8platform3mac10dispatcher10trampoline + 504 14 libdispatch.dylib 0x000000019e8e985c _dispatch_client_callout + 16 15 libdispatch.dylib 0x000000019e906b80 _dispatch_main_queue_drain.cold.5 + 812 16 libdispatch.dylib 0x000000019e8dedb0 _dispatch_main_queue_drain + 180 17 libdispatch.dylib 0x000000019e8decec _dispatch_main_queue_callback_4CF + 44 18 CoreFoundation 0x000000019ebb0b30 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 19 CoreFoundation 0x000000019eb7182c __CFRunLoopRun + 1980 20 CoreFoundation 0x000000019eb709e8 CFRunLoopRunSpecific + 572 21 HIToolbox 0x00000001aa61227c RunCurrentEventLoopInMode + 324 22 HIToolbox 0x00000001aa6154e8 ReceiveNextEventCommon + 676 23 HIToolbox 0x00000001aa7a0484 _BlockUntilNextEventMatchingListInModeWithFilter + 76 24 AppKit 0x00000001a2a91a34 _DPSNextEvent + 684 25 AppKit 0x00000001a34305cc -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 26 AppKit 0x00000001a2a84be4 -[NSApplication run] + 480 27 gram 0x0000000106fb7e14 _RNvXs0_NtNtNtCshcMXQGktMpv_4gpui8platform3mac8platformNtB5_11MacPlatformNtB9_8Platform3run + 644 28 gram 0x000000010707f078 _RINvMs1_NtCshcMXQGktMpv_4gpui3appNtB6_11Application3runNCNvCsdq7fyCDUbhN_4gram4mains7_0EBV_ + 308 29 gram 0x000000010745164c _RNvCsdq7fyCDUbhN_4gram4main + 5036 30 gram 0x00000001074a42b8 _RINvNtNtCsaLOjE9VYtxK_3std3sys9backtrace28___rust_begin_short_backtraceFEuuECshx4yWcbjgq5_4gram + 12 31 gram 0x00000001074a4284 _RNCINvNtCsaLOjE9VYtxK_3std2rt10lang_startuE0Cshx4yWcbjgq5_4gram + 16 32 gram 0x000000010ae6dfb8 _RNvNtCsaLOjE9VYtxK_3std2rt19lang_start_internal + 952 33 gram 0x00000001074a42f8 main + 52 34 dyld 0x000000019e6e6b98 start + 6076 ) libc++abi: terminating due to uncaught exception of type NSException Abort trap: 6 ```
Owner
Copy link

Confirmed, this is my bad. -[NSScreen CGDirectDisplayID] was apparently added in MacOS 26. I'll have to revert to the previous method for locating the display ID.

Confirmed, this is my bad. `-[NSScreen CGDirectDisplayID]` was apparently added in MacOS 26. I'll have to revert to the previous method for locating the display ID.

Thanks @krig , can confirm that 3.0.1 works!

Thanks @krig , can confirm that 3.0.1 works!
Sign in to join this conversation.
main
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#359
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?