[MacRuby] #1409: Dispatch related crash in core data document app
MacRuby
ruby-noreply at macosforge.org
Tue Oct 18 01:59:28 PDT 2011
#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/>
More information about the macruby-tickets
mailing list