Irrlicht Mac OS X crash

195 Views Asked by At

I'm trying to get Irrlicht running on Mac OS X, but when I try to run the "Demo" project, I see a screen with some options, but as soon as I click something, I get a lldb error for the following line of code:

[Window setIsVisible:FALSE];

It's line 554 of file CllrDeviceMacOSX.mm, and it gives this error in about every example I try to run

My system:

  • MacBook Pro Retina late 2012
  • Mac OS X 10.9 Mavericks
1

There are 1 best solutions below

1
On

It appears that the NSWindow object Window is being released before the call to [Window setIsVisible:FALSE];.

Looking at Apple's documentation (NSWindow isReleasedWhenClosed) this is the expected behaviour as by default NSWindow objects are automatically released when closed.

As a workaround add:

[Window setReleasedWhenClosed:FALSE];

after the Window = [[NSWindow alloc]..... calls in CllrDeviceMacOSX.mm (there are two of them). I do not know enough about Irrlicht to know if this is a valid fix.