Frequent crashes

Thanks! Unfortunately I got a random crash with this build (Nova was in the foreground but not being actively used) within 20 minutes: Nova crash 7 · GitHub

I’m sorry that I can’t give you more helpful diagnostics. :confused:

@logan I finally got back to my computer, and will try your new build.

This week I used Nova quite a lot but just editing NGINX configuration files (plain text) and did not experience any crashes with those plain text files (now syntax highlighters).

Today I went back to work on my regular projects and crashed a couple of minutes in albeit Nova has being open in the background for days since the last crash on the 28/Sept.

In this crash I had three projects open (my usual for this work), one minimized, on on the background an the active project all on the same monitor.

The project that was active had two splits, and over 20 tabs. One split has mainly markdown files where Im documenting my code and other PHP, jS files fro reference. The left split is the one im using mainly to code and had multiple js (vanilla js) files.

I was editing the markdown, deleting some lines, do remember reaching the edge but not deleting the line. When I reopened the project after the crash I lost my changes so did the delete again but everything worked as expected. I tried to walk back my steps and replicate the crash but had no success…

Date/Time: 2023-10-13 21:55:59.5227 -0400
OS Version: macOS 13.3.1 (22E261)
Report Version: 12
Anonymous UUID: F4D44C36-B56F-0F74-43A3-727CF7C19B13

Sleep/Wake UUID: BA47055A-81E8-48E2-8208-D6E4DE83D5A3

Time Awake Since Boot: 3400000 seconds
Time Since Wake: 646145 seconds

System Integrity Protection: enabled

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

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

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x183d08724 __pthread_kill + 8
1 libsystem_pthread.dylib 0x183d3fc28 pthread_kill + 288
2 libsystem_c.dylib 0x183c4dae8 abort + 180
3 Nova 0x102d0ff88 0x102828000 + 5144456
4 Nova 0x102cfb738 0x102828000 + 5060408
5 HIToolbox 0x18d62a608 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1692
6 HIToolbox 0x18d629834 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 356
7 HIToolbox 0x18d6296c4 SendEventToEventTargetWithOptions + 44
8 HIToolbox 0x18d686900 SendTSMEvent_WithCompletionHandler + 432
9 HIToolbox 0x18d686e50 __SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler_block_invoke + 456
10 HIToolbox 0x18d686c5c __SendFilterTextEvent_WithCompletionHandler_block_invoke + 228
11 HIToolbox 0x18d686958 SendTSMEvent_WithCompletionHandler + 520
12 HIToolbox 0x18d686708 SendFilterTextEvent_WithCompletionHandler + 260
13 HIToolbox 0x18d68633c SendUnicodeTextAEToUnicodeDoc_WithCompletionHandler + 296
14 HIToolbox 0x18d6860c8 __utDeliverTSMEvent_WithCompletionHandler_block_invoke_2 + 320
15 HIToolbox 0x18d685e4c __utDeliverTSMEvent_WithCompletionHandler_block_invoke + 284
16 HIToolbox 0x18d685cb0 TSMKeyEvent_WithCompletionHandler + 592
17 HIToolbox 0x18d685a40 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_4 + 312
18 HIToolbox 0x18d685858 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_3 + 348
19 HIToolbox 0x18d685538 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke_2 + 312
20 HIToolbox 0x18d685244 __TSMProcessRawKeyEventWithOptionsAndCompletionHandler_block_invoke + 312
21 HIToolbox 0x18d672ed0 TSMProcessRawKeyEventWithOptionsAndCompletionHandler + 2304
22 AppKit 0x1879464f0 __84-[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:]_block_invoke_3.650 + 148
23 AppKit 0x1879461cc __204-[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:]_block_invoke.632 + 192
24 AppKit 0x1871e93c4 -[NSTextInputContext tryTSMProcessRawKeyEvent_orSubstitution:dispatchCondition:setupForDispatch:furtherCondition:doubleSpaceSubstitutionCondition:doubleSpaceSubstitutionWork:dispatchTSMWork:continuation:] + 336
25 AppKit 0x1871e8df0 -[NSTextInputContext _handleEvent:options:allowingSyntheticEvent:completionHandler:] + 1456
26 AppKit 0x1871e8800 -[NSTextInputContext _handleEvent:allowingSyntheticEvent:] + 132
27 Nova 0x1029c173c 0x102828000 + 1677116
28 AppKit 0x187169150 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 480
29 AppKit 0x187168d9c -[NSWindow(NSEventRouting) sendEvent:] + 284
30 Nova 0x102c36a84 0x102828000 + 4254340
31 AppKit 0x1871680e0 -[NSApplication(NSEvent) sendEvent:] + 1556
32 Nova 0x102ac20f8 0x102828000 + 2728184
33 Nova 0x102ceb940 0x102828000 + 4995392
34 AppKit 0x1873b80f0 -[NSApplication _handleEvent:] + 60
35 AppKit 0x18702f57c -[NSApplication run] + 500
36 AppKit 0x1870069a8 NSApplicationMain + 880
37 dyld 0x1839e7f28 start + 2236

