JVM hang with Swing and macOS
Martin Pernollet
martin.pernollet at protonmail.com
Tue May 23 14:26:34 UTC 2023
Yep have been away from java and GL for some time hence answering oldest message first, but don't worry I will answer :)
That is awesome if you had MESA working on macOS. I am curious how you solved the issue with library loading.
If you bumped PanamaGL from Java 19 to 20 that is awesome. I was about to start this soon but I'd be glad to rather review your work through a PR on the gitlab projects. The more people able to commit to this code base, the best for this project.
I'll answer more in depth to your recent message.
Thank you a lot.
------- Original Message -------
Le mardi 23 mai 2023 à 13:25, Michael Hall <mik3hall at gmail.com> a écrit :
>> 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/427001d1/attachment.htm>
More information about the client-libs-dev
mailing list