w0lfschild / Flashlight

:mag_right: Enhance Spotlight with plugins on macOS
https://www.macenhance.com/flashlight
Other
1.13k stars 56 forks source link

Mac os 10.14 (Mojave) Beta #46

Closed majid701 closed 6 years ago

majid701 commented 6 years ago

Can't open flashlight crashes on launch.

Stacktrace below:

` Process: Flashlight [73525] Path: /private/var/folders/*/Flashlight.app/Contents/MacOS/Flashlight Identifier: com.nateparrott.Flashlight Version: 1.0.8 (62) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Flashlight [73525] User ID: 501

Date/Time: 2018-06-20 10:17:47.386 +0200 OS Version: Mac OS X 10.14 (18A293u) Report Version: 12 Bridge OS Version: 3.0 (14Y664) Anonymous UUID: AC305FE9-EDFC-B0C0-D329-5EC88BDFFA44

Sleep/Wake UUID: CEE54AB4-9728-4B2C-80D3-74DF2E01864F

Time Awake Since Boot: 77000 seconds Time Since Wake: 2700 seconds

System Integrity Protection: enabled

Notes: Translocated Process

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

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

Application Specific Information: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[__NSArrayM insertObject:atIndex:]: object cannot be nil' terminating with uncaught exception of type NSException abort() called

Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff2851e16a exceptionPreprocess + 197 1 libobjc.A.dylib 0x00007fff54447b10 objc_exception_throw + 48 2 CoreFoundation 0x00007fff28554bdc -[CFPrefsConfigurationFileSource initWithConfigurationPropertyList:containingPreferences:] + 0 3 CoreFoundation 0x00007fff28464a28 -[NSArrayM insertObject:atIndex:] + 1216 4 AppKit 0x00007fff25ae434b -[NSToolbarItemViewer configureForLayoutInDisplayMode:andSizeMode:inToolbarView:] + 1786 5 AppKit 0x00007fff25ae21b4 -[NSToolbarView _layoutDirtyItemViewersAndTileToolbar] + 976 6 AppKit 0x00007fff25b0e1cb -[NSToolbarView layout] + 54 7 AppKit 0x00007fff262b4f50 _NSViewLayout + 587 8 AppKit 0x00007fff25af0cfa -[NSView _layoutSubtreeWithOldSize:] + 446 9 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079 10 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079 11 AppKit 0x00007fff25af0f73 -[NSView _layoutSubtreeWithOldSize:] + 1079 12 AppKit 0x00007fff262bad50 -[NSView _layoutSubtreeIfNeededAndAllowTemporaryEngine:] + 1358 13 AppKit 0x00007fff25b0d00b -[NSWindow(NSConstraintBasedLayout) _layoutViewTree] + 148 14 AppKit 0x00007fff25b72797 -[NSWindow(NSConstraintBasedLayout) layoutIfNeeded] + 263 15 AppKit 0x00007fff25b72678 -[NSWindow _setUpFirstResponderBeforeBecomingVisible] + 63 16 AppKit 0x00007fff25b71b21 -[NSWindow _doWindowWillBeVisibleAsSheet:] + 157 17 AppKit 0x00007fff262dbf8a -[NSWindow _reallyDoOrderWindowAboveOrBelow:relativeTo:findKey:forCounter:force:isModal:] + 1445 `

ThatsJustCheesy commented 6 years ago

With a quick bit of fiddling, I managed to avert this crash by deleting the "Custom View" toolbar item out of the "Window" in MainMenu.xib. Note that I don't actually know what this item does; deleting it obviously isn't the best way to fix this, but it's the easy way. Might investigate how to do it properly and do a PR soon, unless @w0lfschild fixes it first.

w0lfschild commented 6 years ago

@ThatsJustCheesy A PR would be great, I'm pretty busy ATM so won't have time to personally look into the issue for at least a month or more.

bachmx commented 6 years ago

I have same problem. But i can find "Custom View" toolbar item in MainMenu.xib.

rdewolff commented 6 years ago

Any update on this? Would love to use this on Mojave!

w0lfschild commented 6 years ago

Update is live, you'll need to manually download it if you're on Mojave because it crashes before it can update.

https://github.com/w0lfschild/app_updates/raw/master/Flashlight/Flashlight_master.zip

rdewolff commented 6 years ago

Thanks @w0lfschild it works!