Skip to content

🐞 Crash on file open #2042

Open
Open
@KaKi87

Description

@KaKi87

Description

The application crashes when trying to open any file.

To Reproduce

  1. Open a project
  2. Try opening any file in project
  3. See crash

Expected Behavior

The app does not crash

Version Information

CodeEdit: 0.3.4-alpha (45)
macOS: 13.7.1
Xcode: not installed

Additional Context

Logs :

Process:               CodeEdit [1055]
Path:                  /Applications/CodeEdit.app/Contents/MacOS/CodeEdit
Identifier:            app.codeedit.CodeEdit
Version:               0.3.4 (45)
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2025-05-07 21:34:14.1017 +0200
OS Version:            macOS 13.7.1 (22H221)
Report Version:        12
Anonymous UUID:        EC90B3B7-DD74-7250-F7C6-C41C535BFB05


Time Awake Since Boot: 420 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 4 Illegal instruction: 4
Terminating Process:   exc handler [1055]

Application Specific Backtrace 0:
0   CoreFoundation                      0x00007ff819e4a0fa __exceptionPreprocess + 242
1   libobjc.A.dylib                     0x00007ff81996f0b7 objc_exception_throw + 48
2   CoreFoundation                      0x00007ff819e49f60 +[NSException raise:format:] + 214
3   AppKit                              0x00007ff81cec43a2 -[NSNib _initWithNibNamed:bundle:options:] + 642
4   AppKit                              0x00007ff81cec40d9 -[NSViewController _nibWithName:bundle:] + 173
5   AppKit                              0x00007ff81cec3cfd -[NSViewController loadView] + 131
6   CodeEdit                            0x0000000103c51985 CodeEdit + 6809989
7   CodeEdit                            0x0000000103c532f5 CodeEdit + 6816501
8   AppKit                              0x00007ff81cec3b1a -[NSViewController _loadViewIfRequired] + 72
9   AppKit                              0x00007ff81d37556a __24-[NSViewController view]_block_invoke + 27
10  AppKit                              0x00007ff81cebaaa7 NSPerformVisuallyAtomicChange + 132
11  AppKit                              0x00007ff81cec3a91 -[NSViewController view] + 123
12  SwiftUI                             0x00007ff924745ba2 get_witness_table 7SwiftUI4ViewRzSQRd__r__lAA15ModifiedContentVyxAA20_ValueActionModifierVyqd__GGAaBHPxAaBHD1__AgA0cH0HPyHCHCTm + 9123
13  SwiftUI                             0x00007ff924745b90 get_witness_table 7SwiftUI4ViewRzSQRd__r__lAA15ModifiedContentVyxAA20_ValueActionModifierVyqd__GGAaBHPxAaBHD1__AgA0cH0HPyHCHCTm + 9105
14  SwiftUI                             0x00007ff924fdacb3 __swift_memcpy74_8 + 8643
15  SwiftUI                             0x00007ff924fdb1dd __swift_memcpy74_8 + 9965
16  SwiftUI                             0x00007ff924fdb030 __swift_memcpy74_8 + 9536
17  SwiftUI                             0x00007ff924fdadbf __swift_memcpy74_8 + 8911
18  SwiftUI                             0x00007ff925185806 block_destroy_helper + 89849
19  SwiftUI                             0x00007ff925189933 block_destroy_helper + 106534
20  SwiftUI                             0x00007ff925183ce5 block_destroy_helper + 82904
21  SwiftUI                             0x00007ff9251856d4 block_destroy_helper + 89543
22  SwiftUI                             0x00007ff925184b2c block_destroy_helper + 86559
23  SwiftUI                             0x00007ff924aa195a __swift_memcpy22_4 + 402
24  AttributeGraph                      0x00007ff925824856 _ZN2AG5Graph11UpdateStack6updateEv + 548
25  AttributeGraph                      0x00007ff925824fe9 _ZN2AG5Graph16update_attributeENS_4data3ptrINS_4NodeEEEj + 403
26  AttributeGraph                      0x00007ff92582c7e3 _ZN2AG5Graph20input_value_ref_slowENS_4data3ptrINS_4NodeEEENS_11AttributeIDEjPK15AGSwiftMetadataRhl + 177
27  AttributeGraph                      0x00007ff9258440cd AGGraphGetInputValue + 242
28  SwiftUI                             0x00007ff9247f28e3 objectdestroyTm + 135966
29  SwiftUI                             0x00007ff924a82d45 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 8158
30  SwiftUI                             0x00007ff924a834a5 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 10046
31  SwiftUI                             0x00007ff924e56e86 get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 96220
32  SwiftUI                             0x00007ff924e56d3f get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95893
33  SwiftUI                             0x00007ff924e56a7c get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95186
34  SwiftUI                             0x00007ff924a869af get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA12_FrameLayoutVGAaBHPxAaBHD1__AfA0C8ModifierHPyHCHCTm + 13134
35  SwiftUI                             0x00007ff924a82da2 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 8251
36  SwiftUI                             0x00007ff924a834a5 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 10046
37  SwiftUI                             0x00007ff924e56e86 get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 96220
38  SwiftUI                             0x00007ff924e56d3f get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95893
39  SwiftUI                             0x00007ff924e56a7c get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95186
40  SwiftUI                             0x00007ff924a869af get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA12_FrameLayoutVGAaBHPxAaBHD1__AfA0C8ModifierHPyHCHCTm + 13134
41  SwiftUI                             0x00007ff92550796d objectdestroyTm + 14683
42  SwiftUI                             0x00007ff925506941 objectdestroyTm + 10543
43  SwiftUI                             0x00007ff925508c43 objectdestroyTm + 19505
44  SwiftUI                             0x00007ff92550662a objectdestroyTm + 9752
45  SwiftUI                             0x00007ff924e59a25 __swift_memcpy32_4 + 6121
46  SwiftUI                             0x00007ff924e5a4e8 __swift_memcpy32_4 + 8876
47  SwiftUI                             0x00007ff924837fd2 _swift_stdlib_malloc_size + 136118
48  SwiftUI                             0x00007ff924a869af get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA12_FrameLayoutVGAaBHPxAaBHD1__AfA0C8ModifierHPyHCHCTm + 13134
49  SwiftUI                             0x00007ff924a82da2 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 8251
50  SwiftUI                             0x00007ff924a834a5 get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbSgGGAaBHPxAaBHD1__AhA0cI0HPyHCHCTm + 10046
51  SwiftUI                             0x00007ff924e56e86 get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 96220
52  SwiftUI                             0x00007ff924e56d3f get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95893
53  SwiftUI                             0x00007ff924e56a7c get_witness_table 7SwiftUI4ViewRzAA10ShapeStyleRd__r__lAA15ModifiedContentVyAEyxAA26_PreferenceWritingModifierVyAA022PresentationBackgroundH0V3KeyVGGAGyAI015TransparentHostM0VGGAaBHPAmaBHPxAaBHD1__AlA0cJ0HPyHCHC_ApaRHPyHCHCTm + 95186
54  SwiftUI                             0x00007ff924a869af get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA12_FrameLayoutVGAaBHPxAaBHD1__AfA0C8ModifierHPyHCHCTm + 13134
55  SwiftUI                             0x00007ff9251b4c40 __swift_memcpy56_4 + 6877
56  SwiftUI                             0x00007ff92


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   AppKit                        	    0x7ff81d1d3282 -[NSApplication _crashOnException:] + 287
1   AppKit                        	    0x7ff81cfcd9db __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 857
2   AppKit                        	    0x7ff81d7e0dac ___NSRunLoopObserverCreateWithHandler_block_invoke + 41
3   CoreFoundation                	    0x7ff819dd23b4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
4   CoreFoundation                	    0x7ff819dd22db __CFRunLoopDoObservers + 482
5   CoreFoundation                	    0x7ff819dd1866 __CFRunLoopRun + 859
6   CoreFoundation                	    0x7ff819dd0ea1 CFRunLoopRunSpecific + 560
7   HIToolbox                     	    0x7ff82385cf3d RunCurrentEventLoopInMode + 292
8   HIToolbox                     	    0x7ff82385cb84 ReceiveNextEventCommon + 199
9   HIToolbox                     	    0x7ff82385caa8 _BlockUntilNextEventMatchingListInModeWithFilter + 64
10  AppKit                        	    0x7ff81ce6ed08 _DPSNextEvent + 858
11  AppKit                        	    0x7ff81ce6dbb2 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
12  AppKit                        	    0x7ff81ce60227 -[NSApplication run] + 586
13  AppKit                        	    0x7ff81ce34441 NSApplicationMain + 817
14  SwiftUI                       	    0x7ff9241fd9fb 0x7ff924177000 + 551419
15  SwiftUI                       	    0x7ff92523a8b4 0x7ff924177000 + 17578164
16  SwiftUI                       	    0x7ff924b536cf 0x7ff924177000 + 10340047
17  CodeEdit                      	       0x1039a7e16 0x1035d3000 + 4017686
18  dyld                          	    0x7ff81999c418 start + 1896

Thread 1:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib       	    0x7ff819cf2bb0 start_wqthread + 0

Thread 9:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	    0x7ff819cb8552 mach_msg2_trap + 10
1   libsystem_kernel.dylib        	    0x7ff819cc66cd mach_msg2_internal + 78
2   libsystem_kernel.dylib        	    0x7ff819cbf584 mach_msg_overwrite + 692
3   libsystem_kernel.dylib        	    0x7ff819cb883a mach_msg + 19
4   CoreFoundation                	    0x7ff819dd2fdf __CFRunLoopServiceMachPort + 145
5   CoreFoundation                	    0x7ff819dd1a60 __CFRunLoopRun + 1365
6   CoreFoundation                	    0x7ff819dd0ea1 CFRunLoopRunSpecific + 560
7   AppKit                        	    0x7ff81cfcef55 _NSEventThread + 132
8   libsystem_pthread.dylib       	    0x7ff819cf71d3 _pthread_start + 125
9   libsystem_pthread.dylib       	    0x7ff819cf2bd3 thread_start + 15


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fe43846da00  rbx: 0x00007ff819961200  rcx: 0x4baa210ba6700004  rdx: 0x000000000000442c
  rdi: 0x00007fe438471e2c  rsi: 0x00007ff7bc92a5d0  rbp: 0x00007ff7bc92aa60  rsp: 0x00007ff7bc92aa30
   r8: 0x0000000000000000   r9: 0x00007fe438471e2c  r10: 0x00007ff7bc92a538  r11: 0x0000000000004fff
  r12: 0x00007fe43700a5d0  r13: 0x0000600003bbe260  r14: 0x00006000005f8060  r15: 0x00007ff838cc26e6
  rip: 0x00007ff81d1d3282  rfl: 0x0000000000010206  cr2: 0x0000000000000000
  