Thread 1:
0 libsystem_kernel.dylib 0x183cfff14 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183d12240 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x183d08b78 mach_msg_overwrite + 604
3 libsystem_kernel.dylib 0x183d00290 mach_msg + 24
4 Nova 0x102d02edc 0x102828000 + 5091036
5 libsystem_pthread.dylib 0x183d3ffa8 _pthread_start + 148
6 libsystem_pthread.dylib 0x183d3ada0 thread_start + 8

Thread 2:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x183cfff14 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183d12240 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x183d08b78 mach_msg_overwrite + 604
3 libsystem_kernel.dylib 0x183d00290 mach_msg + 24
4 CoreFoundation 0x183e1e8b8 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x183e1d198 __CFRunLoopRun + 1208
6 CoreFoundation 0x183e1c58c CFRunLoopRunSpecific + 612
7 AppKit 0x187166508 _NSEventThread + 172
8 libsystem_pthread.dylib 0x183d3ffa8 _pthread_start + 148
9 libsystem_pthread.dylib 0x183d3ada0 thread_start + 8

Thread 3:: com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x183cfff14 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183d12240 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x183d08b78 mach_msg_overwrite + 604
3 libsystem_kernel.dylib 0x183d00290 mach_msg + 24
4 CoreFoundation 0x183e1e8b8 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x183e1d198 __CFRunLoopRun + 1208
6 CoreFoundation 0x183e1c58c CFRunLoopRunSpecific + 612
7 CFNetwork 0x1887f7dd8 0x1885a3000 + 2444760
8 Foundation 0x184d8e63c NSThread__start + 716
9 libsystem_pthread.dylib 0x183d3ffa8 _pthread_start + 148
10 libsystem_pthread.dylib 0x183d3ada0 thread_start + 8

Thread 4:: com.apple.coreanimation.render-server
0 libsystem_kernel.dylib 0x183cfff14 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x183d12240 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x183d08b78 mach_msg_overwrite + 604
3 libsystem_kernel.dylib 0x183d00290 mach_msg + 24
4 QuartzCore 0x18b33be20 CA::Render::Server::server_thread(void*) + 564
5 QuartzCore 0x18b33bbdc thread_fun(void*) + 32
6 libsystem_pthread.dylib 0x183d3ffa8 _pthread_start + 148
7 libsystem_pthread.dylib 0x183d3ada0 thread_start + 8

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

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

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

Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000010 x5: 0x0000000000000020 x6: 0x00006000241ffca0 x7: 0x0000000000000001
x8: 0xb54cdbf3732ccd20 x9: 0xb54cdbf2ac36d660 x10: 0x000060001f24d09c x11: 0x0000000000000003
x12: 0x0000000000000000 x13: 0x00006000139d3bb0 x14: 0x04000001df1c3011 x15: 0x00000001df1c3010
x16: 0x0000000000000148 x17: 0x00000001e3cc8f20 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001df1a1b40 x21: 0x0000000000000103 x22: 0x00000001df1a1c20 x23: 0x0000000000000000
x24: 0x000000016d5d61b0 x25: 0x000060000010e170 x26: 0x0000000000000002 x27: 0x0000600025342860
x28: 0x0000000000000000 fp: 0x000000016d5d6140 lr: 0x0000000183d3fc28
sp: 0x000000016d5d6120 pc: 0x0000000183d08724 cpsr: 0x40001000
far: 0x000000029d038020 esr: 0x56000080 Address size fault

