minecraft-linux / mcpelauncher-manifest

The main repository for the Linux and Mac OS Bedrock edition Minecraft launcher.
https://minecraft-linux.github.io
GNU General Public License v3.0
967 stars 99 forks source link

Black screen on Arch Linux #45

Open magiblot opened 5 years ago

magiblot commented 5 years ago

It appears to be that since a certain mesa update (I don't remember which one) I began to get black a black screen in minecraft:

screenshot_20181230_194225

As you can see, some Mesa errors are printed to the terminal:

Mesa: User error: GL_INVALID_OPERATION in glUseProgram(program 3 not linked)
Mesa: User error: GL_INVALID_OPERATION in glUseProgram(program 10 not linked)

I can experience this issue with stable packages (I was unable to solve the issue by downgrading lib32-mesa) and latest git version mesa3d/mesa@ad1e59cf8d.

However, an old custom build of mine at mesa3d/mesa@552642066f still works:

screenshot_20181230_194900

I can try bisecting mesa but it would take quite the time. Please notice my system information is:

Operating System: Arch Linux 
Kernel Version: 4.19.12-arch1-1-ARCH
OS Type: 64-bit
Processor: Intel® Core™ i3-3110M CPU @ 2.40GHz
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) Ivybridge Mobile  (0x166)
OpenGL ES profile version string: OpenGL ES 3.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

And the video driver in use is i965.

This is the PKGBUILD for the custom build I'm using: PKGBUILD

magiblot commented 5 years ago

I am unable to bisect mesa because recompiling at mesa3d/mesa@5526420 now also produces a black screen. Reinstalling the old build I mentioned, however, still works.

magiblot commented 5 years ago

Removing ~/.cache/mesa_shader_cache doesn't solve the issue.

TheNewHEROBRINEX commented 1 year ago

I can confirm having this issue on Ubuntu if I use the latest commit of Mesa.

ChristopherHX commented 1 year ago

You are talking about a new bug like this one https://github.com/minecraft-linux/mcpelauncher-client/issues/66#issuecomment-1558740740.

I can confirm having this issue on Ubuntu if I use the latest commit of Mesa.

Using 1.18.12 would still work in this case.

sunglocto commented 1 year ago

I am getting this issue after updating mesa on arch

ChristopherHX commented 1 year ago

It's still unclear if this is a mesa or a game bug, but the new opengl es extension exposed in mesa 23.1 makes the game drawing a blackscreen.

I created a mod for this launcher to temporary hide this issue

Download the mod from the artifacts of https://github.com/ChristopherHX/mcpelauncher-updates/actions/runs/5070803283 (the attached git repository contains the source code)

Adding mods image image image

The Open Data Root folder can also be found on the following locations

~/.local/share/mcpelauncher/
~/.var/app/io.mrarm.mcpelauncher/data/mcpelauncher/
~/Library/Application Support/mcpelauncher/

create a folder with name mods and put the .so file for your system into this folder.

As reported in our discord server defining the env variable MESA_EXTENSION_OVERRIDE="-GL_EXT_instanced_arrays" is another workaround.

HurricanePootis commented 1 year ago

I can confirm the MESA_EXTENSION_OVERRIDE works

sunglocto commented 1 year ago

I can confirm the MESA_EXTENSION_OVERRIDE works

same here