Logical CPU:     0
Error Code:      0x00000000 
Trap Number:     6

Thread 0 instruction stream:
  00 e8 5e ad 91 00 48 8b-35 31 0c bd 3c 48 8b 1d  ..^...H.51..<H..
  42 4b 46 3e 4c 89 f7 ff-d3 48 8d 3d 96 cf 9c 3c  BKF>L....H.=...<
  48 89 c6 31 c0 e8 0d db-e3 ff 4c 89 f7 4c 89 fe  H..1......L..L..
  ff d3 48 8b 35 45 e9 bc-3c 48 8d 15 f6 bf 9c 3c  ..H.5E..<H.....<
  48 89 c7 ff 15 0d 4b 46-3e 48 8b 35 26 a0 ba 3c  H.....KF>H.5&..<
  48 89 c7 ff 15 fd 4a 46-3e 48 89 05 2e 78 5c 3e  H.....JF>H...x\>
 [0f]0b 48 89 c7 e8 7c b2-91 00 31 ff 31 f6 31 c0  ..H...|...1.1.1.	<==
  e8 c2 da e3 ff e8 9c b2-91 00 0f 0b eb 00 48 89  ..............H.
  c3 e8 84 b2 91 00 48 89-df e8 92 ab 91 00 e8 73  ......H........s
  b3 91 00 90 55 48 89 e5-41 57 41 56 41 55 41 54  ....UH..AWAVAUAT
  53 48 83 ec 68 4d 89 c6-f2 0f 11 4d 90 f2 0f 11  SH..hM.....M....
  45 98 49 89 cd 48 89 d3-48 8b 35 a7 e8 be 3c 48  E.I..H..H.5...<H

