Skip to content

[BUG REPORT] #52

Closed
Closed

Description

@doraemon4u

Where

macOS

What happened

When I open settings and then click the close button on the settings window, the program crashes and exits.

Steps to reproduce

1: Launch the software.
2: Click the Settings function.
3: The software crashes when closing Settings.

What you expected

I want the software’s main window/frame not to crash or exit when I click the settings close button.

Commit or version

No response

Logs

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process:             elyterminal [20912]
Path:                /Applications/ELYTerminal.app/Contents/MacOS/elyterminal
Identifier:          com.zacharyzhang.elyterminal
Version:             0.2.1 (0.2.1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.zacharyzhang.elyterminal [3193]
User ID:             501

Date/Time:           2026-10-31 14:17:27.7560 +0800
Launch Time:         2026-10-31 14:17:20.3878 +0800
Hardware Model:      Mac14,7
OS Version:          macOS 27.2 (26B123)
Release Type:        User

Crash Reporter Key:  376F5355-D1ED-22DC-BE84-14F0FBBBAB62
Incident Identifier: BF995CC6-74C8-4720-BB72-7FE65DD1BEFA

Sleep/Wake UUID:       7B48AA3B-B7C0-41B1-96E7-AC59C127EC95

Time Awake Since Boot: 4400 seconds
Time Since Wake:       1620 seconds

System Integrity Protection: enabled

Triggered by Thread: 0  main, Dispatch Queue: com.apple.main-thread

Exception Type:    EXC_CRASH (SIGABRT)
Exception Codes:   0x0000000000000000, 0x0000000000000000

Termination Reason:  Namespace SIGNAL, Code 6, Abort trap: 6
Terminating Process: elyterminal [20912]


Application Specific Information:
abort() called


Last Exception Backtrace:
0   CoreFoundation                	       0x18b2197a4 __exceptionPreprocess + 164
1   libobjc.A.dylib               	       0x186e7465c objc_exception_throw + 88
2   Foundation                    	       0x1876693ac -[NSObject(NSKeyValueObserverRegistration) _removeObserver:forProperty:] + 636
3   Foundation                    	       0x1876690dc -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 136
4   Foundation                    	       0x187668db4 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 196
5   AppKit                        	       0x1914e9b94 -[_NSTouchBarFinderObservation invalidate] + 264
6   AppKit                        	       0x1914eae50 ___NSTouchBarFinderSetNeedsUpdateOnMain_block_invoke_2 + 636
7   AppKit                        	       0x190ef8590 NSDisplayCycleObserverInvoke + 152
8   AppKit                        	       0x190ef821c NSDisplayCycleFlush + 656
9   QuartzCore                    	       0x19474a098 CA::Transaction::run_commit_handlers(CATransactionPhase) + 120
10  QuartzCore                    	       0x194748694 CA::Transaction::commit() + 332
11  QuartzCore                    	       0x194748370 CA::Transaction::flush() + 84
12  QuartzCore                    	       0x19497b514 CA::Transaction::flush_as_runloop_observer(bool) + 140
13  AppKit                        	       0x19135feb4 stepTransactionFlush + 588
14  UpdateCycle                   	       0x196a06630 UC::DriverCore::continueProcessing() + 136
15  CoreFoundation                	       0x18b1a8ca0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
16  CoreFoundation                	       0x18b1a8b98 __CFRunLoopDoObservers + 648
17  CoreFoundation                	       0x18b282be0 _CFRunLoopRunSpecificWithOptions + 488
18  HIToolbox                     	       0x1959605e0 RunCurrentEventLoopInMode + 320
19  HIToolbox                     	       0x19596396c ReceiveNextEventCommon + 492
20  HIToolbox                     	       0x195ae9db8 _BlockUntilNextEventMatchingListInMode + 48
21  AppKit                        	       0x1911948c0 _DPSBlockUntilNextEventMatchingListInMode + 292
22  AppKit                        	       0x190e5359c _DPSNextEvent + 576
23  AppKit                        	       0x1915ea5f8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 832
24  AppKit                        	       0x1915ea0e8 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 344
25  AppKit                        	       0x190e46920 -[NSApplication run] + 396
26  elyterminal                   	       0x1007483c0 _$LT$gpui_macos..platform..MacPlatform$u20$as$u20$gpui..platform..Platform$GT$::run::h093fecdbf1ab9136 + 436
27  elyterminal                   	       0x100711480 gpui::app::Application::run::hf62741431d3ad2e8 + 176
28  elyterminal                   	       0x10070ea94 elyterminal::main::h4097274d27c254c3 + 136
29  elyterminal                   	       0x100712bc4 std::sys::backtrace::__rust_begin_short_backtrace::h3e2c87a48f61aab9 + 12
30  elyterminal                   	       0x100711834 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h1b944564fcf7fd74 + 16
31  elyterminal                   	       0x101163244 _RNvNtCsg55jX0GwzBC_3std2rt19lang_start_internal + 952
32  elyterminal                   	       0x100710224 main + 52
33  dyld                          	       0x186f10d7c start + 6652

Kernel Triage:
VM - (arg = 0x0) Fault was interrupted
VM - (arg = 0x0) Fault was interrupted


Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x186fa8650 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x186fe4960 pthread_kill + 296
2   libsystem_c.dylib             	       0x187078480 abort + 148
3   libc++abi.dylib               	       0x18b70d304 __abort_message + 132
4   libc++abi.dylib               	       0x18b6fa678 demangling_terminate_handler() + 296
5   libobjc.A.dylib               	       0x186e7e190 _objc_terminate() + 156
6   libc++abi.dylib               	       0x18b70a2b0 std::__terminate(void (*)()) + 16
7   libc++abi.dylib               	       0x18b6f9f68 __cxa_rethrow + 188
8   libobjc.A.dylib               	       0x186e9a010 objc_exception_rethrow + 44
9   Foundation                    	       0x187668df8 -[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 264
10  AppKit                        	       0x1914e9b94 -[_NSTouchBarFinderObservation invalidate] + 264
11  AppKit                        	       0x1914eae50 ___NSTouchBarFinderSetNeedsUpdateOnMain_block_invoke_2 + 636
12  AppKit                        	       0x190ef8590 NSDisplayCycleObserverInvoke + 152
13  AppKit                        	       0x190ef821c NSDisplayCycleFlush + 656
14  QuartzCore                    	       0x19474a098 CA::Transaction::run_commit_handlers(CATransactionPhase) + 120
15  QuartzCore                    	       0x194748694 CA::Transaction::commit() + 332
16  QuartzCore                    	       0x194748370 CA::Transaction::flush() + 84
17  QuartzCore                    	       0x19497b514 CA::Transaction::flush_as_runloop_observer(bool) + 140
18  AppKit                        	       0x19135feb4 stepTransactionFlush + 588
19  UpdateCycle                   	       0x196a06630 UC::DriverCore::continueProcessing() + 136
20  CoreFoundation                	       0x18b1a8ca0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
21  CoreFoundation                	       0x18b1a8b98 __CFRunLoopDoObservers + 648
22  CoreFoundation                	       0x18b282be0 _CFRunLoopRunSpecificWithOptions + 488
23  HIToolbox                     	       0x1959605e0 RunCurrentEventLoopInMode + 320
24  HIToolbox                     	       0x19596396c ReceiveNextEventCommon + 492
25  HIToolbox                     	       0x195ae9db8 _BlockUntilNextEventMatchingListInMode + 48
26  AppKit                        	       0x1911948c0 _DPSBlockUntilNextEventMatchingListInMode + 292
27  AppKit                        	       0x190e5359c _DPSNextEvent + 576
28  AppKit                        	       0x1915ea5f8 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 832
29  AppKit                        	       0x1915ea0e8 -[NSApplication(NSEventRouting) nextEventMatchingMask:untilDate:inMode:dequeue:] + 344
30  AppKit                        	       0x190e46920 -[NSApplication run] + 396
31  elyterminal                   	       0x1007483c0 _$LT$gpui_macos..platform..MacPlatform$u20$as$u20$gpui..platform..Platform$GT$::run::h093fecdbf1ab9136 + 436
32  elyterminal                   	       0x100711480 gpui::app::Application::run::hf62741431d3ad2e8 + 176
33  elyterminal                   	       0x10070ea94 elyterminal::main::h4097274d27c254c3 + 136
34  elyterminal                   	       0x100712bc4 std::sys::backtrace::__rust_begin_short_backtrace::h3e2c87a48f61aab9 + 12
35  elyterminal                   	       0x100711834 std::rt::lang_start::_$u7b$$u7b$closure$u7d$$u7d$::h1b944564fcf7fd74 + 16
36  elyterminal                   	       0x101163244 _RNvNtCsg55jX0GwzBC_3std2rt19lang_start_internal + 952
37  elyterminal                   	       0x100710224 main + 52
38  dyld                          	       0x186f10d7c start + 6652

Thread 1:

Thread 2:

Thread 3:

Thread 4:

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x186f9fc20 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x186fb28e0 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x186fa8a28 mach_msg_overwrite + 480
3   libsystem_kernel.dylib        	       0x186f9ffac mach_msg + 24
4   CoreFoundation                	       0x18b1a9ac8 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x18b1a8310 __CFRunLoopRun + 1172
6   CoreFoundation                	       0x18b282c10 _CFRunLoopRunSpecificWithOptions + 536
7   AppKit                        	       0x190f77554 _NSEventThread + 152
8   libsystem_pthread.dylib       	       0x186fe4ce4 _pthread_start + 136
9   libsystem_pthread.dylib       	       0x186fdfcd0 thread_start + 8

Thread 6:: PTY reader
0   libsystem_kernel.dylib        	       0x186fa5fcc kevent + 8
1   elyterminal                   	       0x100c575b0 rustix::backend::event::syscalls::kevent::h9ecdc8f953f12a01 + 24
2   elyterminal                   	       0x100c57330 polling::Poller::wait_impl::hfffc211a0636b402 + 216
3   elyterminal                   	       0x100c571c8 polling::Poller::wait::hd0b9b5479f22d00c + 104
4   elyterminal                   	       0x1007cceac std::sys::backtrace::__rust_begin_short_backtrace::ha59c2f5b086759ab + 932
5   elyterminal                   	       0x1009496cc core::ops::function::FnOnce::call_once$u7b$$u7b$vtable.shim$u7d$$u7d$::h21474b2d87246d58 + 176
6   elyterminal                   	       0x10116ad74 _RNvNvMs0_NtNtNtCsg55jX0GwzBC_3std3sys6thread4unixNtB7_6Thread3new12thread_start + 408
7   libsystem_pthread.dylib       	       0x186fe4ce4 _pthread_start + 136
8   libsystem_pthread.dylib       	       0x186fdfcd0 thread_start + 8

Thread 7:

Thread 8:

Thread 9:

Thread 10:: CVDisplayLink
0   libsystem_kernel.dylib        	       0x186fa350c __psynch_cvwait + 8
1   libsystem_pthread.dylib       	       0x186fe51e0 _pthread_cond_wait + 1024
2   CoreVideo                     	       0x19ac44ba4 CVDisplayLink::waitUntil(unsigned long long) + 332
3   CoreVideo                     	       0x19ac43c88 CVDisplayLink::runIOThread() + 452
4   libsystem_pthread.dylib       	       0x186fe4ce4 _pthread_start + 136
5   libsystem_pthread.dylib       	       0x186fdfcd0 thread_start + 8

Thread 11:

Thread 12:: HIE: M_ 7e4ae66940cf9899 2026-10-31 14:17:27.638
0   libsystem_kernel.dylib        	       0x186f9fc20 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x186fb28e0 mach_msg2_internal + 76
2   libsystem_kernel.dylib        	       0x186fd0840 thread_suspend + 108
3   HIServices                    	       0x1991b3678 SOME_OTHER_THREAD_SWALLOWED_AT_LEAST_ONE_EXCEPTION + 20
4   Foundation                    	       0x18766dc98 __NSThread__start__ + 732
5   libsystem_pthread.dylib       	       0x186fe4ce4 _pthread_start + 136
6   libsystem_pthread.dylib       	       0x186fdfcd0 thread_start + 8


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000018b70d52f   x5: 0x000000016f6f1ce0   x6: 0x000000000000006e   x7: 0xffffffffb00007ff
    x8: 0x3e9c3abdc7c1cd04   x9: 0x3e9c3abc33e91e04  x10: 0x0000000000000002  x11: 0x00000000fffffffd
   x12: 0x0000000000000000  x13: 0x0000000000000000  x14: 0x0000000000000000  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x00000001e8b5f380  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000000000103  x21: 0x00000001f428d3e0  x22: 0x434c4e47432b2b00  x23: 0x0000007bae8bc720
   x24: 0x0000000000000000  x25: 0x0000000000000000  x26: 0x0000007bb0208980  x27: 0x0000007baf124620
   x28: 0x0000007baf124640   fp: 0x000000016f6f1c50   lr: 0x0000000186fe4960
    sp: 0x000000016f6f1c30   pc: 0x0000000186fa8650 cpsr: 0x40001000
   far: 0x0000000000000000  esr: 0x56000080 (Syscall)

Binary Images:
       0x10070c000 -        0x101b53fff com.zacharyzhang.elyterminal (0.2.1) <d6660c67-cf1a-398e-ad3d-9d89a2e8256f> /Applications/ELYTerminal.app/Contents/MacOS/elyterminal
       0x10abe8000 -        0x10abf3fff libobjc-trampolines.dylib (*) <c7d2186b-cec3-36af-b45b-666f3843b773> /usr/lib/libobjc-trampolines.dylib
       0x116640000 -        0x11665bfff libMetalMetricsInterpose.dylib (*) <e47d8ba0-a113-3d7c-8437-266c2f5986d3> /Volumes/VOLUME/*/libMetalMetricsInterpose.dylib
       0x186f9f000 -        0x186fdda5b libsystem_kernel.dylib (*) <f2bceb9a-0fec-3c92-b6ea-8e37157050a8> /usr/lib/system/libsystem_kernel.dylib
       0x186fde000 -        0x186fea8ab libsystem_pthread.dylib (*) <d5e656b3-84b5-368d-a6e7-ccc1a736fb75> /usr/lib/system/libsystem_pthread.dylib
       0x186ffd000 -        0x18707fcd3 libsystem_c.dylib (*) <4bf47ebb-4cd0-3f4a-995a-717b8550cb12> /usr/lib/system/libsystem_c.dylib
       0x18b6f7000 -        0x18b710eff libc++abi.dylib (*) <e7646a85-5f12-349c-b17f-5df0797f24a0> /usr/lib/libc++abi.dylib
       0x186e5c000 -        0x186eab657 libobjc.A.dylib (*) <1ff743de-675d-30f9-82ec-a3b6801513d7> /usr/lib/libobjc.A.dylib
       0x18761a000 -        0x1888d0177 com.apple.Foundation (6.9) <3f6d1ace-7756-3b52-a297-8e7ada36194f> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x190e1a000 -        0x1924de6ef com.apple.AppKit (6.9) <77e3adb8-e4e8-3912-8599-d43182877c10> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x194746000 -        0x194bc3917 com.apple.QuartzCore (1223.10.17.2) <6564b206-0813-35d3-bdb4-91a27b734190> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
       0x196a05000 -        0x196a06ea5 com.apple.UpdateCycle (1) <1f0f25f3-2dd3-335b-a166-65e2e370d6c3> /System/Library/PrivateFrameworks/UpdateCycle.framework/Versions/A/UpdateCycle
       0x18b128000 -        0x18b5bb32f com.apple.CoreFoundation (6.9) <0e72be04-5c19-3f5d-9809-94553e6a31f0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1958a5000 -        0x195b8d997 com.apple.HIToolbox (2.1.1) <104d7526-4f30-390b-9c29-e1edd3e77aa5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x186edf000 -        0x186f9ec83 dyld (*) <d8104ed6-185e-3a2f-ad71-b91eddbe2598> /usr/lib/dyld
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
       0x19ac41000 -        0x19ace5bc3 com.apple.CoreVideo (1.8) <1c19c4f7-99c8-3451-ac2e-60f3401e0bf4> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
       0x19917c000 -        0x1991e503b com.apple.HIServices (1.22) <aba0f4be-28d3-381e-9e35-20c4e8369f8f> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices

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=3.0G resident=0K(0%) swapped_out_or_unallocated=3.0G(100%)
Writable regions: Total=164.6M written=721K(0%) resident=721K(0%) swapped_out=0K(0%) unallocated=163.9M(100%)

Activity

  1. added
    bug
    on Oct 31, 2026
  2. Raiden-MeixElysia commented on Oct 31, 2026

    @Raiden-MeixElysia
    Contributor

    That is strange. I will check. Thanks for the report.

  3. Raiden-MeixElysia commented on Nov 2, 2026

    @Raiden-MeixElysia
    Contributor

    Fixed in 0.2.2.

    The crash came from AccessKit's subclassing adapter in gpui's macOS backend: as a window closed, it set the content view's class back, which dropped the KVO observer AppKit's Touch Bar finder had placed on that view, and AppKit then threw NSRangeException removing an observer no longer registered. The same crash is zed-industries/zed#64819. ELYTerminal's gpui fork now hosts AccessKit's plain adapter on gpui's own view, as zed's PR #65186 does, so no class changes.

    It was reproduced on a Mac without a Touch Bar by starting TouchBarServer through Apple's Touch Bar simulator: 0.2.1 aborted with your exception on closing Settings, and 0.2.2 closed Settings and windows cleanly. Thanks for the crash report; it named the cause.

  4. added a commit that references this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions