matt-curtis / Fluid-for-Sketch

[Sketch Plugin] Sketch-flavored Auto Layout-like Constraints
2.38k stars 73 forks source link

Crashes when Sketch window gets focus (macOS 10.12 + Sketch 40.1) #106

Closed moxamax closed 7 years ago

moxamax commented 8 years ago

Crash report:

Exception Name: NSInvalidArgumentException
Description: -[MSPluginManagerWithActions pluginsFolderURL]: unrecognized selector sent to instance 0x6080000d8b80
User Info: (null)

0   CoreFoundation                      0x00007fffa112f7bb __exceptionPreprocess + 171
1   libobjc.A.dylib                     0x00007fffb589ca2a objc_exception_throw + 48
2   CoreFoundation                      0x00007fffa11afd84 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3   CoreFoundation                      0x00007fffa10a2fc3 ___forwarding___ + 1059
4   CoreFoundation                      0x00007fffa10a2b18 _CF_forwarding_prep_0 + 120
5   MCSketchPluginFramework             0x000000011296ddd5 -[MCSPluginUpdater isNewerPluginBundleAvailableLocally:] + 114
6   MCSketchPluginFramework             0x000000011296b472 -[MCSPluginController applicationDidBecomeActive] + 62
7   CoreFoundation                      0x00007fffa10bc6ac __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
8   CoreFoundation                      0x00007fffa10bc5ab _CFXRegistrationPost + 427
9   CoreFoundation                      0x00007fffa10bc312 ___CFXNotificationPost_block_invoke + 50
10  CoreFoundation                      0x00007fffa107aa32 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 2018
11  CoreFoundation                      0x00007fffa1079a1b _CFXNotificationPost + 667
12  Foundation                          0x00007fffa2aa70e3 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
13  AppKit                              0x00007fff9f16862d -[NSApplication _handleActivatedEvent:] + 1457
14  AppKit                              0x00007fff9f44c27b -[NSApplication(NSEvent) sendEvent:] + 2815
15  AppKit                              0x00007fff9f080f04 _NXFinishActivation + 152
16  AppKit                              0x00007fff9f5aef23 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4267
17  AppKit                              0x00007fff9f5abf8c -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 1942
18  AppKit                              0x00007fff9f5ab42a -[NSWindow(NSEventRouting) sendEvent:] + 541
19  Sketch                              0x0000000104b8ad6d Sketch + 888173
20  AppKit                              0x00007fff9f44bbf5 -[NSApplication(NSEvent) sendEvent:] + 1145
21  AppKit                              0x00007fff9ed32009 -[NSApplication run] + 1002
22  AppKit                              0x00007fff9ecfca8a NSApplicationMain + 1237
23  libdyld.dylib                       0x00007fffb6178255 start + 1
24  ???                                 0x0000000000000001 0x0 + 1
yisraelgrimes commented 7 years ago

Any news on this bug? This plugin was the most used plugin in my workflow :(

matt-curtis commented 7 years ago

@moxamax @yisraelgrimes

Here's a beta hotfix build - please let me know if it fixes the issue.

yisraelgrimes commented 7 years ago

Seems to have done the trick! You sir, are awesome! Can I buy you a coffee or something?

matt-curtis commented 7 years ago

Just glad it's working for you, will push this out as a release this week. :)

moxamax commented 7 years ago

It works! 👍 Thank you.

matt-curtis commented 7 years ago

A version containing the above fix has been pushed. Closing.