macoscope / CodePilot

Code Pilot is an Xcode plugin which lets you woosh through your code and save a lot (and we mean a *lot*) of your time.
http://codepilot.cc
Apache License 2.0
1.33k stars 205 forks source link

Seems CodePilot causes whole system to crash #43

Closed philosopherdog closed 9 years ago

philosopherdog commented 9 years ago

I believe it's been taking down my whole system under xCode 6.3.2. This is the log I got this morning before removing it. This has been happening intermittently for at least a week. I'm not certain it's Codepilot but my suspicions are growing.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff8d2af286 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff85d18b53 abort + 129
2   com.apple.dt.IDE.Xcode3Core     0x000000010125e7f6 _Xcode3CommandLineToolHandleException + 391
3   com.apple.dt.IDE.Xcode3Core     0x000000010126d315 _Xcode3CommandLineToolHandleUncaughtException + 25
4   com.apple.CoreFoundation        0x00007fff828c84ee __handleUncaughtException + 718
5   libobjc.A.dylib                 0x00007fff8faab7cd _objc_terminate() + 94
6   libc++abi.dylib                 0x00007fff81b920a1 std::__terminate(void (*)()) + 8
7   libc++abi.dylib                 0x00007fff81b92113 std::terminate() + 51
8   libobjc.A.dylib                 0x00007fff8faab5ff objc_terminate + 9
9   libdispatch.dylib               0x00007fff8b285c27 _dispatch_client_callout + 28
10  libdispatch.dylib               0x00007fff8b285b26 dispatch_once_f + 117
11  net.macoscope.CodePilot3        0x0000000109fa8929 +[CPCodePilotPlugin sharedInstance] + 46 (once.h:68)
12  net.macoscope.CodePilot3        0x0000000109fa81a9 +[CPCodePilotPlugin load] + 403 (CPCodePilotPlugin.m:26)
13  libobjc.A.dylib                 0x00007fff8faa0ad1 call_load_methods + 747
14  libobjc.A.dylib                 0x00007fff8fa9fb04 load_images + 214
15  dyld                            0x00007fff64a4af86 dyld::notifySingle(dyld_image_states, ImageLoader const*) + 249
16  dyld                            0x00007fff64a5885e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 286
17  dyld                            0x00007fff64a586f8 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) + 138
18  dyld                            0x00007fff64a58969 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 75
19  dyld                            0x00007fff64a4e063 dyld::runInitializers(ImageLoader*) + 89
20  dyld                            0x00007fff64a551d1 dlopen + 578
21  libdyld.dylib                   0x00007fff837e8857 dlopen + 59
22  com.apple.CoreFoundation        0x00007fff827fc9c8 _CFBundleDlfcnLoadBundle + 152
23  com.apple.CoreFoundation        0x00007fff827fc190 _CFBundleLoadExecutableAndReturnError + 528
24  com.apple.Foundation            0x00007fff875cf983 _NSBundleLoadCode + 513
25  com.apple.Foundation            0x00007fff875cf37f -[NSBundle loadAndReturnError:] + 259
26  com.apple.Xcode.DevToolsCore    0x000000010232aee4 __46-[XCPluginManager loadPluginBundle:forDomain:]_block_invoke + 50
27  com.apple.dt.DVTFoundation      0x00000001006ff8f2 DVTInvokeWithFailureHint + 83
28  com.apple.Xcode.DevToolsCore    0x000000010232ac6c -[XCPluginManager loadPluginBundle:forDomain:] + 1041
29  com.apple.Xcode.DevToolsCore    0x000000010232a704 __46-[XCPluginManager findAndLoadPluginsInDomain:]_block_invoke + 621
30  com.apple.dt.DVTFoundation      0x00000001006e681d -[DVTPlugInManager _allowNonApplePlugInsFromDescriptors:error:] + 476
31  com.apple.dt.DVTFoundation      0x00000001006e6a9e -[DVTPlugInManager _checkNonApplePlugIns] + 239
32  com.apple.dt.DVTFoundation      0x00000001006e6b14 -[DVTPlugInManager initializePlugIns:] + 27
33  com.apple.dt.IDEFoundation      0x0000000100c697e4 _IDEInitializeOtherPlugInStuff + 175
34  com.apple.dt.IDEFoundation      0x0000000100c6abbc IDEInitialize + 3533
35  com.apple.dt.IDE.Xcode3Core     0x000000010126c02f -[Xcode3CommandLineBuildTool run] + 836
36  xcodebuild                      0x000000010052a9be 0x10052900
nonstriater commented 9 years ago

I got crash when I run cmd in shell

