Crash 10.5 Download

From kJams Wiki
Jump to navigation Jump to search

The symptom is: you are running OS 10.5, and kJams is downloading something (perhaps the music stores), and it crashes.

This is a known Apple bug that they have confirmed they will not fix in 10.5. It has been fixed in OS 10.6, so the only way out is to upgrade your OS to 10.6, sorry. This bug was due to my not completely understanding the concepts around RunLoops and Threading. (in this case, launching a download on a back thread (run loop) but servicing the bytes on the main thread (run loop)). Apple updated their code in 10.6 to be more robust and to be able to handle cross-thread run loop scheduling, but this code is not available on 10.5, hence the crash.

You can temporarily work around this bug by only downloading one thing at a time. For example, when it asks to update the first music store, hit OK. When it asks about the second one, hit cancel. Watch the tasks window, wait for the download, parse, and SAVE tasks. Then Quit, then run again, now it will ask to download the next store, hit OK, cancel the next one (if any), repeat. This will get you going. Meanwhile, please do upgrade to 10.6.

Update: OMG this is fixed in version d50r54!