mojira.dev
MC-2067

Switching to fullscreen does not work when running under Ubuntu 12.10

When running the game, I press F11.

*What I expected to happen*: the game switches to fullscreen

*What actually happened*: The screen becomes black for a moment (similarly to when it actually switches to fullscreen), but when it comes back, it is still running in a window, except it goes to the pause screen (and pressing ESC will not resume the game, too).

I have attached a video. The observable phenomenon is pretty much the same minus the white glitchy lines, I think they are caused by the recording.

*Steps to reproduce*:
1. Run Minecraft on Ubuntu 12.10 64 bit, using a nvidia GPU
2. Press F11

*Other information*
There is an AskUbuntu thread that discusses the same issue with some additional details regarding tried and not working troubleshooting methods:
http://askubuntu.com/questions/203326/minecraft-fullscreen-not-working

Related issues

Attachments

Comments

migrated
[media][media][media]
CubeTheThird

This could be a problem caused by openJDK, so you might want to install oracle java instead. Also make sure your graphics card (if you have one) driver is installed and up to date.

migrated

Yes, the driver is up-to date. I just tried Oracle java, and it does not work (just like in the AskUbuntu thread).
Also, even if that was the problem, it would make sense to start supporting OpenJDK, since it is the official reference implementation from Java7 and up (see: https://blogs.oracle.com/henrik/entry/moving_to_openjdk_as_the). Also, it is the default runtime in Ubuntu, installing Oracle Java is not very straightforward for an average user.

kumasasa

Duplicate of MC-1854

migrated

No, this is not a duplicate of the other one, and as I already said, updating lwjgl does not solve the issue and neither does using the Oracle JVM.
I understand that you want to close as many bugs as possible, but please, be reasonable. Can we get this reopened, please?

CubeTheThird

Which desktop environment are you using? I find the fullscreen doesn't work for me in Gnome shell 3, but does in Unity.

migrated

I'm using Unity.

migrated

I find that its the opposite for me. Full screen works in Gnome Shell, but not in Unity 12.10

migrated

Either way, there is clearly a problem.

migrated

bumping

migrated

This isn't a dupe, re-read this and MC-1854.

migrated

Reopened this issue as it's not a duplicate of MC-1854

migrated

Problem is nvidia driver 304.xx .I had same issue also on 12.04 when i did upgrade from stock 295.xx to 304.xx ( downgrade back to 295.xx fixed the issue .Problem persist in 12.10 with 304.51 .I will test new beta 310 driver and let you know.

kumasasa

Majlo, thanks for the update, looking forward to your test results.

migrated

Still the same issue after upgrade to new beta 310.14 driver .But fullscreen works in fluxbox/gnome 3 so this will be probably compiz/unity problem .I have filled bug in ubuntu bug tracker please feel free to contribute https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1079731

migrated

Well, I tried with xfce on this same system, and I had the same issue.

kumasasa

I think we can close this ticket here, since this is probably no Minecraft issue.

migrated

Why do you think that? I just told you that I tried with another window manager and it didn't work. So it's not a Unity/Compiz bug.

kumasasa

Yes, I see that this issue is not solved for you, but see the other fullscreen issues and crashes, they may be related and mostly cause by graphics driver / JRE.

migrated

Do what you think is best, I really tried to put effort into this one and I think you are wrong (BTW I switched to a different distribution, so I'm not affected by the bug at the moment).

As a side note, I think you should not be so eager to close bugs without substantial evidence of them being invalid or duplicates. For example, many bugs that are marked as a duplicate for this one have different symptoms. I understand that they might have the same root cause, but no evidence is provided so far. There is no crash involved with this bug, while lots of fullscreen crash bugs are reported as duplicate for it. In this case, it simply switches back to windowed mode, no crash whatsoever.

kumasasa

I clearly see your point and your effort in this issue, and of course you are right that the other issues are not the same.
But this error tracker was made to track Minecraft errors, the "rest" like JRE, graphics drivers, operating systems etc. should be handled by the support, see Mojang Support Center.
To keep things here clear, some issues have to be consolidated.

migrated

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

migrated

This IS a bug report. There is no JVM crash, read the BUG description. Please.

kumasasa

Reopened.

migrated

From MC-19751:

This is very likely a LWJGL issue, feel free to report it on: https://github.com/LWJGL/lwjgl/issues

There is very little we can do.

migrated

This is resolved in latest Minecraft for me. Probably bug in LWJGL.

migrated

I have been looking much into this bug, and the only thing I've found out is that this is either an OpenGL, graphics driver or LWJGL issue.
Even though this is not a Minecraft issue I will describe how it acts for me, so others can compare.

I have a dual-head setup, when I have the second monitor activated it never works, but here is what happens:
When I first set it to fullscreen, both monitors will go black, and then the secound monitor is disabled, and minecraft is back in it's windowed state(because of the check that closes fullscreen if minecraft is not in focus), but it is rendered wrongly in the window. It does not think of the window decaration, and therefor is of by as much as the window decaration is at the top, I'll take a screen shot of this and attach it to this bug report.
If I then try to go fullscreen again, the screen is all messed up, and is mostly black with a couple of strange graphical artifacts changing all the time. This is equal to how it's described in MC-3463. I did manage to use jstack to get a stack of minecraft when it is in this state, however. I will attach it to this bug report.

If I try running Minecraft after I have first disabled the other monitor the result is varying, but it tends to work if Minecraft have less than 1Gb of RAM.
However when minecraft then works in fullscreen it seems like the window is not correctely in focus, so when the cursor leaves the "real" window, Steve stops spinning around. This can be fixed by pressing Esc and then just press resume game with the cursor.
If it does not work when I have disabled the secound monitor the bug is like the issue author described it, and as shown in the video. This seems to be because of a check in the code that is supposed to go out of fullscreen if some other program take over the focus. A solution to this migth be to wait a second to see if minecraft is regaining it's focus.

So for a quick summarry: if the game tries to go to fullscreen and then closes, that is due to a check to prevent minecraft from being fullscreen while opening the Windows Start Menu for example. If you get strange artifacts on the screen, and you have to reboot/ attach another monitor and open another tty to restart the gdm, that is most likely an OpenGL or LWJGL issue. If minecraft is wrongly placed in the window after fullscreen(see screenshot) that is a minecraft issue, and is fixed by resizing the window. If you cannot turn while in fullscreen, or after it's closed, that is a LWJGL issue(probabely possible to fix through Minecraft though) and is fixed by opening the menu and closing it by using the "Resume" button.

EDIT: This proves that the fullscreen bug is actually many bugs. The original author of this issue did only have the problem that minecraft would go out of fullscreen again because of the check if the Minecraft window is active.

migrated

a "jstack -l" log of the minecraft process after the screen is black with strange artifacts.
This is in an mcp environment, so it's deobfuscated after the mcp rules. The only changes is some System.out.println's for some fullscreen debugging.

migrated

Ohh, and I suppose a Mod now migth say that I have included many bugs into one bug report, and that migth be true. I posted everything to give an as detailed as possible description.
I think this Issue should only be the issue that Minecraft closes the fullscreen rigth after it is made, and that someone(maybe me) should make issues for the turn around bug(AFAIk that exist already) and the wrongly redered/placed minecraft in the window.

migrated

Crossposting the LWJGL forums thread and the Minecraft bug report

On my system this is working. I did an upgrade of the drivers, and I updated to Xorg 1.14. I can't say excately what fixed it but it's now working. As long as I disable the secound monitor first, anyways.

kumasasa

Thanks for the feeedback.

migrated

I have this problem on Ubuntu 14.04. If I try to enter fullscreen while minecraft is maximized, it freezes. If I try to enter fullscreen while minecraft is windowed, it works fine.

migrated

(Unassigned)

Unconfirmed

linux, nvidia, ubuntu

Minecraft 1.4.2, Minecraft 1.4.3, Minecraft 1.4.7

Retrieved