robofont-mechanic / Mechanic

Package manager for RoboFont extensions
http://robofontmechanic.com
MIT License
26 stars 7 forks source link

Crashes Robofont when not online. #14

Closed frankrolf closed 9 years ago

frankrolf commented 9 years ago

Robofont will hang on startup when there is no active internet connection (e.g. in the train). The only solution is temporarily de-activating Mechanic.

jackjennings commented 9 years ago

Hmm… I thought that checking for updates in a new thread would allow Robofont to continue starting up in the mean time. @typemytype is this not the case, or could that have changed at some point?

typemytype commented 9 years ago

mm, pure python threads and cocoa objects are not working that well together, especially when popup UI elements from that thread.

In my experience its more stable to use NSThread see the Batch extension as example https://github.com/typemytype/batchRoboFontExtension/blob/master/Batch.roboFontExt/lib/batchTools.py#L57

hope this helps...

jackjennings commented 9 years ago

Yeah, that does. Looks like I'll need to rewrite my threading code to use something similar.

jackjennings commented 9 years ago

Released the update as version 1.0.5