简体   繁体   中英

Irrlicht Mac OS X crash

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM