mojira.dev
MC-33903

Cannot enter fullscreen reliably on Linux

Game cannot reliably go fullscreen. When playing, pressing F11 or changing the "Fullscreen" setting in the Video Options sometimes fails to put the game in fullscreen, returning to windowed mode after a short delay. The screen blanks as when going fullscreen successfully, but the windowed mode returns immediately.

Only happens when an actual game is running. Doesn't happen at the title screen, happens when the in-game menu is accessed (via ESC).

It often takes 5-10 switches (either through options or F11) to get to fullscreen. Opening menus, defocusing and refocusing the game window and other voodoo might help, but not reliably.

Possibly related: Sometimes when the fullscreen mode is entered, the player is unable to turn around more than a fixed amount (as if the cursor was confined to the earlier, small window or went outside and did not register).

Related issues

Attachments

Comments

migrated
[media][media]
kumasasa

Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report ([minecraft|http://hopper.minecraft.net/help/finding-minecraft-data-folder]/crash-reports/crash-<DATE>-client.txt) here.

Orhan Kavrakoglu

I'm a developer and am willing to further investigate this issue if needed.

Orhan Kavrakoglu

Crash report as per request

kumasasa

OpenGL: GeForce 9800 GT/PCIe/SSE2 GL version 3.3.0 NVIDIA 310.14, NVIDIA Corporation

Your driver is outdated.

Current is 325.08 beta http://www.geforce.com/drivers/results/63577 or 319.60 http://www.geforce.com/drivers/results/67567

Orhan Kavrakoglu

Thanks, I'll update.

Though I hightly doubt it'll fix this age-old bug.

kumasasa

Take a look at MC-2067

Orhan Kavrakoglu

While fullscreen usually crashes on my Macbook, I can also (unreliably) replicate the cursor/turning thing.

Linux cafebabe 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
server glx vendor string: SGI
server glx version string: 1.4
Qt: 4.8.4
KDE: 4.10.5

Orhan Kavrakoglu

Thanks, I will check MC-2067 out.

It did not come up come up in my searches before posting this bug (rather got the fullscreen crash ones).

I will investigate further.

Orhan Kavrakoglu

So, reading various topics, it looks like this might actually be a WM/driver/lwjgl issue even though it's age-old.

What bugs me is that it doesn't happen at the title menu so there is something in the game code that's triggering it.

Orhan Kavrakoglu

I found something. There's a function calling Display.setFullscreen() from LWJGL, which usually gets called after a check for F11:

if (Keyboard.getEventKey() == KEY_F11) { function(); }

On the occasions where this bug happens and I can't get fullscreen for more than a split second, the same function also gets called from somewhere else, doing a Display.setFullscreen(false) on top of the earlier call. That somewhere else is around a Display.isActive() check.

Ezekiel

Is this still a concern in the latest Minecraft version 13w48b? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Orhan Kavrakoglu

It seems like the problem in the title is gone.

However, the "cursor confinement" issue is now 100% replicatable. (But can be worked around by freeing the cursor by opening a menu (ESC) before going fullscreen – also at 100%)

Feel free to resolve the issue.
I will open another one for the cursor or comment on an existing report as soon as I have the time.

Orhan Kavrakoglu

(Unassigned)

Unconfirmed

fullscreen, mouse

Minecraft 1.6.4, Minecraft 13w39b

Minecraft 1.7.2

Retrieved