Closed WebbDong closed 1 year ago
I suspect, that this is a broken JVM installation. Try to use another one.
If you still think, that this is JMeters fault, then include log messages from jmeter.log
and the stdout in a terminal window when starting JMeter.
I changed to openjdk version "11.0.2" 2019-01-15. After running for a few minutes, there are still GUI problems.
2022-11-21 11:42:34,474 INFO o.a.j.u.JMeterUtils: Setting Locale to en_EN 2022-11-21 11:42:34,491 INFO o.a.j.JMeter: Loading user properties from: user.properties 2022-11-21 11:42:34,495 INFO o.a.j.JMeter: Loading system properties from: system.properties 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: Copyright (c) 1998-2022 The Apache Software Foundation 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: Version 5.5 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: java.version=11.0.2 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: java.vm.name=OpenJDK 64-Bit Server VM 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: os.name=Windows 10 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: os.arch=amd64 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: os.version=10.0 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: file.encoding=Cp1252 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: java.awt.headless=null 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: Max memory =1073741824 2022-11-21 11:42:34,500 INFO o.a.j.JMeter: Available Processors =16 2022-11-21 11:42:34,505 INFO o.a.j.JMeter: Default Locale=English (EN) 2022-11-21 11:42:34,506 INFO o.a.j.JMeter: JMeter Locale=English (EN) 2022-11-21 11:42:34,506 INFO o.a.j.JMeter: JMeterHome=F:\Tools\apache-jmeter-5.5 2022-11-21 11:42:34,506 INFO o.a.j.JMeter: user.dir =F:\Tools\apache-jmeter-5.5\bin 2022-11-21 11:42:34,506 INFO o.a.j.JMeter: PWD =F:\Tools\apache-jmeter-5.5\bin 2022-11-21 11:42:34,507 INFO o.a.j.JMeter: IP: 192.168.0.104 Name: Freedom FullName: Freedom 2022-11-21 11:42:34,516 INFO o.a.j.JMeter: Loaded icon properties from org/apache/jmeter/images/icon.properties 2022-11-21 11:42:34,750 INFO o.a.j.JMeterGuiLauncher: Setting LAF to: com.github.weisj.darklaf.DarkLaf:com.github.weisj.darklaf.theme.DarculaTheme 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 2022-11-21 11:50:56,349 INFO o.a.j.p.h.s.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser
Edition Windows 11 Pro Version 22H2 Installed on 10/6/2022 OS build 22621.819 Experience Windows Feature Experience Pack 1000.22636.1000.0
I still think it is a Java/Windows bug, as I never experienced it under Linux and there are no exceptions in the log or output.
Having searched the net for Windows 11 Pro, Java and GUI issues I found one link, where setting the JVM flag -Dsun.java2d.d3d=false
seemed to help. Maybe it helps you, too?
I set the JVM flag and tested for hours with no GUI issues. I think it works. Thank you @FSchumacher
@WebbDong @FSchumacher in which file should jvm flag be set? thanks
Have a look at https://jmeter.apache.org/usermanual/get-started.html and search for JVM_ARGS
. To set the variable, I would use the file setenv.bat
mentioned on that page.
thank you very much. I fixed visual bug for follwoing ur advice.
create setenv.bat in bin folder. and edit like below.
rem This is the content of bin\setenv.bat, rem it will be called by bin\jmeter.bat
set JVM_ARGS=-Dsun.java2d.d3d=false
Thank you a lot, it worked for me, too!
Expected behavior
Display the GUI normally.
Actual behavior
The GUI cannot be displayed normally
Steps to reproduce the problem
Select a menu or click on GUI components.
JMeter Version
5.5
Java Version
java version "11.0.16.1" 2022-08-18 LTS
OS Version
Windows 11 Pro 22H2