question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fullscreen mode in LWJGL2 on Linux crashes during startup

See original GitHub issue

I get this exception while trying to put my game into any fullscreen resolution. Is there any way to go into fullscreen from the dialog that doesn’t have this problem?

java.lang.RuntimeException: Unable to find fullscreen display mode matching settings
	at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:79)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
	at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
	at java.lang.Thread.run(Thread.java:748)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:17 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
ertugrulcetincommented, Dec 3, 2020

I found this solution and it worked for me on (LWJGL2) OS X - MacBook Pro;

public static void main(String[] args) {
        GraphicsDevice device = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();

        AppSettings setting = new AppSettings(true);
        setting.setFullscreen(true);
        setting.setFrameRate(60);
        setting.setFrequency(device.getDisplayMode().getRefreshRate());

        HelloTerrain app = new HelloTerrain();
        app.setShowSettings(false);
        app.setSettings(setting);
        app.start();
    }
1reaction
riccardoblcommented, Jun 2, 2019

I use 2. It’s a generic error, it might be caused by several things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash on full-screen enabled - graphics - jMonkeyEngine Hub
I am using Mac OS 10.11.6 and JMonkey SDK 3.2.1-stable When I try to start my game in fullscreen without specifying a refresh...
Read more >
[MC-70651] 1.8 Fullscreen still not working reliably in Linux - Jira
Starting Minecraft 1.8 or switching to fullscreen most often than not produces an invisible fullscreen window ontop of everything on the ...
Read more >
LWJGL crashing at startup - java - Stack Overflow
I'm using Linux Mint Exception in thread "main" java.lang.ExceptionInInitializerError at DisplayExample.start(DisplayExample.java:10) at ...
Read more >
1287864 – On Wayland, Minecraft crashes on startup
8 Operating System: Linux (amd64) version 4.2.6-301.fc23.x86_64 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: OpenJDK 64-Bit ...
Read more >
Using exclusive fullscreen on Wayland causes crash on startup
Start Veloren through airshipper. Enter multiplayer. Choose exclusive fullscreen in settings. Quit. Restart. Relevant logs and/or screenshots.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found