Hi, I have a Qt 5 application linking to OSG 3.2.1 and osgEarth 2.5.0. I get an exception, shown below, if I include a call to osgDB::readNodeFile(). Depending on where I put this call (before or after my QApplication instance), it will "eat" some of my menus and move some menus around. I also see this when running the osgearth_qt application.
The osgDB::readNodeFile() call is the only OSG function call my application makes (I'm just starting development). If I take this out, I don't get the exception and my application behaves normally. Here's the exception: 2014-06-12 15:16:43.238 MYAPP[94446:507] _createMenuRef called with existing principal MenuRef already associated with menu 2014-06-12 15:16:43.241 MYAPP[94446:507] ( 0 CoreFoundation 0x00007fff9445e25c __exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff94c4fe75 objc_exception_throw + 43 2 CoreFoundation 0x00007fff9445e10c +[NSException raise:format:] + 204 3 AppKit 0x00007fff880dad14 -[NSCarbonMenuImpl _createMenuRef] + 62 4 AppKit 0x00007fff880da6ea -[NSCarbonMenuImpl _instantiateCarbonMenu] + 143 5 AppKit 0x00007fff880d8eb2 -[NSApplication finishLaunching] + 876 6 AppKit 0x00007fff880d8813 -[NSApplication run] + 128 7 libqcocoa.dylib 0x000000010d71f854 _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2404 8 QtCore 0x00000001019c490d _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 381 9 QtCore 0x00000001019c7e57 _ZN16QCoreApplication4execEv + 359 10 MYAPPP 0x00000001000074e5 main + 613 11 MYAPPP 0x0000000100007274 start + 52 12 ??? 0x0000000000000001 0x0 + 1 ) ... Thank you! Cheers, Michael ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=59721#59721 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org