[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    Re: [OpenJDK 2D-Dev] Heads up : JDK 17 b19 through b22 will use Metal instead of OpenGL for Java 2D 
From:       Ajit Ghaisas <ajit.ghaisas () oracle ! com>
Date:       2021-05-17 7:44:17
Message-ID: 9D1C2D51-4C9A-48D0-906D-80AA595FDC37 () oracle ! com
[Download RAW message or body]

Hi,

   I have filed - https://bugs.openjdk.java.net/browse/JDK-8267226 \
<https://bugs.openjdk.java.net/browse/JDK-8267226> for the reported observation.  We \
will need a test program to see the issue.

Regards,
Ajit

> On 07-May-2021, at 3:34 AM, Philip Race <philip.race@oracle.com> wrote:
> 
> > I've only tried a couple of apps and only this test program has shown the \
> > problem.
> 
> Did you try to attach something ? the lists strip attachments.
> Sent it directly to me and I'll see if I can add it to a bug report.
> 
> -phil.
> 
> On 5/6/21 2:50 PM, Alan Snyder wrote:
> > 
> > > On May 6, 2021, at 1:45 PM, Philip Race <philip.race@oracle.com> wrote:
> > > 
> > > Alan,
> > > 
> > > I am not sure this is a known issue. We'll need a lot more details.
> > I figured you would. :-)
> > 
> > 
> > > What is your h+w and OS update ?
> > iMac 27 inch 2020 Radeon Pro 5500 XT 8 GB
> > 11.3.1
> > 
> > 
> > > Is this all windows in an app or just the first one ?
> > Definitely not just the first one, but not all of them, either.
> > 
> > 
> > > Does it matter what the window content is ?
> > It might. The app is a test program that can create any of 30 different kinds of \
> > windows on demand. 
> > So far, I've seen the problem in 11 kinds of windows but not in the others. No \
> > obvious pattern in the content. 
> > The problem is most likely to happen the first time a given window is shown, but \
> > it can also happen on later instances of the same kind of window. I just tried a \
> > new kind of window and it happened the first 3 times, but not the 4th, then about \
> > 50% of the time. I tried creating a different window about 25 times, and it \
> > happened on #1, #4, and #25. 
> > > Any app or some specific app ?
> > I've only tried a couple of apps and only this test program has shown the \
> > problem. 
> > 
> > 
> > > -phil.
> > > 
> > > 
> > > On 4/29/21 7:18 PM, Alan Snyder wrote:
> > > > I am seeing some unusual behavior (in b20) that I do not see using OpenGL (or \
> > > > using JDK 16). 
> > > > Sometimes when I open a new window, the window appears blank (except for the \
> > > > title bar) for about two seconds before the content appears. 
> > > > This behavior is not consistent. Opening another instance of the same window \
> > > > might be fast or slow. It happens with a variety of window classes. 
> > > > In JDK16 and using OpenGL, the content always appears immediately.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > > On Apr 23, 2021, at 1:13 PM, Philip Race <philip.race@oracle.com> wrote:
> > > > > 
> > > > > FYI to the wider community that may not subscribe to the client mailing \
> > > > > lists, nor appreciate too much cross-posting. 
> > > > > -phil.
> > > > > 
> > > > > 
> > > > > -------- Forwarded Message --------
> > > > > Subject: 	Heads up : JDK 17 b19 through b22 will use Metal instead of \
> > > > >                 OpenGL for Java 2D rendering on macOS.
> > > > > Date: 	Fri, 23 Apr 2021 13:10:46 -0700
> > > > > From: 	Philip Race <philip.race@oracle.com>
> > > > > To: 	2d-dev@openjdk.java.net <2d-dev@openjdk.java.net>
> > > > > CC: 	lanai-dev@openjdk.java.net, swing-dev@openjdk.java.net \
> > > > > <swing-dev@openjdk.java.net>, awt-dev@openjdk.java.net \
> > > > > <awt-dev@openjdk.java.net> 
> > > > > 
> > > > > 
> > > > > 
> > > > > Heads up to anyone who is testing JDK 17 for running apps on macOS.
> > > > > Starting with build 19 [1], JDK 17 for macOS is *temporarily* switched from \
> > > > > using OpenGL to using Apple's Metal API for Java 2D rendering. This should \
> > > > > be invisible to applications. We expect to revert this temporary switch in \
> > > > > JDK 17 build 23,meaning b22 will be the last build with Metal as default. 
> > > > > See JEP 382 [2] for more information about how Metal is used by JDK.
> > > > > 
> > > > > If you are running any kind of 2D / Swing/ AWT UI application on macOS, and \
> > > > > see any rendering related problems starting with JDK 17 b19, please do \
> > > > > report them to us at either the usual bug submission channel [3], or on the \
> > > > > 2d-dev@openjdk.java.net OpenJDK mailing list [4] Please be ready to provide \
> > > > > us with a test case and screen shots. 
> > > > > You may also set "-Dsun.java2d.opengl=true" to re-enable OpenGL - which  \
> > > > > implicitly disables Metal - to confirm that any problem you see is a Metal \
> > > > > related rendering glitch. 
> > > > > I will also forward this email to jdk-dev@openjdk.java.net
> > > > > 
> > > > > -Phil.
> > > > > 
> > > > > [1] https://jdk.java.net/17/
> > > > > [2] https://openjdk.java.net/jeps/382 <https://openjdk.java.net/jeps/382>
> > > > > [3] https://bugreport.java.com/bugreport/
> > > > > [4] https://mail.openjdk.java.net/mailman/listinfo/2d-dev
> > > > > 
> 


