dustinrue / ControlPlane

ControlPlane - context-sensitive computing for OS X
http://www.controlplaneapp.com
BSD 3-Clause "New" or "Revised" License
1.76k stars 180 forks source link

Crash on startup #480

Closed cblecker closed 7 years ago

cblecker commented 7 years ago

I can't seem to be able to start ControlPlane at the moment, as everytime it loads I get the following crash (information from Console):

default 09:58:32.001249 -0800   ControlPlane    subsystem: com.apple.SkyLight, category: default, enable_level: 0, persist_level: 0, default_ttl: 7, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
default 09:58:32.014163 -0800   ControlPlane    Unknown class DNDArrayController in Interface Builder file at path /Applications/ControlPlane.app/Contents/Resources/en.lproj/MainMenu.nib.
default 09:58:32.028241 -0800   ControlPlane    Unknown class DNDArrayController in Interface Builder file at path /Applications/ControlPlane.app/Contents/Resources/en.lproj/MainMenu.nib.
default 09:58:32.111310 -0800   ControlPlane    subsystem: com.apple.libsqlite3, category: logging, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
default 09:58:32.192529 -0800   ControlPlane    1120
default 09:58:32.198568 -0800   ControlPlane    subsystem: com.apple.securityd, category: csresource, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.198787 -0800   ControlPlane    subsystem: com.apple.securityd, category: dirval, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.199027 -0800   ControlPlane    subsystem: com.apple.securityd, category: unixio, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.199170 -0800   ControlPlane    subsystem: com.apple.securityd, category: macho, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.199313 -0800   ControlPlane    subsystem: com.apple.securityd, category: machorep, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.199446 -0800   ControlPlane    subsystem: com.apple.securityd, category: cfloadfile, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.205674 -0800   ControlPlane    Failed to connect (tableView) outlet from (NSArrayController) to (NSTableView): missing setter or instance variable
default 09:58:32.310558 -0800   ControlPlane    subsystem: com.apple.SystemConfiguration, category: SCPreferences, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:32.483195 -0800   ControlPlane    subsystem: com.apple.coreaudio, category: ssc, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0
default 09:58:34.524483 -0800   ControlPlane    subsystem: com.apple.AppKit, category: General, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 0, enable_private_data: 0
error   09:58:34.524519 -0800   ControlPlane    An uncaught exception was raised

error   09:58:34.524548 -0800   ControlPlane    <private>
error   09:58:34.524607 -0800   ControlPlane    <private>
default 09:58:34.524678 -0800   ControlPlane    *** Terminating app due to uncaught exception 'NSGenericException', reason: '-[NSAlert runModal] may only be invoked from the main thread. Behavior on other threads is undefined.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fffd4f21e7b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x00007fffe9b0bcad objc_exception_throw + 48
    2   CoreFoundation                      0x00007fffd4fa099d +[NSException raise:format:] + 205
    3   AppKit                              0x00007fffd325bbb7 _NSRunModal + 103
    4   AppKit                              0x00007fffd2c9594d -[NSAlert runModal] + 270
    5   ControlPlane                        0x000000010d48b36d -[DefaultBrowserAction setControlPlaneAsURLHandler] + 240
    6   ControlPlane                        0x000000010d48b1b2 -[DefaultBrowserAction initWithDictionary:] + 121
    7   ControlPlane                        0x000000010d46e2ba +[Action actionFromDictionary:] + 94
    8   ControlPlane                        0x000000010d46
dustinrue commented 7 years ago

It looks like you have a bad default browser action configured. This might help resolve it.

Open a terminal window (search for terminal) and enter the following

defaults write com.dustinrue.ControlPlane Enabled -bool no

Then start ControlPlane. Locate any DefaultBrowser actions you have configured and remove them. Then you can enable ControlPlane again on the General pane.

cblecker commented 7 years ago

Thank you! This worked. Not sure how the default browser rules screwed up the config, but I'll dig into that deeper.