<div dir="ltr"><div dir="ltr" class="gmail_msg">Recently autocomplete, syntax highlighting, and auto-indent have stopped working (or work for a few minutes then break) in my Swift 3.1 Xcode 8.3.1 project. The project compiles without any warnings.</div><div dir="ltr" class="gmail_msg"><br></div><div class="gmail_msg">I guess this is all due to problems that the SourceKitService has with my code? I notice lots (around 30 all in last few minutes) of SourceKitService crash logs all with the same crash stack (Included at end of this email).</div><div class="gmail_msg"><br></div><div class="gmail_msg">My question is... what&#39;s the best way to find the problem? </div><div class="gmail_msg"><br></div><div class="gmail_msg">Does anyone recognize the below stack and know what might be causing that particular crash? Is there any way to log what file the SourceKitService is working on, so I can see what it&#39;s doing before the crash?</div><div class="gmail_msg"><br></div><div class="gmail_msg">Thanks,</div><div class="gmail_msg">Jesse</div><div class="gmail_msg"><br></div><div class="gmail_msg"><div class="gmail_msg">Crashed Thread:        6</div><div class="gmail_msg"><br></div><div class="gmail_msg">Exception Type:        EXC_BAD_ACCESS (SIGSEGV)</div><div class="gmail_msg">Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000</div><div class="gmail_msg">Exception Note:        EXC_CORPSE_NOTIFY</div><div class="gmail_msg"><br></div><div class="gmail_msg">Termination Signal:    Segmentation fault: 11</div><div class="gmail_msg">Termination Reason:    Namespace SIGNAL, Code 0xb</div><div class="gmail_msg">Terminating Process:   exc handler [0]</div><div class="gmail_msg"><br></div><div class="gmail_msg">VM Regions Near 0:</div><div class="gmail_msg">--&gt; </div><div class="gmail_msg">    __TEXT                 000000010cbd9000-000000010ecd0000 [ 33.0M] r-x/rwx SM=COW  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService</div><div class="gmail_msg"><br></div><div class="gmail_msg">Thread 6 Crashed:<br></div></div><div class="gmail_msg"><div class="gmail_msg">0   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010d4c265d swift::ClassDecl::inheritsSuperclassInitializers(swift::LazyResolver*) + 589</div><div class="gmail_msg">1   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010d437589 lookupObjCMethodInType(swift::Type, swift::ObjCSelector, bool, bool, swift::SourceManager&amp;, bool) + 217</div><div class="gmail_msg">2   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010d4368e2 swift::ASTContext::diagnoseUnintendedObjCMethodOverrides(swift::SourceFile&amp;) + 1138</div><div class="gmail_msg">3   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010d3d8b20 swift::performTypeChecking(swift::SourceFile&amp;, swift::TopLevelContext&amp;, swift::OptionSet&lt;swift::TypeCheckingFlags, unsigned int&gt;, unsigned int, unsigned int) + 4416</div><div class="gmail_msg">4   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cd6b0b6 swift::CompilerInstance::performSema() + 5334</div><div class="gmail_msg">5   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cc4fca5 SourceKit::SwiftLangSupport::indexSource(llvm::StringRef, SourceKit::IndexingConsumer&amp;, llvm::ArrayRef&lt;char const*&gt;, llvm::StringRef) + 6037</div><div class="gmail_msg">6   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010cc6c712 void SourceKit::WorkQueue::DispatchData::callAndDelete&lt;handleRequestImpl(void*, std::__1::function&lt;void (void*)&gt;)::$_3&gt;(void*) + 3250</div><div class="gmail_msg">7   libdispatch.dylib             <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff9be788fc _dispatch_client_callout + 8</div><div class="gmail_msg">8   libdispatch.dylib             <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff9be8cccd _dispatch_block_invoke_direct + 322</div><div class="gmail_msg">9   com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010eabae3f executeBlock(void*) + 15</div><div class="gmail_msg">10  com.apple.SourceKitService.802.0.51<span class="Apple-tab-span" style="white-space:pre">        </span>0x000000010ccdb74d ExecuteOnThread_Dispatch(void*) + 13</div><div class="gmail_msg">11  libsystem_pthread.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff9c0c79af _pthread_body + 180</div><div class="gmail_msg">12  libsystem_pthread.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff9c0c78fb _pthread_start + 286</div><div class="gmail_msg">13  libsystem_pthread.dylib       <span class="Apple-tab-span" style="white-space:pre">        </span>0x00007fff9c0c7101 thread_start + 13</div></div></div>