Assertion failure in +[NSUndoManager _endTopLevelGroupings],
See original GitHub issueWhen I try the demos I get errors like:
2019-10-08 22:01:32.831 java[90338:13656789] WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future. 2019-10-08 22:01:32.831 java[90338:13656789] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1349.91/Misc.subproj/NSUndoManager.m:363 2019-10-08 22:01:32.832 java[90338:13656789] *** Assertion failure in +[NSUndoManager _endTopLevelGroupings], /Library/Caches/com.apple.xbs/Sources/Foundation/Foundation-1349.91/Misc.subproj/NSUndoManager.m:363 2019-10-08 22:01:32.833 java[90338:13656789] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread.’ *** First throw call stack: ( 0 CoreFoundation 0x00007fff8425a57b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x00007fff994b91da objc_exception_throw + 48 2 CoreFoundation 0x00007fff8425f132 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fff85cc6be0 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195 4 Foundation 0x00007fff85c51093 +[NSUndoManager(NSPrivate) _endTopLevelGroupings] + 170 5 AppKit 0x00007fff81cbc4ed -[NSApplication run] + 1200 6 libglfw.dylib 0x0000000119228a65 libglfw.dylib + 68197 7 libglfw.dylib 0x0000000119222455 libglfw.dylib + 42069 8 ??? 0x000000011a112667 0x0 + 4732298855 9 ??? 0x000000011a101dd0 0x0 + 4732231120 10 ??? 0x000000011a101dd0 0x0 + 4732231120 11 ??? 0x000000011a101dd0 0x0 + 4732231120 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6
This is either after executing:
./mvnw package
java -jar target/lwjgl3-demos.jar
or:
./mvnw package -Dclass=opengl.UniformArrayDemo
java -cp target/lwjgl3-demos.jar org.lwjgl.demo.opengl.UniformArrayDemo
OSX 10.12.6
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Mac OS requires the use of the
-XstartOnFirstThread
JVM argument, so:java -XstartOnFirstThread -jar target/lwjgl3-demos.jar
See: https://stackoverflow.com/questions/28149634/what-does-the-xstartonfirstthread-vm-argument-do-meanOk thanks, I think I will manage from here.