Binary Images:
       0x1035d3000 -        0x109d1afff app.codeedit.CodeEdit (0.3.4) <f40a57d5-e3c0-3296-87f7-43582c9bb34d> /Applications/CodeEdit.app/Contents/MacOS/CodeEdit
       0x10a1c4000 -        0x10a1f4fff codeeditkit.CodeEditKit (1.0) <dd83b979-e542-3df8-8d76-7286ec460ce1> /Applications/CodeEdit.app/Contents/Frameworks/CodeEditKit.framework/Versions/A/CodeEditKit
       0x10a10f000 -        0x10a162fff org.sparkle-project.Sparkle (2.3.0) <2aa76c72-900c-3629-b58d-a6297fe94a1e> /Applications/CodeEdit.app/Contents/Frameworks/Sparkle.framework/Versions/B/Sparkle
       0x115eff000 -        0x115f0efff libobjc-trampolines.dylib (*) <36a3bfbf-d3b0-3617-bc40-e0d8a668d1fe> /usr/lib/libobjc-trampolines.dylib
       0x1164d0000 -        0x1164d7fff com.apple.CloudDocsFileProvider (1.0) <fb82c054-bb41-3297-b2d8-1c98e04d1625> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/CloudDocsFileProvider.bundle/Contents/MacOS/CloudDocsFileProvider
       0x11649e000 -        0x1164a5fff com.apple.FileProviderOverride (855.140.6.702.2) <1af203e8-cc0a-3600-92b0-759de412cf08> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FileProviderOverride.bundle/Contents/MacOS/FileProviderOverride
       0x11656f000 -        0x11658afff com.apple.findersync.fileprovideroverride.FinderSyncCollaborationFileProviderOverride (13.5) <4025845f-3bd7-3bdb-986d-5fe5d2e3ec89> /System/Library/Frameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride
    0x7ff81ce31000 -     0x7ff81de39fff com.apple.AppKit (6.9) <0a99d60f-ee05-36cc-bee7-5b2d506e345d> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7ff819d56000 -     0x7ff81a1f2fef com.apple.CoreFoundation (6.9) <7b6e03ad-3416-38a7-838c-36f8bfdc347d> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff82382e000 -     0x7ff823b25ff9 com.apple.HIToolbox (2.1.1) <a798e4be-2bf2-35dc-9d38-1d4521cf926e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7ff924177000 -     0x7ff92581affb com.apple.SwiftUI (4.6.3) <d8013a2c-e3b1-34e2-b99e-09de8382f15e> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
    0x7ff819996000 -     0x7ff819a2e3af dyld (*) <be14380c-5e18-3640-9fbe-851beb014bba> /usr/lib/dyld
    0x7ff819cf1000 -     0x7ff819cfcfff libsystem_pthread.dylib (*) <51a43b06-feb4-3836-9e4f-21b69bb13726> /usr/lib/system/libsystem_pthread.dylib
    0x7ff819cb7000 -     0x7ff819cf0fff libsystem_kernel.dylib (*) <245cddb1-f1f1-38fe-9168-f530f762aa8a> /usr/lib/system/libsystem_kernel.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=924.6M resident=0K(0%) swapped_out_or_unallocated=924.6M(100%)
Writable regions: Total=603.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=603.4M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                  656K        4 
CG image                           168K       21 
ColorSync                          256K       29 
CoreAnimation                     1764K       58 
CoreGraphics                        20K        3 
CoreUI image data                  964K       16 
Foundation                          16K        1 
IOKit                             7940K        1 
Kernel Alloc Once                    8K        1 
MALLOC                           197.6M       64 
MALLOC guard page                   48K       11 
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
SQLite page cache                  384K        3 
STACK GUARD                       56.0M       10 
Stack                             12.6M       10 
VM_ALLOCATE                       3124K       12 
__CTF                               824        1 
__DATA                            33.9M      597 
__DATA_CONST                      40.7M      384 
__DATA_DIRTY                      2092K      224 
__FONT_DATA                        2352        1 
__INFO_FILTER                         8        1 
__LINKEDIT                       173.6M        9 
__OBJC_RO                         66.3M        1 
__OBJC_RW                         2013K        2 
__TEXT                           751.0M      615 
dyld private memory                260K        2 
libnetwork                         128K        8 
mapped file                      479.2M       51 
shared memory                     2844K       21 
===========                     =======  ======= 
TOTAL                              2.2G     2164 
TOTAL, minus reserved VM space     1.8G     2164

Screenshots


Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🏃‍♂️ In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions