PDA

View Full Version : QApplication::notify() everytime I start qt powered application on OS X



makokal
3rd August 2011, 18:22
Hey all,

I have a simulator(OpenRAVE) that uses qt,coin and SoQt for the GUI .On ubuntu everything works fine, but on os x I keep getting the error


Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called without an active exceptionAbort trap: 6


Initially I thought its just on Qt 4.7, but I have also tried re-compiling the app with 4.8 and 4.6 and get the same error. If anybody has experience with this please share any means of resolving it.

Here is the full error log


2011-08-03 19:03:30.224 openrave[61205:2e03] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-833.1/Misc.subproj/NSUndoManager.m:324
2011-08-03 19:03:30.291 openrave[61205:2e03] +[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.
2011-08-03 19:03:30.544 openrave[61205:2e03] (
0 CoreFoundation 0x00007fff89c20986 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8af6bd5e objc_exception_throw + 43
2 CoreFoundation 0x00007fff89c207ba +[NSException raise:format:arguments:] + 106
3 Foundation 0x00007fff9573d14f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:descr iption:] + 169
4 Foundation 0x00007fff956ac35c +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 144
5 AppKit 0x00007fff8e22e454 -[NSApplication run] + 589
6 QtGui 0x000000011ba92750 _ZN19QEventDispatcherMac13processEventsE6QFlagsIN1 0QEventLoop17ProcessEventsFlagEE + 1824
7 QtCore 0x000000011c857664 _ZN10QEventLoop13processEventsE6QFlagsINS_17Proces sEventsFlagEE + 68
8 QtCore 0x000000011c857a14 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFla gEE + 324
9 QtCore 0x000000011c85a90c _ZN16QCoreApplication4execEv + 188
10 libqtcoinrave.dylib 0x000000011ab58486 _ZN12QtCoinViewer4mainEb + 110
11 libqtcoinrave.dylib 0x000000011ab58403 _ZThn40_N12QtCoinViewer4mainEb + 51
12 openrave 0x000000010fcf07aa _Z18MainOpenRAVEThreadv + 5738
13 openrave 0x000000010fcfec3f _ZN5boost3_bi5list0clIPFvvES1_EEvNS0_4typeIvEERT_R T0_i + 45
14 openrave 0x000000010fcfeca2 _ZN5boost3_bi6bind_tIvPFvvENS0_5list0EEclEv + 92
15 openrave 0x000000010fcfeccd _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvPFvv ENS2_5list0EEEE3runEv + 37
16 libboost_thread-mt.dylib 0x000000010fd91460 thread_proxy + 160
17 libsystem_c.dylib 0x00007fff89d9f8bf _pthread_start + 335
18 libsystem_c.dylib 0x00007fff89da2b75 thread_start + 13
)
2011-08-03 19:03:30.555 openrave[61205:2e03] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-833.1/Misc.subproj/NSUndoManager.m:324
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called without an active exceptionAbort trap: 6