Xcode crashes reproducibly whenever we type #import and autocompletion jumps in

Originator:steipete
Number:rdar://42425247 Date Originated:20-Jul-2018 02:00 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 10b4
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
Xcode crashes reproducibly whenever we type #import and autocompletion jumps in.

Xcode 10b4

Reproducible in our large project. I can’t offer a sample, hopefully the attached crash report link helps.

Steps to Reproduce:
-

Expected Results:
-

Actual Results:
Backtrace:
  0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   +[DVTFilePath filePathForPathString:] (in DVTFoundation)
  4   -[IDETextCompletionHeadersInSearchPathStrategy _uniqueCompletionItemsAtPath:withBasePriority:] (in IDESourceEditor)
  5   -[IDETextCompletionHeadersInSearchPathStrategy _completionItemsFromSubPath:includerURL:usingUserPaths:userHeaderSearchPaths:systemHeaderSearchPaths:headerMappedHeaders:alwaysSearchUserPaths:context:] (in IDESourceEditor)
  6   -[IDETextCompletionHeadersInSearchPathStrategy completionItemsForDocumentLocation:context:highlyLikelyCompletionItems:areDefinitive:] (in IDESourceEditor)
  7   __94-[DVTTextCompletionDataSource generateCompletionsForDocumentLocation:context:completionBlock:]_block_invoke (in DVTKit)
  8   -[DVTOperation main] (in DVTFoundation)
  9   -[__NSOperationInternal _start:] (in Foundation)
 10   __NSOQSchedule_f (in Foundation)
 11   _dispatch_client_callout (in libdispatch.dylib)
 12   _dispatch_continuation_pop (in libdispatch.dylib)
 13   _dispatch_async_redirect_invoke (in libdispatch.dylib)
 14   _dispatch_root_queue_drain (in libdispatch.dylib)
 15   _dispatch_worker_thread3 (in libdispatch.dylib)
 16   _pthread_wqthread (in libsystem_pthread.dylib)
 17   start_wqthread (in libsystem_pthread.dylib)

Version:
Xcode 10b4

Notes:
See full crash log: https://gist.github.com/steipete/0be8e143ab0660be2815a3e3d62d1a6c

Comments

Same problem same crash log

XCode: Version 10.0 (10A255)

By Andrej.Lazarev at Oct. 25, 2018, 8:23 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!