[MacRuby] #1409: Dispatch related crash in core data document app
#1409: Dispatch related crash in core data document app --------------------------------+------------------------------------------- Reporter: sas@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 0.11 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- I'm seeing a crash when using Dispatch::Queue to send a block with an argument: {{{ queue = Dispatch::Queue.new('myqueue') queue.async do @a.dispatch do |t| puts "handling #{t}" end end }}} to a method: {{{ class A def dispatch(&block) puts "dispatch" yield 'ret' end end }}} The crash usually occurs on the second submission of the block. There are a few things I tried to isolate this problem: - I've wired three buttons to different kinds of dispatch calls and labeled them for the results I get - I originally noticed the problem in my core data doc app. When trying to reduce the problem to a simple app, it disappeared. The project "Disp1" is the simple version where everything works, "Disp2" is the core data document app that exposes the problem. Version info: 10.7, Xcode 4.2, MR-0.11 (Oct-17) -- Ticket URL: <http://www.macruby.org/trac/ticket/1409> MacRuby <http://macruby.org/>
#1409: Dispatch related crash in core data document app --------------------------------+------------------------------------------- Reporter: sas@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 0.11 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by sas@…): Oops, I messed up the description. Here's what it should have looked like: - I've wired three buttons to different kinds of dispatch calls and labeled them for the results I get - I originally noticed the problem in my core data doc app. When trying to reduce the problem to a simple app, it disappeared. The project "Disp1" is the simple version where everything works, "Disp2" is the core data document app that exposes the problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/1409#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby