Crashes when entering fullscreen
What to do if you encounter crashes when entering fullscreen mode
note
The error can appear similar to these messages
Couldn't toggle fullscreen
org.lwjgl.LWJGLException: Failed to set display mode (-2).
at org.lwjgl.opengl.WindowsDisplay.nSwitchDisplayMode(Native Method) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.WindowsDisplay.switchDisplayMode(WindowsDisplay.java:359) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.switchDisplayMode(Display.java:359) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.setDisplayModeAndFullscreenInternal(Display.java:507) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.Display.setFullscreen(Display.java:475) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
...
This may also be followed by another message
Unreported exception thrown!
java.lang.RuntimeException: No OpenGL context found in the current thread.
at org.lwjgl.opengl.GLContext.getCapabilities(GLContext.java:124) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
at org.lwjgl.opengl.GL11.glGetError(GL11.java:1299) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
If your game crashes when trying to toggle the fullscreen mode, try the following steps:
note
Before doing any troubleshooting below
Install the latest graphics driver for your system (see How to install GPU drivers)
If you use an NVIDIA GPU and use Windows, enable "Enable resolutions not exposed by the display"
- See NVIDIA's official documentation to enable custom resolutions
If you applied any overclocks or virtual resolutions that are higher than what your display officially supports, disable these first.
The below options should be done in this order.
Solution 1: Enable Borderless Fullscreen
- Launch the CheatBreaker Client
- Go into any world/server
- Open the Mod Menu (default Right Shift) > Select the ⚙️ Icon > CheatBreaker Settings
- In the search box, type in
Borderless Fullscreen - Turn on
Borderless Fullscreen
Solution 2: Change CheatBreaker launch resolution
- Open the CheatBreaker Launcher
- Go to the
SETTINGSon the top bar - Select
Presetsnext to theResolutionsetting - Select one of the available resolutions
Solution 3: Disable launching in fullscreen
This should be a last resort if the above solutions do not work.
- Disable Fullscreen in the CheatBreaker launcher
- Open the CheatBreaker Launcher
- Go to the
SETTINGSon the top bar - Uncheck
Fullscreenif this is enabled
- Disable fullscreen in-game
- Open your file manager and go to your Minecraft folder
- Windows:
%APPDATA%\.minecraft - macOS:
~/Library/Application Support/minecraft - Linux:
~/.minecraft
- Windows:
- Find and open
options.txt - Find
fullscreenand set it fromtruetofalse - Click CTRL + S to save your changes
- Open your file manager and go to your Minecraft folder