nate-parrott / Flashlight

The missing Spotlight plugin system
http://flashlight.nateparrott.com
Other
5.39k stars 411 forks source link

Crash when uses any plugins #350

Open zhangfand opened 9 years ago

zhangfand commented 9 years ago

I have installed a few plugins: man support, dash support and google search. Whenever I use any plugin, spotlight will crash and reopen.

I checked out the log file. It says

2/28/15 2:02:00.522 PM com.nateparrott.Flashlight.FlashlightSIMBLAgent[28635]: AppleEvents: Send port for process has no send right, port=( port:31099/0x797b rcv:1,send:0,d:0 limit:5) (findOrCreate()/AEMachUtils.cp #526) com.apple.main-thread

nate-parrott commented 9 years ago

Interesting... can you send the rest of the log file? (search for Spotlight and export the results).

Thanks!

cheft commented 9 years ago

me too.

zhangfand commented 9 years ago

Sorry for the late reply. Here is all the log informations.

3/18/15 2:22:55.226 PM  Spotlight[21004]    An uncaught exception was raised
3/18/15 2:22:55.226 PM  Spotlight[21004]    Couldn't posix_spawn: error 2
3/18/15 2:22:55.226 PM  Spotlight[21004]    (
    0   CoreFoundation                      0x00007fff918e566c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8eaf876e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff918e551d +[NSException raise:format:] + 205
    3   Foundation                          0x00007fff96a7911f -[NSConcreteTask launchWithDictionary:] + 3119
    4   FlashlightKit                       0x000000010a10cfb1 -[NSTask(FlashlightExtensions) launchWithTimeout:callback:] + 515
    5   FlashlightKit                       0x000000010a115c33 -[FlashlightQueryEngine executePluginAtPath:parseTree:query:] + 1173
    6   FlashlightKit                       0x000000010a1155d8 -[FlashlightQueryEngine handlePluginAtPath:parseTree:query:] + 490
    7   FlashlightKit                       0x000000010a11534d -[FlashlightQueryEngine runPluginsWithParseTrees:ifQueryIsStill:] + 467
    8   FlashlightKit                       0x000000010a114f1c __29-[FlashlightQueryEngine init]_block_invoke38 + 46
    9   libdispatch.dylib                   0x00007fff8ba1f323 _dispatch_call_block_and_release + 12
    10  libdispatch.dylib                   0x00007fff8ba1ac13 _dispatch_client_callout + 8
    11  libdispatch.dylib                   0x00007fff8ba26cbf _dispatch_main_queue_callback_4CF + 861
    12  CoreFoundation                      0x00007fff91838c79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    13  CoreFoundation                      0x00007fff917f530f __CFRunLoopRun + 2159
    14  CoreFoundation                      0x00007fff917f4858 CFRunLoopRunSpecific + 296
    15  HIToolbox                           0x00007fff8eff3aef RunCurrentEventLoopInMode + 235
    16  HIToolbox                           0x00007fff8eff386a ReceiveNextEventCommon + 431
    17  HIToolbox                           0x00007fff8eff36ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
    18  AppKit                              0x00007fff8f7f4f81 _DPSNextEvent + 964
    19  AppKit                              0x00007fff8f7f4730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
    20  AppKit                              0x00007fff8f7e8593 -[NSApplication run] + 594
    21  AppKit                              0x00007fff8f7d3a14 NSApplicationMain + 1832
    22  libdyld.dylib                       0x00007fff89e005c9 start + 1
    23  ???                                 0x0000000000000001 0x0 + 1
)
3/18/15 2:22:55.226 PM  Spotlight[21004]    *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't posix_spawn: error 2'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff918e566c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8eaf876e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff918e551d +[NSException raise:format:] + 205
    3   Foundation                          0x00007fff96a7911f -[NSConcreteTask launchWithDictionary:] + 3119
    4   FlashlightKit                       0x000000010a10cfb1 -[NSTask(FlashlightExtensions) launchWithTimeout:callback:] + 515
    5   FlashlightKit                       0x000000010a115c33 -[FlashlightQueryEngine executePluginAtPath:parseTree:query:] + 1173
    6   FlashlightKit                       0x000000010a1155d8 -[FlashlightQueryEngine handlePluginAtPath:parseTree:query:] + 490
    7   FlashlightKit                       0x000000010a11534d -[FlashlightQueryEngine runPluginsWithParseTrees:ifQueryIsStill:] + 467
    8   FlashlightKit                       0x000000010a114f1c __29-[FlashlightQueryEngine init]_block_invoke38 + 46
    9   libdispatch.dylib                   0x00007fff8ba1f323 _dispatch_call_block_and_release + 12
    10  libdispatch.dylib                   0x00007fff8ba1ac13 _dispatch_client_callout + 8
    11  libdispatch.dylib                   0x00007fff8ba26cbf _dispatch_main_queue_callback_4CF + 861
    12  CoreFoundation                      0x00007fff91838c79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    13  CoreFoundation                      0x00007fff917f530f __CFRunLoopRun + 2159
    14  CoreFoundation                      0x00007fff917f4858 CFRunLoopRunSpecific + 296
    15  HIToolbox                           0x00007fff8eff3aef RunCurrentEventLoopInMode + 235
    16  HIToolbox                           0x00007fff8eff386a ReceiveNextEventCommon + 431
    17  HIToolbox                           0x00007fff8eff36ab _BlockUntilNextEventMatchingListInModeWithFilter + 71
    18  AppKit                              0x00007fff8f7f4f81 _DPSNextEvent + 964
    19  AppKit                              0x00007fff8f7f4730 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 194
    20  AppKit                              0x00007fff8f7e8593 -[NSApplication run] + 594
    21  AppKit                              0x00007fff8f7d3a14 NSApplicationMain + 1832
    22  libdyld.dylib                       0x00007fff89e005c9 start + 1
    23  ???                                 0x0000000000000001 0x0 + 1
)
3/18/15 2:22:55.754 PM  com.apple.xpc.launchd[1]    (com.apple.Spotlight[21004]) Service exited due to signal: Abort trap: 6
3/18/15 2:22:55.756 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL remove runningApp <NSRunningApplication: 0x7fa31d36bd40 (com.apple.Spotlight - 21004)>.
3/18/15 2:22:55.799 PM  ReportCrash[21852]  Saved crash report for Spotlight[21004] version 1.0 (917.1) to /Users/Tremendo/Library/Logs/DiagnosticReports/Spotlight_2015-03-18-142255_DongZhangfans-MacBook-Pro.crash
3/18/15 2:22:55.808 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL add runningApp <NSRunningApplication: 0x7fa31d25cb70 (com.apple.Spotlight - 21853)>.
3/18/15 2:22:55.884 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL runningApp <NSRunningApplication: 0x7fa31d25cb70 (com.apple.Spotlight - 21853)> isFinishedLaunching.
3/18/15 2:22:55.885 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL Spotlight started
3/18/15 2:22:55.885 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL app start notification: <NSRunningApplication: 0x7fa31d25cb70 (com.apple.Spotlight - 21853)>
3/18/15 2:22:55.885 PM  com.nateparrott.Flashlight.FlashlightSIMBLAgent[20876]  warning: failed to get scripting definition from /System/Library/CoreServices/Spotlight.app; it may not be scriptable.
3/18/15 2:22:55.888 PM  com.github.norio-nomura.SIMBL-Agent[8855]   #EasySIMBL No plugins match for <NSRunningApplication: 0x7fa31d25cb70 (com.apple.Spotlight - 21853)>
3/18/15 2:22:55.962 PM  Spotlight[21853]    #Flashlight SIMBLGot plugins: SpotlightSIMBL.bundle from /Applications/Flashlight.app/Contents/Library/LoginItems/FlashlightSIMBLAgent.app/Contents/Resources/SIMBLPlugins
3/18/15 2:22:55.965 PM  Spotlight[21853]    Hello from Flashlight! (/Applications/Flashlight.app/Contents/Library/LoginItems/FlashlightSIMBLAgent.app/Contents/Resources/SIMBLPlugins/SpotlightSIMBL.bundle)
3/18/15 2:22:58.148 PM  Spotlight[21853]    applications query - started
3/18/15 2:22:58.219 PM  Spotlight[21853]    applications query - finished in 0.071 seconds
3/18/15 2:23:05.278 PM  Spotlight[21853]    Bartender: Loaded BartenderHelperEightyThree