Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI Display Error #5737

Closed
WebbDong opened this issue Nov 20, 2022 · 8 comments
Closed

GUI Display Error #5737

WebbDong opened this issue Nov 20, 2022 · 8 comments

Comments

@WebbDong
Copy link

Expected behavior

Display the GUI normally.

Actual behavior

The GUI cannot be displayed normally
5d5301749891e6d090b0650f881053c

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

@FSchumacher
Copy link
Contributor

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.

@WebbDong
Copy link
Author

I changed to openjdk version "11.0.2" 2019-01-15. After running for a few minutes, there are still GUI problems.

053bcc1c51a9aca54be7cb93a5692c7

jmeter.log:

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

Terminal:

1669004881996

My OS:

Edition Windows 11 Pro
Version 22H2
Installed on 10/‎6/‎2022
OS build 22621.819
Experience Windows Feature Experience Pack 1000.22636.1000.0

@FSchumacher
Copy link
Contributor

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?

@WebbDong
Copy link
Author

WebbDong commented Nov 22, 2022

I set the JVM flag and tested for hours with no GUI issues. I think it works. Thank you @FSchumacher

@PieWithMeat
Copy link

@WebbDong @FSchumacher in which file should jvm flag be set? thanks

@FSchumacher
Copy link
Contributor

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.

@Heo-Jae-Won
Copy link

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

@Entorianta
Copy link

Thank you a lot, it worked for me, too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants