Open Thihup opened 3 years ago
@Thihup do you have a change to start a hello world Swing application? I assume this has nothing to do with Console in general but is a swing related issue.
Yes. I have already done that and the problem happens too. Sure it's not a JConsole issue, but it the easiest way to simulate the problem
It worked by setting the property: -Dsun.java2d.xrender=false
I have no idea how JConsole handles system out. Maybe you can see an error when just starting a small swing app from the shell. I assume this is somehow related to native rendering. Therefore information about the OS would be good.
The JConsole don't show any error at the console starting with java sun.tools.jconsole.JConsole
or java -m jdk.jconsole/sun.tools.jconsole.JConsole
.
However, I've got some info. The JDK 11+25 was the first build that the JConsole stopped working correctly, it only showed a gray window. At 11.0.5, it started to show this yellow screen.
I have found some issues related to this: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8204931 https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8214579 https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8227921
I've found out that usually using -Dsun.java2d.opengl=true
can make it more usable. Using -Dsun.java2d.xrender=false
it very slow, unfortunately.
Switching the x11vnc color depth from 16 to 24 solved the problem for me when using jdk-11
In WTS, switching the color depth to 16, 24 or 32 bits doesn't make a difference.
We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.
@Thihup - Is this resolved with 11.0.15 for you?
@karianna Unfortunately the issue still happens with Java 11.0.15 and 18.0.1
@Thihup Are you able to try:
Switching the x11vnc color depth from 16 to 24 solved the problem for me when using jdk-11
@karianna We tried that, but that made no difference at all 😞
I'm trying to migrate from JDK 10 to JDK 11. However, I've hit a problem with Swing/AWT. The minimal case is using a WTS to connect to a Linux server while forwarding X11 to open the JConsole in the WTS. With JDK 10, the JConsole opens normally. With JDK 11+, it shows a yellow screen.
The setup is the following: Linux (my machine) connects to Windows (WTS) connects to Linux (server with JConsole)
I think this is somehow related: https://github.com/AdoptOpenJDK/IcedTea-Web/issues/664
JDK <10
JDK 11+