Closed abuzar-rasool closed 2 years ago
I am experiencing the same issue
@hannesbraun can you please guide us on this? Same issue.
I was able to fix the issue by using this java JDK https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/OpenJDK8U-jre_x64_mac_hotspot_8u242b08.pkg
TL;DR
Use this old version of AdoptOpenJDK: https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u232-b09/OpenJDK8U-jdk_x64_mac_hotspot_8u232b09.tar.gz
Explanation of the problem
This is the part causing the crash:
2022-08-18 03:33:18.448 java[90635:588665] Apple AWT Internal Exception: NSWindow drag regions should only be invalidated on the Main Thread!
2022-08-18 03:33:18.448 java[90635:588665] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
This is an issue of JOGL, the library providing the OpenGL bindings. Sadly, it looks like this library is not maintained anymore. This issue got fixed but it didn't find its way into a release until now.
The workaround for me is to use an old JDK. In this case, I can recommend a specific old version of AdoptOpenJDK (JDK8u232 ,see the link above). At least, this is the version I'm using.
Previously, invalidating NSWindow drag regions outside of the Main Thread only caused a warning. That's the behavior you get with that old JDK version. Since JDK8u252, this throws an error and crashes the application. Without JOGL being maintained and publishing an update, there's no better "easy" fix that I know about right now. (Maybe, I'll have some time in the following months to find a long term solution for this as well as some other issues. We'll see...)
Edit Using JDK8u242 (as suggested by @hs05888) should indeed be equally good.
Thanks for the help @hannesbraun @hs05888. I was able to fix this by using JDK8u242.
I am unable to the run roboviz on mac os. Any solutions? Seems like an issue to me. TIA