eerolanguage / eero

Eero was a fully binary- and header-compatible dialect of Objective-C, implemented with a modified version of the Apple-sponsored LLVM/clang open-source compiler. It featured a streamlined syntax, Python-like indentation, and other features that improve readability and code safety. It was inspired by languages such as Smalltalk, Python, and Ruby.
https://web.archive.org/web/20171101134337/http://eerolanguage.org/
288 stars 7 forks source link

Xcode crash during autocomplete within *.eeh header files #49

Open andyarvanitis opened 10 years ago

patrickdown commented 10 years ago

I'm experiencing this too.

Process: Xcode [11097] Path: /Applications/Xcode.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 5.0.2 (3335.32) Build Info: IDEApplication-3335032000000000~4 App Item ID: 497799835 App External ID: 106632651 Code Type: X86-64 (Native) Parent Process: launchd [160] User ID: 501

PlugIn Path: /Users/USER/Library/Application Support/Developer/*/Eero Xcode Plugin PlugIn Identifier: org.eerolanguage.Eero-Xcode-Plugin PlugIn Version: 1.0 (1)

Date/Time: 2013-11-29 15:11:32.017 -0500 OS Version: Mac OS X 10.8.5 (12F45) Report Version: 10

Interval Since Last Report: 275109 sec Crashes Since Last Report: 5 Per-App Interval Since Last Report: 38543 sec Per-App Crashes Since Last Report: 5 Anonymous UUID: 1106940B-E147-EA62-274E-C44AE966D699

Crashed Thread: 8 Dispatch queue: com.apple.root.default-priority

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

Application Specific Information: ProductBuildVersion: 5A3005 ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-3582/Framework/Classes/Model/Items/IDEFileReference.m:361 Details: Assertion failed: [NSThread isMainThread] Object: <Xcode3FileReference: 0x7fce9507c360> Method: -resolvedFilePath Thread: <NSThread: 0x7fce9aaa91d0>{name = (null), num = 8} Hints: None Backtrace: 0 0x000000010feb8ea8 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:](in IDEKit) 1 0x000000010ec417a5 _DVTAssertionHandler (in DVTFoundation) 2 0x000000010ec41ad4 _DVTAssertionFailureHandler (in DVTFoundation) 3 0x000000010ec41a82 _DVTAssertionFailureHandler (in DVTFoundation) 4 0x000000010f614e0b -[IDEFileReference resolvedFilePath](in IDEFoundation) 5 0x0000000114903696 -[Xcode3FileReference resolvedFilePath](in DevToolsCore) 6 0x00000001147260f1 -[PBXReference resolvedAbsolutePath](in DevToolsCore) 7 0x000000011472cf59 -[PBXFileReference resolvedAbsolutePath](in DevToolsCore) 8 0x0000000114755645 -[PBXTarget containsFileReferenceSimilarTo:](in DevToolsCore) 9 0x0000000114714bc0 -[PBXProject targetsForFileReference:justNative:](in DevToolsCore) 10 0x00000001161cb180 -[AXAProjectSettingsRetriever compilerOptionsForDocument:](in Eero Xcode Plugin) 11 0x00000001161ccde4 -[NSObject(IDEIndexCompletionStrategy_Swizzle) DVTSwizzle_completionItemsForDocumentLocation:context:areDefinitive:](in Eero Xcode Plugin) 12 0x000000010f2cfdff 94-[DVTTextCompletionDataSource generateCompletionsForDocumentLocation:context:completionBlock:]_block_invoke (in DVTKit) 13 0x000000010ebe3047 -[DVTOperation main](in DVTFoundation) 14 0x00007fff8741e926 -[NSOperationInternal start](in Foundation) 15 0x00007fff874260f1 __block_global_6 (in Foundation) 16 0x00007fff8c4c6f01 _dispatch_call_block_and_release (in libdispatch.dylib) 17 0x00007fff8c4c30b6 _dispatch_client_callout (in libdispatch.dylib) 18 0x00007fff8c4c41fa _dispatch_worker_thread2 (in libdispatch.dylib) 19 0x00007fff8506fcdb _pthread_wqthread (in libsystem_c.dylib) 20 0x00007fff8505a191 start_wqthread (in libsystem_c.dylib)

abort() called

andyarvanitis commented 10 years ago

I've (obviously) seen it once, but can't seem to reproduce it. Interestingly, it seems that NSThread.isMainThread assertion in Xcode should be failing every time, but it doesn't (from poking at it, the completer always seems to run in a worker thread).

Are you seeing this consistently? Technically, the plugin doesn't support autocomplete in headers yet, but I certainly don't want it crashing for now.