Black painting artifacts overall on RHEL 7.9

Questions about YourKit Java Profiler
Post Reply
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

Black painting artifacts overall on RHEL 7.9

Post by Andrei.L »

We've migrated from RHEL 7.4 to RHEL 7.9 (same hardware underneath) and see crazy painting issues with same Yourkit instance we've used before.
We've identified Swing 2D renderer as problematic and -Dsun.java2d.opengl=false in the ~/.yjp/ui.ini fixes the problem, but ideally we would have a Yourkit version working out of the box.

Java / Yourkit version is exact same.
We run RHEL with native (not open source) Nvidia driver, and most of us are using tigervnc to connect to the workstation.
I've added some data below, please ask if you need more.

RHEL 7.4
rpm -qa | grep nvidia
acm-nvidia-74.8.0-2.el7.git_45b7f53.el7.x86_64

rpm -qa | sort | grep tigervnc
tigervnc-1.8.0-5.el7.x86_64
tigervnc-icons-1.8.0-5.el7.noarch
tigervnc-license-1.8.0-5.el7.noarch
tigervnc-server-1.8.0-5.el7.x86_64
tigervnc-server-minimal-1.8.0-5.el7.x86_64
tigervnc-server-module-1.8.0-5.el7.x86_64

RHEL 7.9
rpm -qa | grep nvidia
acm-nvidia-79.2.1-1.git_c64ed57.el7.x86_64

rpm -qa | sort | grep tigervnc
tigervnc-1.8.0-21.el7.x86_64
tigervnc-icons-1.8.0-21.el7.noarch
tigervnc-license-1.8.0-21.el7.noarch
tigervnc-server-1.8.0-21.el7.x86_64
tigervnc-server-minimal-1.8.0-21.el7.x86_64
tigervnc-server-module-1.8.0-22.el7.x86_64

Original RHEL 7.4 log

Code: Select all

com.yourkit.Main1: Starting...
com.yourkit.Main1: Number of args=4
com.yourkit.Main1: arg=-ideport=39991
com.yourkit.Main1: arg=-agentport=10001
com.yourkit.Main1: arg=-sessionid=248791911633542
com.yourkit.Main1: arg=-snapshotdir=/home/aloskuto/Snapshots
com.yourkit.Main1: http.agent=YourKit-Java-Profiler/2021.3.231 (Linux amd64 3.10.0-862.3.2.el7.x86_64)
com.yourkit.ak.gh: no update scheduled - nothing to do
com.yourkit.Main1: oomeDumperStatus: 1
com.yourkit.ak.z.e: sun.java2d.opengl=true
com.yourkit.ak.z.e: awt.useSystemAAFontSettings=lcd
com.yourkit.ak.z.e: sun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
com.yourkit.d.aw: Search for running instance; agentPort=10001
com.yourkit.d.aw: No running instances were found. Start new one.
com.yourkit.ak.z.a.d: Cannot detect Xft/DPI; fallback to default 96
com.yourkit.ak.z.a.d: gnome.Xft/DPI=98304
com.yourkit.d.ay: Background saving has been started
com.yourkit.ak.af.a: JVM UI scale enabled=false
com.yourkit.ak.af.a: JVM UI scale=1
com.yourkit.ak.af.a: System UI scale=1.0
com.yourkit.ak.af.a: Font scale=1.3333333333333333
com.yourkit.ak.af.a: Primary font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Menu font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Found theme=BRIGHT
com.yourkit.ak.af.a: Scaled primary font=java.awt.Font[family=Dialog,name=Sans Serif,style=plain,size=13]
com.yourkit.ak.af.a: Scaled menu font=java.awt.Font[family=Dialog,name=Sans Serif,style=plain,size=13]
com.yourkit.ak.af.a: Found theme=BRIGHT
Updated to RHEL 7.9: black rectangles everywhere, working not possible

Code: Select all

