From: Allison N. <dem...@ma...> - 2008-08-27 05:04:25
|
Hi Brian, In my (admittedly limited) experience with RubyCocoa, the bug most likely to make the internals of Cocoa blow up is when you hand Cocoa a Ruby Object that has been generated by a factory class. My personal favourite of these is objects generated by YAML, but I'm sure there are others. Is your problem always associated with NSNotificationCenter? How are you generating the observer objects? Can you post that code? Hope that helps, Alli Le 27 août 08 à 00:55, Brian Marick a écrit : > I occasionally get the following dump when using my app. It happens > when I repeatedly and alternately click a combo box and a button, but > not after a predictable number of clicks. It seems to always happen in > a combo box click. Ideas? Could this have anything to do with > RubyCocoa? > > #0 0x9566beba in _objc_error () > #1 0x9566bef0 in __objc_error () > #2 0x9566a8f7 in _freedHandler () > #3 0x92c9b54a in _nsnote_callback () > #4 0x94692aba in __CFXNotificationPost () > #5 0x94692d93 in _CFXNotificationPostNotification () > #6 0x92c987b0 in -[NSNotificationCenter > postNotificationName:object:userInfo:] () > #7 0x96b661dd in .LCFI1 () > #8 0x96b66771 in ffi_call () > #9 0x00042a6c in rb_ffi_dispatch () > #10 0x0002db65 in objcptr_s_new_with_cptr () > #11 0x0002ee44 in init_mdl_OCObjWrapper () > #12 0x96b66424 in ffi_closure_SYSV () > #13 0x000dc1d8 in rb_eval_string_wrap () > #14 0x000dcdec in rb_eval_string_wrap () > #15 0x000da06d in rb_eval_string_wrap () > #16 0x000dc9de in rb_eval_string_wrap () > #17 0x000dcdec in rb_eval_string_wrap () > #18 0x000da06d in rb_eval_string_wrap () > #19 0x000dc9de in rb_eval_string_wrap () > #20 0x000dcdec in rb_eval_string_wrap () > #21 0x000da06d in rb_eval_string_wrap () > #22 0x000e01fc in rb_thread_trap_eval () > #23 0x000e086a in rb_thread_trap_eval () > #24 0x000dc43a in rb_eval_string_wrap () > #25 0x000dcdec in rb_eval_string_wrap () > #26 0x000e6347 in rb_apply () > #27 0x00035371 in install_ovmix_hooks () > #28 0x000d1fe5 in rb_protect () > #29 0x00036449 in rbobj_call_ruby () > #30 0x00036ad9 in rbobj_call_ruby () > #31 0x00035ce6 in install_ovmix_hooks () > #32 0x0003414f in ovmix_register_ruby_method () > #33 0x947309aa in ___forwarding___ () > #34 0x94730a12 in __forwarding_prep_0___ () > #35 0x93f15c23 in -[NSApplication sendAction:to:from:] () > #36 0x93f15b60 in -[NSControl sendAction:to:] () > #37 0x93f159e6 in -[NSCell _sendActionFrom:] () > #38 0x93f1503f in -[NSCell trackMouse:inRect:ofView:untilMouseUp:] () > #39 0x93f14892 in -[NSButtonCell > trackMouse:inRect:ofView:untilMouseUp:] () > #40 0x93f1414c in -[NSControl mouseDown:] () > #41 0x93f1288b in -[NSWindow sendEvent:] () > #42 0x93edf431 in -[NSApplication sendEvent:] () > #43 0x93e3ce27 in -[NSApplication run] () > #44 0x93e0a030 in NSApplicationMain () > #45 0x96b661dd in .LCFI1 () > #46 0x96b66771 in ffi_call () > #47 0x00042a6c in rb_ffi_dispatch () > #48 0x0003b2ed in find_bs_boxed_by_encoding () > #49 0x000d2c47 in rb_with_disable_interrupt () > #50 0x000dc1d8 in rb_eval_string_wrap () > #51 0x000dcdec in rb_eval_string_wrap () > #52 0x000da06d in rb_eval_string_wrap () > #53 0x000e8f62 in rb_load_protect () > #54 0x000e8f93 in ruby_exec () > #55 0x000e8fbf in ruby_run () > #56 0x000386ac in RBApplicationMain () > #57 0x00001fed in main (argc=1, argv=0xbfffe3ac) at /Users/marick/ > writing/rubycocoa-book/Book/code/fenestra/preferred-list/main.m:14 > > ----- > Brian Marick, independent consultant > Mostly on agile methods with a testing slant > www.exampler.com, www.exampler.com/blog, www.twitter.com/marick > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |