On Fri, 26 Sep 2025 07:04:57 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> Test used to timeout even though it seems the test passed..Increased the 
>> timeout to a safe value as sometimes it shows elapsed time to timeout > 
>> 300secs in macOS in CI and also ensured the wait-time for child process to 
>> execute the test is not been waiting endlessly.
>> Also ensured the original display mode is resetted after the test to prevent 
>> affecting following tests.
>> 
>> Tried 100 iterations of the fix on all platforms which is ok
>
> Prasanta Sadhukhan has updated the pull request with a new target base due to 
> a merge or a rebase. The pull request now contains eight commits:
> 
>  - PL updation
>  - Merge master
>  - Added mac ARM JBS
>  - PL updation
>  - Merge branch 'master' of https://git.openjdk.java.net/jdk into JDK-8273617
>  - Remove displayMode reset
>  - EDT fix, timeout reduced
>  - 8273617: UninitializedDisplayModeChangeTest.java times out on macOS 12

Something is still not right and I don't think it is just a test problem.

Both the old and new version of UninitializedDisplayModeChangeTest hang for me.
And they also hang If I run DisplayModeChanger directly.
In all cases it looks like it a call to setNativeDisplayMode isn't returning,
This corresponds to test code line
            EventQueue.invokeAndWait(() -> gd.setFullScreenWindow(null));

I'm on an M4 Mac Pro running 15.7.1, but I'm using my external display.


Display Changer stdout output >    java.lang.Thread.State: RUNNABLE
Display Changer stdout output >         at 
sun.awt.CGraphicsDevice.nativeSetDisplayMode(java.desktop@25/Native Method)
Display Changer stdout output >         at 
sun.awt.CGraphicsDevice.setDisplayMode(java.desktop@25/CGraphicsDevice.java:314)
Display Changer stdout output >         at 
sun.awt.CGraphicsDevice.setFullScreenWindow(java.desktop@25/CGraphicsDevice.java:238)
Display Changer stdout output >         - locked <0x000000043f886168> (a 
sun.awt.CGraphicsDevice)
Display Changer stdout output >         at 
DisplayModeChanger.lambda$main$1(DisplayModeChanger.java:63)
Display Changer stdout output >         at 
DisplayModeChanger$$Lambda/0x0000078001040438.run(Unknown Source)
Display Changer stdout output >         at 
java.awt.event.InvocationEvent.dispatch(java.desktop@25/InvocationEvent.java:313)
Display Changer stdout output >         at 
java.awt.EventQueue.dispatchEventImpl(java.desktop@25/EventQueue.java:723)
Display Changer stdout output >         at 
java.awt.EventQueue.dispatchEvent(java.desktop@25/EventQueue.java:702)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.pumpOneEventForFilters(java.desktop@25/EventDispatchThread.java:203)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.pumpEventsForFilter(java.desktop@25/EventDispatchThread.java:124)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(java.desktop@25/EventDispatchThread.java:113)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.pumpEvents(java.desktop@25/EventDispatchThread.java:109)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.pumpEvents(java.desktop@25/EventDispatchThread.java:101)
Display Changer stdout output >         at 
java.awt.EventDispatchThread.run(java.desktop@25/EventDispatchThread.java:90)
Display Changer stdout output >

-------------

PR Comment: https://git.openjdk.org/jdk/pull/27365#issuecomment-3412659441

Reply via email to