I am trying to build the MyRecorder app (see the QTKit Capture Programming Guide) in RubyCocoa and get the following result:
/Users/martin/work/capture/capture2/build/Debug/capture2.app/Contents/Resources/rb_main.rb:22:in `NSApplicationMain': stack level too deep (SystemStackError)
[Session started at 2009-09-07 10:37:25 +0100.]
/Users/martin/work/capture/capture2/build/Debug/capture2.app/Contents/Resources/rb_main.rb:22: [BUG] rb_cocoa_thread_schedule_hook: expecting to run on NSThread 0x208270 but was 0x2380c0
ruby 1.8.6 (2008-08-11) [universal-darwin9.0]
I'm using the internal camera and the app starts (usually) with a window that shows the view is being captured but then immediately crashes.
The QT documentation (QTCaptureFileOutput Reference) mentions that 'Applications should not assume that this method will be called on the main thread', however, this seems to be a ruby_cocoa error, hence the post.
The computer is an iMac running OSX 10.5.8 and the version of RubyCocoa is 0.13.2, however I have tried it on v1.0.0 and get the same result.
.rb file is attached attached. Note that Controller.rb just includes OSX.
Log in to post a comment.