[MacRuby-devel] [MacRuby] #415: Crash with "Call result #2 has unhandled type" trying to display a window
MacRuby
ruby-noreply at macosforge.org
Tue Dec 22 09:08:27 PST 2009
#415: Crash with "Call result #2 has unhandled type" trying to display a window
-----------------------------------+----------------------------------------
Reporter: trejkaz@… | Owner: martinlagardette@…
Type: defect | Status: assigned
Priority: blocker | Milestone: MacRuby 0.5
Component: MacRuby | Keywords:
-----------------------------------+----------------------------------------
Changes (by martinlagardette@…):
* status: new => assigned
Comment:
Still investigating, but some comments:
I could reduce the code to the following:
{{{
framework 'Cocoa'
NSScreen.screens[0].visibleFrame
}}}
Using this also crashes:
{{{
framework 'Cocoa'
NSView.alloc.initWithFrame([0, 0, 10, 10]).frame
}}}
So apparently, the issue happens when NSRect is returned during 32 bits
execution.
On 64 bits, NSRect is aliased to CGRect, and CGFloats are doubles, instead
of floats.
The generated IR is a little different.
--
Ticket URL: <http://www.macruby.org/trac/ticket/415#comment:3>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list