X Error of failed request: BadWindow (invalid Window parameter) with LWJGL3
See original GitHub issuePlatform
Linux Mint x64 with Mesa (v20) graphics driver
JDK
AdoptOpenJDK 16
Bug description
When I open a swing window (e.g. JME error dialog) along with the GLFW window, the moment I close the swing window it crashes the app with the below error. I am using LWJGL 3.
Stacktrace or crash log output
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 20 (X_GetProperty)
Resource id in failed request: 0x4e0005b
Serial number of failed request: 1332
Current serial number in output stream: 1332
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
X Error of failed request: BadWindow (invalid ... - LWJGL Forum
Hey guys, I am not sure if this is related to GLFW or LWJGL and if it is a bug or not. But...
Read more >BadWindow (invalid Window parameter) · Issue #361 - GitHub
When I run cargo run --example astroblasto, I get the following. Adding path "/home/cedwards/Documents/git/ggez/resources" X Error of failed ...
Read more >Frmbld.sh Crashes X Error of failed request - My Oracle Support
X Error of failed request : BadWindow (invalid Window parameter) Major opcode of failed request: 8 (X_MapWindow) Resource id in failed ...
Read more >X Error of failed request: BadWindow (invalid Window parame
I can start the Battlenet Client, but it doesnt continue, sometimes it tears the screen, sometimes nothing happen, but just the error below....
Read more >[SOLVED] Jme3.5.0-alpha on armhf - Development ...
LegacyApplication handleError SEVERE: Failed to destroy context java.lang. ... X Error of failed request: BadWindow (invalid Window parameter) Major opcode ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s interesting!
If I disable the JME Settings dialog with
app.setShowSettings(false);
(so GLFW will be the first thing to get initialized) then opening/closing a Swing window after that seems to be working fine in my case as well.@SylvainBertrand thanks for the update!
Hi! I’m also struggling with the transition to LWJGL3 for an application of our own that uses JME and AWT/Swing. I’ve been trying to figure out various code examples that cause an application to crash when running on Linux (testing on Ubuntu 20.04) with Java 17 (using Azul Zulu OpenJDK 17.0.2). Here’s one example that seems similar to what you’re experiencing @Ali-RS :
When closing the dialog to open a file, the whole app terminates immediately with the following error message:
In this example, it seems enough to move the GLFW initialization to be the first thing to run to prevent the error from popping.
I’m still digging for solutions, as migrating away from Swing/AWT or JME is not viable solution for me.