Summary: | macOS 14.0 JOGL freezes when opening other JFrame before JOGL frame | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Sibo Van Gool <sibo.vangool> |
Component: | awt | Assignee: | Sven Gothel <sgothel> |
Status: | UNCONFIRMED --- | ||
Severity: | major | CC: | gouessej |
Priority: | P4 | ||
Version: | 2.6.0 | ||
Hardware: | All | ||
OS: | macosx | ||
URL: | https://forum.jogamp.org/freeze-on-macos-Sonoma-td4043021.html | ||
Type: | DEFECT | SCM Refs: | |
Workaround: | --- | ||
Attachments: |
Test logs
threaddump-deadlock-awt-edt-setvisible01 |
Description
Sibo Van Gool
2023-11-22 21:45:05 CET
Taken from this discussion: https://forum.jogamp.org/freeze-on-macos-Sonoma-td4043021.html. The gilt on the gingerbread would consist in running the existing unit tests under Mac OS Sonoma, maybe some of them break. Thank you Sibo and Julien for handling. Earmarked for next version 2.6.0 (In reply to Julien Gouesse from comment #2) I'd be happy to help with that if you can guide me through the process. I was able to compile JOGL and Gluegen a while ago, so I think/hope I already have a bunch of the required tools set up to run the unit tests. Created attachment 890 [details]
threaddump-deadlock-awt-edt-setvisible01
On 2024-02-23 Harvey sent me the following information, slightly edited here: +++ Got a deadlock report from a JaamSim user on MacOS Sonoma and managed to get a thread dump from them. It looks like a deadlock in the AWT event thread related to setVisible around line 129, see attachment 890 [details]. You can see it running into the JOGL code to run things on the main thread and then waiting, but it's being run on the AWT Event thread which generally brings things a a screaming halt after that. I'm not able to reproduce on my Mac (of course!) so this is all I have to go on for now, not sure if you've been considering if this is a bug in JOGL, or in the way it's being called...advice welcome if you have any, otherwise hopefully this provides some insight if/when you get around to bug 1478. +++ (In reply to Sven Gothel from comment #6) If you need me to test something, I'd be happy to help! If it's not a bug, but a bad JOGL init, then what would the correct init be in the SSCCE? Pierre Nugues asked me to post this here: I would like to confirm this bug on macOS that showed when I upgraded my system with Sonoma. I am using Corretto, but I could reproduce it with other versions of Oracle’s Java. I found a workaround that maybe could help understand it : Java freezes in the function getBestConfiguration() of: GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getBestConfiguration(template) Setting a breakpoint at getBestConfiguration() enables Java to stop freezing. I am using IntelliJ with their standard debugger. I have no explanation for this just that it works. @Sven @Julien, I think I have a working Gluegen/JOGL dev setup on my Mac. Is there any code you want me to run to help fix this issue? |