Re: freeze on macos Sonoma
Posted by vs3d on Oct 07, 2023; 1:42pm
URL: https://forum.jogamp.org/freeze-on-macos-Sonoma-tp4043021p4043024.html
Hello Julien,
Thank you for your responce. The fragment of code is listed below.
Actually, the issue cannot be reproduced repeatedly. This code (.getBestConfiguration(template)) freezes on the particular mac only. On my mac I wasn't able to reproduce that issue at all. Probably, the problem is with mac configuration or execution environment.
It would be nice if you can give me some tips what should be tested on the problematic mac to find out the source of the problem.
------------------------------------------------------------
final GraphicsEnvironment l_env = GraphicsEnvironment.getLocalGraphicsEnvironment();
final GraphicsDevice l_default = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
final GraphicsDevice[] l_devices = l_env.getScreenDevices();
final GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
template.setSceneAntialiasing(GraphicsConfigTemplate.PREFERRED);
try {
defaultGraphicsConfiguration = l_default.getBestConfiguration(template);
for (GraphicsDevice gd : l_devices) {
if (!gd.equals(l_default)) {
graphicsConfigurations.add(gd.getBestConfiguration(template));
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
--------------------------------------------------------------
private static GraphicsConfiguration defaultGraphicsConfiguration;
private static ArrayList<GraphicsConfiguration> graphicsConfigurations;
--------------------------------------------------------------
Thank you!