com.yourkit.Main1: Starting...
com.yourkit.Main1: Number of args=4
com.yourkit.Main1: arg=-ideport=33775
com.yourkit.Main1: arg=-agentport=10001
com.yourkit.Main1: arg=-sessionid=28043479915217
com.yourkit.Main1: arg=-snapshotdir=/home/aloskuto/Snapshots
com.yourkit.Main1: http.agent=YourKit-Java-Profiler/2021.3.231 (Linux amd64 3.10.0-1160.el7.x86_64)
com.yourkit.ak.gh: no update scheduled - nothing to do
com.yourkit.Main1: oomeDumperStatus: 1
com.yourkit.ak.z.e: sun.java2d.opengl=true
com.yourkit.ak.z.e: awt.useSystemAAFontSettings=lcd
com.yourkit.ak.z.e: sun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
com.yourkit.d.aw: Search for running instance; agentPort=10001
com.yourkit.d.aw: No running instances were found. Start new one.
com.yourkit.ak.z.a.d: Cannot detect Xft/DPI; fallback to default 96
com.yourkit.ak.z.a.d: gnome.Xft/DPI=98304
com.yourkit.d.ay: Background saving has been started
com.yourkit.ak.af.a: JVM UI scale enabled=false
com.yourkit.ak.af.a: JVM UI scale=1
com.yourkit.ak.af.a: System UI scale=1.0
com.yourkit.ak.af.a: Font scale=1.3333333333333333
com.yourkit.ak.af.a: Primary font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Menu font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Found theme=BRIGHT
Still RHEL 7.9 version but with manually added -Dsun.java2d.opengl=false option

Code: Select all

com.yourkit.Main1: Starting...
com.yourkit.Main1: Number of args=4
com.yourkit.Main1: arg=-ideport=34790
com.yourkit.Main1: arg=-agentport=10001
com.yourkit.Main1: arg=-sessionid=271151514285877
com.yourkit.Main1: arg=-snapshotdir=/home/aloskuto/Snapshots
com.yourkit.Main1: http.agent=YourKit-Java-Profiler/2021.3.231 (Linux amd64 3.10.0-1160.el7.x86_64)
com.yourkit.ak.gh: no update scheduled - nothing to do
com.yourkit.Main1: oomeDumperStatus: 1
com.yourkit.ak.z.e: sun.java2d.opengl=false
com.yourkit.ak.z.e: awt.useSystemAAFontSettings=lcd
com.yourkit.ak.z.e: sun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine
com.yourkit.d.aw: Search for running instance; agentPort=10001
com.yourkit.d.aw: No running instances were found. Start new one.
com.yourkit.ak.z.a.d: Cannot detect Xft/DPI; fallback to default 96
com.yourkit.ak.z.a.d: gnome.Xft/DPI=98304
com.yourkit.d.ay: Background saving has been started
com.yourkit.ak.af.a: JVM UI scale enabled=false
com.yourkit.ak.af.a: JVM UI scale=1
com.yourkit.ak.af.a: System UI scale=1.0
com.yourkit.ak.af.a: Font scale=1.3333333333333333
com.yourkit.ak.af.a: Primary font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Menu font=javax.swing.plaf.FontUIResource[family=Dialog,name=Sans Serif,style=plain,size=10]
com.yourkit.ak.af.a: Found theme=BRIGHT
com.yourkit.ak.af.a: Scaled primary font=java.awt.Font[family=Dialog,name=Sans Serif,style=plain,size=13]
com.yourkit.ak.af.a: Scaled menu font=java.awt.Font[family=Dialog,name=Sans Serif,style=plain,size=13]
com.yourkit.ak.af.a: Found theme=BRIGHT
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Black painting artifacts overall on RHEL 7.9

Post by Vladimir Kondratyev »

Which version are using? "-Dsun.java2d.opengl=false" is a default option for v 2021.11
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

Re: Black painting artifacts overall on RHEL 7.9

Post by Andrei.L »

Vladimir Kondratyev wrote: Tue Feb 01, 2022 5:12 pm Which version are using? "-Dsun.java2d.opengl=false" is a default option for v 2021.11
YourKit-Java-Profiler/2021.3.231

So the problem is known?
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Black painting artifacts overall on RHEL 7.9

Post by Vladimir Kondratyev »

YourKit-Java-Profiler/2021.3.231
This is unsupported version.
So the problem is known?
Yes, we've discovered that in spite of great performance boost, enabling of OpenGL might cause "black or pink screen" issues on some Linux configurations, that is why it was disabled.
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

Re: Black painting artifacts overall on RHEL 7.9

Post by Andrei.L »

OK, thanks. So our workaround was the final solution in YK. Good to know.
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: Black painting artifacts overall on RHEL 7.9

Post by Vladimir Kondratyev »

Just an update: sometime "-Dsun.java2d.xrender=false" is also required, when Windows RemoteDesktop is used to connect to Linux box. See https://www.yourkit.com/docs/kb/ui_rendering.jsp
Andrei.L
Posts: 35
Joined: Thu Mar 12, 2009 5:23 am

Re: Black painting artifacts overall on RHEL 7.9

Post by Andrei.L »

Thanks for the pointer, we tried the second option and that didn't worked, but we also don't use Windows terminal.
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Black painting artifacts overall on RHEL 7.9

Post by Anton Katilin »

Post Reply