I've already asked on IRC and no one seemed to have an idea why the following is happening:
I can consistently get the RubyMotion runtime and the device to freeze when running this simple code (https://gist.github.com/2936457) with
rake device and then hitting the Cancel button on the
UIImagePicker. I am guessing this is related to callbacks in general, but I couldn't come up with a simpler example.
As you can see, the
UIImagePicker callback method simply uses
each to iterate over an array of strings, but as soon as it hits the syntax error on line 28 (
putd) it stops. No exception in the logs, nothing. The process has to be killed to exit it.
Any ideas? Am I supposed to release/retain something? I know blocks are a bit tricky but I can't figure out what could possibly be causing the freeze, even if it was a NULL pointer or a missing reference