[Attachment #3 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html; \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div \
class="">&nbsp; &nbsp;I have filed -&nbsp;<a \
href="https://bugs.openjdk.java.net/browse/JDK-8267226" \
class="">https://bugs.openjdk.java.net/browse/JDK-8267226</a>&nbsp;for the reported \
observation.</div><div class="">&nbsp; &nbsp;We will need a test program to see the \
issue.</div><div class=""><br class=""></div><div class="">Regards,</div><div \
class="">Ajit</div><div class=""><div><br class=""><blockquote type="cite" \
class=""><div class="">On 07-May-2021, at 3:34 AM, Philip Race &lt;<a \
href="mailto:philip.race@oracle.com" class="">philip.race@oracle.com</a>&gt; \
wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">&gt; \
I've only tried a couple of apps and only this test program has shown the problem.<br \
class=""><br class="">Did you try to attach something ? the lists strip \
attachments.<br class="">Sent it directly to me and I'll see if I can add it to a bug \
report.<br class=""><br class="">-phil.<br class=""><br class="">On 5/6/21 2:50 PM, \
Alan Snyder wrote:<br class=""><blockquote type="cite" class=""><br \
class=""><blockquote type="cite" class="">On May 6, 2021, at 1:45 PM, Philip Race \
&lt;<a href="mailto:philip.race@oracle.com" class="">philip.race@oracle.com</a>&gt; \
wrote:<br class=""><br class="">Alan,<br class=""><br class="">I am not sure this is \
a known issue. We'll need a lot more details.<br class=""></blockquote>I figured you \
would. :-)<br class=""><br class=""><br class=""><blockquote type="cite" \
class="">What is your h+w and OS update ?<br class=""></blockquote>iMac 27 inch 2020 \
Radeon Pro 5500 XT 8 GB<br class="">11.3.1<br class=""><br class=""><br \
class=""><blockquote type="cite" class="">Is this all windows in an app or just the \
first one ?<br class=""></blockquote>Definitely not just the first one, but not all \
of them, either.<br class=""><br class=""><br class=""><blockquote type="cite" \
class="">Does it matter what the window content is ?<br class=""></blockquote>It \
might. The app is a test program that can create any of 30 different kinds of windows \
on demand.<br class=""><br class="">So far, I've seen the problem in 11 kinds of \
windows but not in the others. No obvious pattern in the content.<br class=""><br \
class="">The problem is most likely to happen the first time a given window is shown, \
but it can also happen on later instances of the same kind of window.<br class="">I \
just tried a new kind of window and it happened the first 3 times, but not the 4th, \
then about 50% of the time.<br class="">I tried creating a different window about 25 \
times, and it happened on #1, #4, and #25.<br class=""><br class=""><blockquote \
type="cite" class="">Any app or some specific app ?<br class=""></blockquote>I've \
only tried a couple of apps and only this test program has shown the problem.<br \
class=""><br class=""><br class=""><br class=""><blockquote type="cite" \
class="">-phil.<br class=""><br class=""><br class="">On 4/29/21 7:18 PM, Alan Snyder \
wrote:<br class=""><blockquote type="cite" class="">I am seeing some unusual behavior \
(in b20) that I do not see using OpenGL (or using JDK 16).<br class=""><br \
class="">Sometimes when I open a new window, the window appears blank (except for the \
title bar) for about two seconds before the content appears.<br class=""><br \
class="">This behavior is not consistent. Opening another instance of the same window \
might be fast or slow. It happens with a variety of window classes.<br class=""><br \
class="">In JDK16 and using OpenGL, the content always appears immediately.<br \
class=""><br class=""><br class=""><br class=""><br class=""><br class=""><blockquote \
type="cite" class="">On Apr 23, 2021, at 1:13 PM, Philip Race &lt;<a \
href="mailto:philip.race@oracle.com" class="">philip.race@oracle.com</a>&gt; \
wrote:<br class=""><br class="">FYI to the wider community that may not subscribe to \
the client mailing lists, nor appreciate too much cross-posting.<br class=""><br \
class="">-phil.<br class=""><br class=""><br class="">-------- Forwarded Message \
--------<br class="">Subject: <span class="Apple-tab-span" \
style="white-space:pre">	</span>Heads up : JDK 17 b19 through b22 will use Metal \
instead of OpenGL for Java 2D rendering on macOS.<br class="">Date: <span \
class="Apple-tab-span" style="white-space:pre">	</span>Fri, 23 Apr 2021 13:10:46 \
-0700<br class="">From: <span class="Apple-tab-span" \
style="white-space:pre">	</span>Philip Race &lt;<a \
href="mailto:philip.race@oracle.com" class="">philip.race@oracle.com</a>&gt;<br \
class="">To: <span class="Apple-tab-span" style="white-space:pre">	</span><a \
href="mailto:2d-dev@openjdk.java.net" class="">2d-dev@openjdk.java.net</a> &lt;<a \
href="mailto:2d-dev@openjdk.java.net" class="">2d-dev@openjdk.java.net</a>&gt;<br \
class="">CC: <span class="Apple-tab-span" style="white-space:pre">	</span><a \
href="mailto:lanai-dev@openjdk.java.net" class="">lanai-dev@openjdk.java.net</a>, <a \
href="mailto:swing-dev@openjdk.java.net" class="">swing-dev@openjdk.java.net</a> \
&lt;<a href="mailto:swing-dev@openjdk.java.net" \
class="">swing-dev@openjdk.java.net</a>&gt;, <a \
href="mailto:awt-dev@openjdk.java.net" class="">awt-dev@openjdk.java.net</a> &lt;<a \
href="mailto:awt-dev@openjdk.java.net" class="">awt-dev@openjdk.java.net</a>&gt;<br \
class=""><br class=""><br class=""><br class=""><br class="">Heads up to anyone who \
is testing JDK 17 for running apps on macOS.<br class="">Starting with build 19 [1], \
JDK 17 for macOS is *temporarily* switched from using OpenGL<br class="">to using \
Apple's Metal API for Java 2D rendering. This should be invisible to applications.<br \
class="">We expect to revert this temporary switch in JDK 17 build 23,meaning b22 \
will be the last build with Metal as default.<br class=""><br class="">See JEP 382 \
[2] for more information about how Metal is used by JDK.<br class=""><br class="">If \
you are running any kind of 2D / Swing/ AWT UI application on macOS, and see any \
rendering related problems<br class="">starting with JDK 17 b19, please do report \
them to us at either the usual bug submission channel [3],<br class="">or on the <a \
href="mailto:2d-dev@openjdk.java.net" class="">2d-dev@openjdk.java.net</a> OpenJDK \
mailing list [4]<br class="">Please be ready to provide us with a test case and \
screen shots.<br class=""><br class="">You may also set "-Dsun.java2d.opengl=true" to \
re-enable OpenGL - which &nbsp;implicitly disables Metal -<br class="">to confirm \
that any problem you see is a Metal related rendering glitch.<br class=""><br \
class="">I will also forward this email to <a href="mailto:jdk-dev@openjdk.java.net" \
class="">jdk-dev@openjdk.java.net</a><br class=""><br class="">-Phil.<br class=""><br \
class="">[1] <a href="https://jdk.java.net/17/" \
class="">https://jdk.java.net/17/</a><br class="">[2] <a \
href="https://openjdk.java.net/jeps/382" \
class="">https://openjdk.java.net/jeps/382</a> &lt;<a \
href="https://openjdk.java.net/jeps/382" \
class="">https://openjdk.java.net/jeps/382</a>&gt;<br class="">[3] <a \
href="https://bugreport.java.com/bugreport/" \
class="">https://bugreport.java.com/bugreport/</a><br class="">[4] <a \
href="https://mail.openjdk.java.net/mailman/listinfo/2d-dev" \
class="">https://mail.openjdk.java.net/mailman/listinfo/2d-dev</a><br class=""><br \
class=""></blockquote></blockquote></blockquote></blockquote><br \
class=""></div></div></blockquote></div><br class=""></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic