question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Assertion failure in +[NSUndoManager _endTopLevelGroupings],

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
httpdigestcommented, Oct 8, 2019

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-mean

0reactions
clankill3rcommented, Oct 8, 2019

Ok thanks, I think I will manage from here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on run: Assertion failure in +[NSUndoManager ...
HI, Trying to run an analysis in CellProfiler 4.2.1 on Mac Monterey 12.0.1 spawns the workers, but no images are analysed.
Read more >
Assertion failure in NSUndoManager on macosx
I have run into an issue on macosx with a project that launches a separate thread to open a window (TGMainFrame) and run...
Read more >
LWJGL: Opening window causes program to crash
When I run it on my mac, it gives me this error: 2015-10-12 13:18:38.475 java[496:31875] *** Assertion failure in + [NSUndoManager _endTopLevelGroupings], ......
Read more >
Dash crashes by plotting a simple Matlplotlib - Dash Python
I am trying to plot a figure however dash crashes with the following message Running on http://127.0.0.1:8050/ Debugger PIN: 887-310-245 ...
Read more >
Can't Run Project in Eclipse on Mac
... Assertion failure in +[NSUndoManager _endTopLevelGroupings], /SourceCache/Foundation/Foundation-1153.20/Misc.subproj/NSUndoManager.m:340
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found