Re: OS/X Java native bug
Re: OS/X Java native bug
- Subject: Re: OS/X Java native bug
- From: Alex Zavatone via Cocoa-dev <email@hidden>
- Date: Sun, 19 Mar 2023 09:37:45 -0600
So while I am waiting for my coffee to actually start working, which approaches
do we think make sense here?
When starting up, check if thread == main and if so, do one thing, else do the
other?
If this is correct, what would each option be?
Is this an appropriate summary or a vast oversimplification?
Cheers,
Alex Zavatone
Sent from my iPhone
> On 17 Mar 2023, at 7:21, Michael Hall via Cocoa-dev
> <email@hidden> wrote:
>
>
>
>> On Mar 17, 2023, at 7:49 AM, Alan Snyder <email@hidden> wrote:
>>
>> block() means invoke the block
>>
>>>> On Mar 17, 2023, at 5:34 AM, Michael Hall via Cocoa-dev
>>>> <email@hidden> wrote:
>>>
>>>
>>>
>>>> On Mar 17, 2023, at 6:51 AM, Michael Hall <email@hidden> wrote:
>>>>
>>>>>
>>>>
>>>> Sorry, I looked at your link and am still not sure this is correct if you
>>>> are already on the main thread.
>>>>
>>>
>
> Alan,
>
> Sorry for not believing you the first time.
>
> Semantics. Not what I usually think of with ‘block’.
>
> Sort of a difficult thing to pin down. What I first saw after the hang
> running a Panama early access for the jdk…
>
> "AWT-EventQueue-0" #14 prio=6 os_prio=31 cpu=16.71ms elapsed=5.56s
> tid=0x00007f7fdc833400 nid=26883 runnable [0x0000700003baf000]
> java.lang.Thread.State: RUNNABLE
> at
> sun.java2d.opengl.CGLGraphicsConfig.getCGLConfigInfo(java.desktop@19-panama/Native
> Method)
> at
> sun.java2d.opengl.CGLGraphicsConfig.getConfig(java.desktop@19-panama/CGLGraphicsConfig.java:137)
> at
> sun.awt.CGraphicsDevice.<init>(java.desktop@19-panama/CGraphicsDevice.java:99)
> at
> sun.awt.CGraphicsEnvironment.initDevices(java.desktop@19-panama/CGraphicsEnvironment.java:169)
> - locked <0x000000070fc0f658> (a sun.awt.CGraphicsEnvironment)
>
> I went to a current jdk 19 to maven build some of Martin’s project last night
> which still hangs but shows…
>
> "AWT-EventQueue-0" #21 [27907] prio=6 os_prio=31 cpu=13.40ms elapsed=3.81s
> tid=0x00007fdb3785de00 nid=27907 runnable [0x00007000017f5000]
> java.lang.Thread.State: RUNNABLE
> at
> sun.java2d.metal.MTLGraphicsConfig.tryLoadMetalLibrary(java.desktop@19.0.2/Native
> Method)
> at
> sun.java2d.metal.MTLGraphicsConfig.getConfig(java.desktop@19.0.2/MTLGraphicsConfig.java:140)
> at
> sun.awt.CGraphicsDevice.<init>(java.desktop@19.0.2/CGraphicsDevice.java:78)
> at
> sun.awt.CGraphicsEnvironment.initDevices(java.desktop@19.0.2/CGraphicsEnvironment.java:169)
> - locked <0x000000070fcf11d8> (a sun.awt.CGraphicsEnvironment)
>
> Different path same result.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden