<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi Reto,<br>
<br>
Thank you for the testcase. I was able to reproduce the problem
using it.<br>
I have opened <a class="issue-link" data-issue-key="JDK-8176490"
href="https://bugs.openjdk.java.net/browse/JDK-8176490"
id="key-val" rel="4917944">JDK-8176490</a> for this issue. Will
look into this.<br>
<br>
Thanks,<br>
Dmitry<br>
<div class="moz-cite-prefix">On 09/03/2017 16:41, Reto Merz wrote:<br>
</div>
<blockquote
cite="mid:0854815e-f923-40e6-86af-3a195dd2753f@abacus.ch"
type="cite">
<pre wrap="">Hi Dmitry,
I was able to create a demo to reproduce it.
It seems that the issue is triggered by Windows#setEnabled(boolean).
Steps to reproduce it with attached WindowTest.java,
maybe you need 2-3 attempts:
(0. start the demo program)
1. click on the button in the first window ; a second window opens
2. click on the button in the second dialog ; a third windows open
3. move the third window via mouse and click on the label
4. wait 9 seconds ; a fourth windows is opened (the fourth windows should be opened behind the third)
5. try to close the fourth
-> EDT is blocked
Attached threads_report.txt is a full thread dump after step 5.
FYI:
I just re-checked the logs, the original integration test was never run on macOS with a older JDK 9.
The original integration passes with:
- JDK 8 u152 EA on Windows and macOS
- JDK 9 b157 EA on Windows ; macOS not tested
- JDK 9 b159 EA on Windows ; hangs on macOS as described
Thanks
Reto
</pre>
<blockquote type="cite">
<pre wrap="">-----Ursprüngliche Nachricht-----
Von: dmitry markov [<a class="moz-txt-link-freetext" href="mailto:dmitry.markov@oracle.com">mailto:dmitry.markov@oracle.com</a>]
Gesendet: Donnerstag, 9. März 2017 08:52
An: Reto Merz
Cc: <a class="moz-txt-link-abbreviated" href="mailto:awt-dev@openjdk.java.net">awt-dev@openjdk.java.net</a>
Betreff: Re: <AWT Dev> JDK 9 b159 -
sun.lwawt.macosx.CWrapper$NSWindow.isZoomed never returns
Hi Reto,
I have no seen such hang before. Most likely this is a new issue.
Could you provide us with a test case, (i.e. reproducer), please? Once
we have a reproducer, I will open a bug for this.
Thanks,
Dmitry
On 07/03/2017 19:52, Reto Merz wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
We have a integration test which hangs with Java 9 b159 under macOS
10.12.3.
It does not hang with b157 and also works with Windows OS & b159.
We can reproduce it always with our integration test.
I want to ask if this is already a known regression?
Otherwise I can try to provide a simple test case to reproduce it but
this would take some time.
The relevant thread stacks are:
"AWT-EventQueue-0" #13 prio=6 os_prio=31 tid=0x00007fa86ea7e000
nid=0xd203 runnable [0x0000700010632000]
java.lang.Thread.State: RUNNABLE
at
sun.lwawt.macosx.CWrapper$NSWindow.isZoomed(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/Native
</pre>
<blockquote type="cite">
<pre wrap="">Method)
at
sun.lwawt.macosx.CPlatformWindow.isMaximized(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/CPlatformWindow.java:509)
</pre>
<blockquote type="cite">
<pre wrap=""> at
sun.lwawt.macosx.CPlatformWindow.setVisible(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/CPlatformWindow.java:558)
</pre>
<blockquote type="cite">
<pre wrap=""> at
sun.lwawt.LWWindowPeer.setVisibleImpl(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/LWWindowPeer.java:253)
</pre>
<blockquote type="cite">
<pre wrap=""> at
sun.lwawt.LWComponentPeer.setVisible(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/LWComponentPeer.java:763)
</pre>
<blockquote type="cite">
<pre wrap=""> at java.awt.Component.hide(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Component.java:1705">java.desktop@9-ea/Component.java:1705</a>)
- locked <0x00000007a48a2c20> (a java.awt.Component$AWTTreeLock)
at java.awt.Window.hide(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Window.java:1118">java.desktop@9-ea/Window.java:1118</a>)
at java.awt.Dialog.hide(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Dialog.java:1152">java.desktop@9-ea/Dialog.java:1152</a>)
at java.awt.Window.hide(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Window.java:1110">java.desktop@9-ea/Window.java:1110</a>)
- locked <0x00000007a802e218> (a java.util.Vector)
at java.awt.Dialog.hide(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Dialog.java:1152">java.desktop@9-ea/Dialog.java:1152</a>)
at java.awt.Component.show(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/Component.java:1670)
</pre>
<blockquote type="cite">
<pre wrap=""> at
java.awt.Component.setVisible(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/Component.java:1615)
</pre>
<blockquote type="cite">
<pre wrap=""> at java.awt.Window.setVisible(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Window.java:1017">java.desktop@9-ea/Window.java:1017</a>)
at java.awt.Dialog.setVisible(<a class="moz-txt-link-abbreviated" href="mailto:java.desktop@9-ea/Dialog.java:1005">java.desktop@9-ea/Dialog.java:1005</a>)
"AppKit Thread" #11 daemon prio=5 os_prio=31 tid=0x00007fa87076b000
nid=0x307 waiting for monitor entry [0x00007fff5e87e000]
java.lang.Thread.State: BLOCKED (on object monitor)
at
java.awt.Window.getOwnedWindows_NoClientCode(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/Window.java:1478)
</pre>
<blockquote type="cite">
<pre wrap=""> - waiting to lock <0x00000007a802e218> (a java.util.Vector)
at
java.awt.Window$1.getOwnedWindows(java.desktop@9-
</pre>
</blockquote>
<pre wrap="">ea/Window.java:4127)
</pre>
<blockquote type="cite">
<pre wrap=""> at
</pre>
</blockquote>
<pre wrap="">sun.lwawt.macosx.CPlatformWindow.orderAboveSiblingsImpl(java.desktop
@9-ea/CPlatformWindow.java:1153)
</pre>
<blockquote type="cite">
<pre wrap=""> at
</pre>
</blockquote>
<pre wrap="">sun.lwawt.macosx.CPlatformWindow.orderAboveSiblings(java.desktop@9-
ea/CPlatformWindow.java:1118)
</pre>
<blockquote type="cite">
<pre wrap=""> at
</pre>
</blockquote>
<pre wrap="">sun.lwawt.macosx.CPlatformWindow.windowDidBecomeMain(java.desktop
@9-ea/CPlatformWindow.java:1182)
</pre>
<blockquote type="cite">
<pre wrap="">
Thanks
Reto
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
</body>
</html>