Hi all. I’m new here but recently started excitedly using Scrivener a few months ago, on my first book.
Everything started well, but in the past few weeks, I often have trepidation and tons of saving, sometimes after each word I type, in fear of the dreaded crash.
A search through these forums found others experiencing crashes upon load, or startup, or other situations. Mine happens while typing; most often editing a line that’s not the furthest line in the chapter/section.
Someone else a few days ago posted about a similar issue, which appeared to be when the line grows past the line and begins to continue on the next line. My issue doesn’t seem to be that. My issue is that it crashes at seemingly-random times, always while in the middle of typing. (How frustrating).
Sometimes it’s like this:
- Eagerly open Scrivener
- Find where I want to edit
- Start typing, even just typing one or two letters
- Bam! Crash
It just happened for the fourth time in the past fifteen minutes, and I thought these two stack traces from Apple’s own diagnostics might help an engineer here.
One appears to be the main app stack trace, and the other is the trace of Thread 0, which looks like the one that crashed.
App Trace
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000018be2733c
Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process: exc handler [12327]
Application Specific Backtrace 0:
0 CoreFoundation 0x00000001883e4540 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000187ed5eb4 objc_exception_throw + 60
2 CoreFoundation 0x0000000188496124 -[NSObject(NSObject) __retain_OA] + 0
3 CoreFoundation 0x000000018834e764 ___forwarding___ + 1572
4 CoreFoundation 0x000000018834e080 _CF_forwarding_prep_0 + 96
5 ScrAppKit 0x00000001051e1ce8 -[KBLineNumberingRulerView drawHashMarksAndLabelsInRect:] + 508
6 ScrAppKit 0x00000001051e1a94 -[KBLineNumberingRulerView drawRect:] + 808
7 AppKit 0x000000018bc65910 _NSViewDrawRect + 124
8 AppKit 0x000000018c5ed67c -[NSView _recursive:displayRectIgnoringOpacity:inContext:stopAtLayerBackedViews:] + 1088
9 AppKit 0x000000018bc65314 -[NSView(NSLayerKitGlue) _drawViewBackingLayer:inContext:drawingHandler:] + 556
10 AppKit 0x000000018c191114 -[NSViewBackingLayer drawInContext:] + 56
Thread 0 Trace
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 AppKit 0x18be2733c -[NSApplication _crashOnException:] + 240
1 AppKit 0x18bc74c8c __62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke + 644
2 AppKit 0x18c62af04 ___NSRunLoopObserverCreateWithHandler_block_invoke + 64
3 CoreFoundation 0x18836ed80 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
4 CoreFoundation 0x18836ec6c __CFRunLoopDoObservers + 532
5 CoreFoundation 0x18836e29c __CFRunLoopRun + 776
6 CoreFoundation 0x18836d93c CFRunLoopRunSpecific + 608
7 HIToolbox 0x192936448 RunCurrentEventLoopInMode + 292
8 HIToolbox 0x1929360d8 ReceiveNextEventCommon + 220
9 HIToolbox 0x192935fdc _BlockUntilNextEventMatchingListInModeWithFilter + 76
10 AppKit 0x18bb4ced0 _DPSNextEvent + 660
11 AppKit 0x18c337eec -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 716
12 AppKit 0x18c7f3be4 -[NSCorrectionPanel _interceptEvents] + 212
13 AppKit 0x18c7f44a8 -[NSCorrectionPanel showPanelAtRect:inView:primaryString:alternativeStrings:forType:completionHandler:] + 812
14 AppKit 0x18c31628c -[NSSpellChecker showCorrectionIndicatorOfType:primaryString:alternativeStrings:forStringInRect:view:completionHandler:] + 508
15 AppKit 0x18c316f50 -[NSSpellChecker _showInlinePredictionForReplacingRange:markedRange:string:withString:view:client:lastReplacementRange:completeWordIndexes:resultDictionary:completionHandler:] + 620
16 AppKit 0x18c318038 -[NSSpellChecker showCompletionForCandidate:selectedRange:offset:inString:rect:view:client:completionHandler:] + 1124
17 AppKit 0x18c66f238 -[NSTextCheckingController handleCompletionFromCandidates:forSelectedRange:offset:inAnnotatedString:rect:view:] + 492
18 AppKit 0x18c664edc -[NSTextCheckingController viewForRange:completionHandler:] + 156
19 AppKit 0x18c66f98c __60-[NSTextCheckingController handleCandidates:sequenceNumber:]_block_invoke + 124
20 AppKit 0x18bc93c08 -[NSTextCheckingController annotatedSubstringForProposedRange:wrap:completionHandler:failureHandler:] + 692
21 AppKit 0x18bc93948 -[NSTextCheckingController annotatedSubstringForProposedRange:completionHandler:] + 108
22 AppKit 0x18bc953cc -[NSTextCheckingController annotatedSubstringForSelectedRangeWithCompletionHandler:] + 96
23 AppKit 0x18c66f8f0 -[NSTextCheckingController handleCandidates:sequenceNumber:] + 208