JVM hang with Swing and macOS
Michael Hall
mik3hall at gmail.com
Tue May 23 11:25:16 UTC 2023
> On May 23, 2023, at 5:54 AM, Martin Pernollet <martin.pernollet at protonmail.com> wrote:
>
> Hi Philip,
>
> Thank you a lot for these helpful clarifications.
>
> You are right, I definitely need to jump on a dedicated OS thread. It is a pity the -XstartOnFirstThread does not do it.
>
> We may probably use JOGL's OSXUtil class that does a good job at handling this already. The only limitation is that getting OSXUtil requires depending on all JOGL which additionally requires tweaks to avoid hangs and the like.
>
> Regards,
>
> Martin
>
>
> ------- Original Message -------
> Le mardi 18 avril 2023 à 19:52, Philip Race <philip.race at oracle.com> a écrit :
>
Martin,
A little strange you are replying to this one from April but not mine from 2 days ago?
As I remember there were two show stopper issues. First OS/X OpenGL required -XstartOnFirstThread which didn’t work for Swing applications, and, Apple was discontinuing OpenGL support in favor of their own Metal API’s?
In my post I mentioned that using a Mesa offscreen build I was able to run the demo creating an offscreen image and saving it to disk.
As I remember your goal was to create an offscreen image and then copy it over to Swing. So, that’s done?
I changed the Panama API’s you used from 19 to 20. Which you will have to do sometime?
Other than that for OS/X supporting OpenGL api’s going forward for Swing, or probably JavaFX, what is wrong with what I have? Maybe I can fix it.
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20230523/b61a5e85/attachment.htm>
More information about the client-libs-dev
mailing list