@logan Im daily driving the build that you shared here and so far no crashes for me. Yet today I noticed a weird bug where the layout will randomly leave all this extra (like a lot) of space (like lines). Resizing the window/minimizing and other attempts to force a redraw did not solve the issue. I have to edit the buffer by deleting a new line and then all the white space went away. If you check the screenshot you can see that the fourth line is way down. In another occasion (different files) the amount of space was smaller.

I’m getting this all the time now! It’s like using Windows 3.1 back in the day, where is you’re not constantly hitting Save you’re absolutely guaranteed to lose your work.

I’ve noticed that my version of Nova (v11.6) crashes every time line wrapping is not enabled.

What languages are you using? I tried disabling line wrapping and can not replicate the crashes.

Im using the last version @logan posted here and it crashes way less than the official release. Im still baffle by the fact I can’t find a pattern that replicates my crashes. Since using this new version only had two crashes.

Like @logan mention all my crashes are while Nova is drawing/doing the editor layout.

Application Specific Backtrace 0:
0   CoreFoundation                      0x0000000183e9719c __exceptionPreprocess + 176
1   libobjc.A.dylib                     0x00000001839b64d4 objc_exception_throw + 60
2   Foundation                          0x0000000184db0548 -[NSConcreteMutableAttributedString _runArrayHoldingAttributes] + 0
3   Foundation                          0x0000000184db02a4 -[NSConcreteMutableAttributedString attribute:atIndex:longestEffectiveRange:inRange:] + 112
4   Foundation                          0x0000000184da4b50 -[NSAttributedString enumerateAttribute:inRange:options:usingBlock:] + 148
5   SyntaxKit                           0x0000000104bfd1bc __85-[SKLayoutManager partsToLayoutForAttributedString:regionRange:lineRange:partsAbove:]_block_invoke + 372
6   SyntaxKit                           0x0000000104c44b88 -[SKMutableRLEArray enumerateObjectsInRange:options:usingBlock:] + 272
7   SyntaxKit                           0x0000000104bfcf3c -[SKLayoutManager partsToLayoutForAttributedString:regionRange:lineRange:partsAbove:] + 332
8   SyntaxKit                           0x0000000104bfddac -[SKLayoutManager constructLineFragmentsForRange:upward:maximumHeight:affectedRange:] + 928
9   SyntaxKit                           0x0000000104bff0e0 -[SKLayoutManager layoutLinesInRange:upward:maximumHeight:affectedRange:] + 380
10  SyntaxKit                           0x0000000104bffebc -[SKLayoutManager ensureLayoutForBoundingRect:] + 880
11  Nova                                0x0000000100f16d5c Nova + 1715548
12  Nova                                0x0000000100f15de8 Nova + 1711592
13  Nova                                0x0000000100f15a34 Nova + 1710644
14  SyntaxKit                           0x0000000104c00050 -[SKLayoutManager ensureLayoutForBoundingRect:] + 1284
15  Nova                                0x0000000100f16ac0 Nova + 1714880
16  Nova                                0x0000000100dceab8 Nova + 371384
17  AppKit                              0x00000001870e6ec8 _NSViewWillDraw + 64
18  AppKit                              0x00000001870e6c44 -[_NSViewBackingLayer display] + 40
19  QuartzCore                          0x000000018b314800 _ZN2CA5Layer17display_if_neededEPNS_11TransactionE + 760
20  QuartzCore                          0x000000018b487e30 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 456
21  QuartzCore                          0x000000018b2f700c _ZN2CA11Transaction6commitEv + 648
22  AppKit                              0x0000000187164e50 __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 272
23  AppKit                              0x0000000187840fbc ___NSRunLoopObserverCreateWithHandler_block_invoke + 64
24  CoreFoundation                      0x0000000183e1dac4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
25  CoreFoundation                      0x0000000183e1d9b0 __CFRunLoopDoObservers + 532
26  CoreFoundation                      0x0000000183e1cfe8 __CFRunLoopRun + 776