https://bz.apache.org/bugzilla/show_bug.cgi?id=64504

--- Comment #23 from Felix Schumacher <[email protected]> ---
tl;dr; Install java 11 on fedora or centos

Well, mint is a ubuntu/debian flavor and centos and fedora are redhat flavors.
So it seems that the packaged version of Java 8 for redhat based distributions
are problematic.

In my testing (I set up a fedora 32 system), the packaged version of Java
(1.8.0_242_b08) didn't even start. It failed with:

2020-09-26 08:23:22,758 INFO o.a.j.JMeter: Setting LAF to:
com.github.weisj.darklaf.DarkLaf:com.github.weisj.darklaf.theme.DarculaTheme
2020-09-26 08:23:27,323 ERROR o.a.j.JMeter: An error occurred:
java.lang.NullPointerException: null
        at
com.github.weisj.darklaf.task.FontDefaultsInitTask.setupRenderingHints(FontDefaultsInitTask.java:127)
~[darklaf-core-2.4.8.jar:2.4.8]
        at
com.github.weisj.darklaf.task.FontDefaultsInitTask.run(FontDefaultsInitTask.java:109)
~[darklaf-core-2.4.8.jar:2.4.8]
        at com.github.weisj.darklaf.DarkLaf.getDefaults(DarkLaf.java:133)
~[darklaf-core-2.4.8.jar:2.4.8]
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
~[?:1.8.0_242]
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
~[?:1.8.0_242]
        at org.apache.jorphan.gui.DynamicStyle.updateLaf(DynamicStyle.java:136)
~[jorphan.jar:5.3.1-SNAPSHOT]
        at org.apache.jorphan.gui.JFactory.refreshUI(JFactory.java:68)
~[jorphan.jar:5.3.1-SNAPSHOT]
        at
org.apache.jmeter.gui.action.LookAndFeelCommand.activateLookAndFeel(LookAndFeelCommand.java:221)
~[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at org.apache.jmeter.JMeter.startGui(JMeter.java:380)
~[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at org.apache.jmeter.JMeter.start(JMeter.java:555)
[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_242]
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_242]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_242]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
        at org.apache.jmeter.NewDriver.main(NewDriver.java:255)
[ApacheJMeter.jar:5.3.1-SNAPSHOT]

Even switching to System LAF doesn't help:

2020-09-27 12:01:36,249 INFO o.a.j.JMeter: Setting LAF to:
laf:javax.swing.plaf.metal.MetalLookAndFeel
2020-09-27 12:01:36,272 ERROR o.a.j.JMeter: An error occurred: 
java.awt.HeadlessException: null
        at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
~[?:1.8.0_242]
        at java.awt.Window.<init>(Window.java:536) ~[?:1.8.0_242]
        at java.awt.Frame.<init>(Frame.java:420) ~[?:1.8.0_242]
        at java.awt.Frame.<init>(Frame.java:385) ~[?:1.8.0_242]
        at
javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1763)
~[?:1.8.0_242]
        at
javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1838)
~[?:1.8.0_242]
        at javax.swing.JDialog.<init>(JDialog.java:272) ~[?:1.8.0_242]
        at javax.swing.JDialog.<init>(JDialog.java:206) ~[?:1.8.0_242]
        at javax.swing.JDialog.<init>(JDialog.java:154) ~[?:1.8.0_242]
        at org.apache.jmeter.SplashScreen.<init>(SplashScreen.java:52)
~[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at org.apache.jmeter.JMeter.startGui(JMeter.java:385)
~[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at org.apache.jmeter.JMeter.start(JMeter.java:555)
[ApacheJMeter_core.jar:5.3.1-SNAPSHOT]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_242]
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_242]
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_242]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_242]
        at org.apache.jmeter.NewDriver.main(NewDriver.java:255)
[ApacheJMeter.jar:5.3.1-SNAPSHOT]

Installing the package java-1.8.0-openjdk installed a few seemingly missing
packages and I can reproduce the GUI glitches. Even switching to an
AdoptOpenJDK made no difference.

As you said. Installing Java 11 solved the display problems.

I will look at the GUI elements in the test plan main element, but I am no GUI
expert, so don't expect too much.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to