xcodebuild -sdk / -find clang
2015-06-14 18:27:55.000 xcodebuild[1017:44031] CPCodePilotPlugin.m:23 +[CPCodePilotPlugin load]; CODE PILOT: CURRENT_XCODE_VERSION: 0 CURRENT_XCODE_REVISION: 0
Jun 14 18:27:55 nulldeMacBook-Pro.local xcodebuild[1017] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Jun 14 18:27:55 nulldeMacBook-Pro.local xcodebuild[1017] <Warning>: Invalid Connection ID 0
** INTERNAL ERROR: Uncaught exception **
Exception: Error (1000) creating CGSWindow
Stack:
  0  0x00007fff8c425024 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff9029b76e objc_exception_throw (in libobjc.A.dylib)
  2  0x00007fff8c424eed +[NSException raise:format:] (in CoreFoundation)
  3  0x00007fff8554d306 _NXCreateWindowWithStyleMask (in AppKit)
  4  0x00007fff8554d0a2 _NSCreateWindow (in AppKit)
  5  0x00007fff853aae9d -[NSWindow _commonAwake] (in AppKit)
  6  0x00007fff8533780a -[NSWindow _commonInitFrame:styleMask:backing:defer:] (in AppKit)
  7  0x00007fff85336db0 -[NSWindow _initContent:styleMask:backing:defer:contentView:] (in AppKit)
  8  0x00007fff853367db -[NSWindow initWithContentRect:styleMask:backing:defer:] (in AppKit)
  9  0x0000000110410f47 -[CPWindow initWithContentRect:styleMask:backing:defer:] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPWindow.m:26 (in CodePilot3)
 10  0x0000000110410ed9 -[CPWindow initWithDefaultSettings] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPWindow.m:18 (in CodePilot3)
 11  0x0000000110404c3f -[CPCodePilotWindowDelegate initWithXcodeWrapper:] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPCodePilotWindowDelegate.m:21 (in CodePilot3)
 12  0x00000001104042ca -[CPCodePilotPlugin init] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPCodePilotPlugin.m:29 (in CodePilot3)
 13  0x0000000110404954 __35+[CPCodePilotPlugin sharedInstance]_block_invoke at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPCodePilotPlugin.m:96 (in CodePilot3)
 14  0x00007fff90d17c13 _dispatch_client_callout (in libdispatch.dylib)
 15  0x00007fff90d17b26 dispatch_once_f (in libdispatch.dylib)
 16  0x0000000110404929 +[CPCodePilotPlugin sharedInstance] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPCodePilotPlugin.m:91 (in CodePilot3)
 17  0x00000001104041a9 +[CPCodePilotPlugin load] at /Users/null/Library/Application Support/Alcatraz/Plug-ins/CodePilot/Classes/CPCodePilotPlugin.m:21 (in CodePilot3)
 18  0x00007fff90294ad1 call_load_methods (in libobjc.A.dylib)
 19  0x00007fff90293b04 load_images (in libobjc.A.dylib)
 20  0x00007fff68328f86 dyld::notifySingle(dyld_image_states, ImageLoader const*) (in dyld)
 21  0x00007fff6833685e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in dyld)
 22  0x00007fff683366f8 ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) (in dyld)
 23  0x00007fff68336969 ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) (in dyld)
 24  0x00007fff6832c063 dyld::runInitializers(ImageLoader*) (in dyld)
 25  0x00007fff683331d1 dlopen (in dyld)
 26  0x00007fff833bd857 dlopen (in libdyld.dylib)
 27  0x00007fff8c3599c8 _CFBundleDlfcnLoadBundle (in CoreFoundation)
 28  0x00007fff8c359190 _CFBundleLoadExecutableAndReturnError (in CoreFoundation)
 29  0x00007fff8e3d0983 _NSBundleLoadCode (in Foundation)
 30  0x00007fff8e3d037f -[NSBundle loadAndReturnError:] (in Foundation)
 31  0x0000000108f17ee4 __46-[XCPluginManager loadPluginBundle:forDomain:]_block_invoke (in DevToolsCore)
 32  0x00000001072ed8f2 DVTInvokeWithFailureHint (in DVTFoundation)
 33  0x0000000108f17c6c -[XCPluginManager loadPluginBundle:forDomain:] (in DevToolsCore)
 34  0x0000000108f17704 __46-[XCPluginManager findAndLoadPluginsInDomain:]_block_invoke (in DevToolsCore)
 35  0x00000001072d481d -[DVTPlugInManager _allowNonApplePlugInsFromDescriptors:error:] (in DVTFoundation)
 36  0x00000001072d4a9e -[DVTPlugInManager _checkNonApplePlugIns] (in DVTFoundation)
 37  0x00000001072d4b14 -[DVTPlugInManager initializePlugIns:] (in DVTFoundation)
 38  0x000000010785d7e4 _IDEInitializeOtherPlugInStuff (in IDEFoundation)
 39  0x000000010785ebbc IDEInitialize (in IDEFoundation)
 40  0x0000000107e6502f -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
 41  0x00000001071179be (in xcodebuild)
 42  0x00007fff833be5c9 start (in libdyld.dylib)
 43  0x0000000000000005

[1]    1017 abort      xcodebuild -sdk / -find clang

when i remove CodePilot ,everything get well!

sunuslee commented 9 years ago

me too! this cause tons of core files in /core , and eat my disk!

philosopherdog commented 9 years ago

Since removing this plugin my totally system meltdowns have ceased.

bubski commented 9 years ago

Hey guys, this problem should no longer appear ( as of #46 ). Let us know if you still have the issue.