On OS X, i tried to initialize the Irrlicht engine (The "Hello World" sample actually) like this :
Code: Select all
#ifdef _IRR_OSX_PLATFORM_
createDevice( video::EDT_OPENGL, dimension2d<s32>(1344, 1008), 16,
false, false, false, 0);
#else
...
GDB output :
Code: Select all
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x001bff5c in irr::CIrrDeviceMacOSX::setResize (this=0x7142b0, width=1344, height=988) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:310
310 getVideoDriver()->OnResize(core::dimension2d<s32>(width, height));
(gdb) bt
#0 0x001bff5c in irr::CIrrDeviceMacOSX::setResize (this=0x7142b0, width=1344, height=988) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:310
#1 0x001c3b86 in -[AppDelegate windowDidResize:] (self=0x71c470, _cmd=0x954c091c, aNotification=0x7191a0) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/AppDelegate.mm:53
#2 0x9553e64c in _nsnote_callback ()
#3 0x94d25aba in __CFXNotificationPost ()
#4 0x94d25d93 in _CFXNotificationPostNotification ()
#5 0x9553b7b0 in -[NSNotificationCenter postNotificationName:object:userInfo:] ()
#6 0x95544ff8 in -[NSNotificationCenter postNotificationName:object:] ()
#7 0x918a325a in -[NSWindow _setFrameCommon:display:stashSize:] ()
#8 0x918a2b52 in -[NSWindow setFrame:display:] ()
#9 0x918ac156 in -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] ()
#10 0x918abde8 in -[NSWindow orderWindow:relativeTo:] ()
#11 0x91873772 in -[NSWindow makeKeyAndOrderFront:] ()
#12 0x001bfac8 in irr::CIrrDeviceMacOSX::createWindow (this=0x7142b0) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:215
#13 0x001c1c9b in irr::CIrrDeviceMacOSX::CIrrDeviceMacOSX (this=0x7142b0, param=@0xbfffe490) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:103
#14 0x001c1dac in irr::createDeviceEx (param=@0xbfffe490) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:700
#15 0x0015a511 in irr::createDevice (driverType=irr::video::EDT_OPENGL, windowSize=@0xbfffe4fc, bits=32, fullscreen=false, stencilbuffer=false, vsync=false, res=0x0) at /Users/milipili/Projects/irrlicht_1.4.1/source/Irrlicht/MacOSX/../Irrlicht.cpp:39
#16 0x00016b17 in Yuni::Private::Gfx::Irrlicht::Engine::initialize (this=0x31da60, dc=@0xbfffe55c) at /Users/milipili/Projects/yuni/trunk/src/yuni/private/gfx3d/irrlicht/irr.engine.cpp:75
#17 0x000163ca in Yuni::Gfx::Engine::initialize (this=0x31dbe0, dc=@0xbfffe59c) at /Users/milipili/Projects/yuni/trunk/src/yuni/gfx/engine.cpp:69
#18 0x00014b7f in Yuni::Application::Gfx3D::initializeEngine (this=0xbfffe5f8) at /Users/milipili/Projects/yuni/trunk/src/yuni/application/gfx3d.cpp:26
Code: Select all
Name: <Unknown>, guid:4d8863532f4b98c831bd82e67b0be608, primary, Hardware-Accelerated
. 1680x1050 (32Bits)
. 1600x1000 (32Bits)
. 1344x1008 (32Bits)
. 1344x840 (32Bits)
. 1280x960 (32Bits)
. 1280x800 (32Bits)
. 1024x768 (32Bits)
. 1024x640 (32Bits)
. 800x640 (32Bits)
. 800x640 (32Bits)
. 640x640 (32Bits)
Any idea ?