mojira.dev

Landon Jobe

Assigned

No issues.

Reported

No issues.

Comments

Also having the same issue on the Linux port of the launcher.

(I realize this ticket is for the Windows environment, but enough Linux users have responded to it, didn't think it was worth opening a new one. I can go ahead and do that if a moderator would prefer that.)

Environment:

  • Fedora 32 Workstation

  • Kernel 5.6.6

  • Gnome 3.36.1 on X11

  • GPU: AMD Radeon VII (Vega 20)

    • Mesa 20.0.4 driver stack

    • xorg-x11-drv-amdgpu 19.1.0

    • llvm 10.0.0

When the launcher is run from a terminal, the following errors are observed where the launcher is expecting to find SwiftShader - yet this directory does not exist within the launcher's tar ball.

$ /opt/minecraft-launcher/minecraft-launcher 
[0426/102138.810404:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0426/102138.811222:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0426/102139.149091:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0426/102139.150088:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0426/102139.495702:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0426/102139.496677:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization
[0426/102139.829939:ERROR:gl_implementation.cc(241)] Failed to load /opt/minecraft-launcher/swiftshader/libGLESv2.so: /opt/minecraft-launcher/swiftshader/libGLESv2.so: cannot open shared object file: No such file or directory
[0426/102139.830821:ERROR:gpu_child_thread.cc(254)] Exiting GPU process due to errors during initialization

 

Outside of this, OpenGLES does work on the system:

[media]

 

Looking for a Workaround:

 I've managed to partially get it working by building swiftshader from it's sources (master branch) and linking the swiftshader/build/Linux directory to /opt/minecraft-launcher/swiftshader. So you can at least see the Steve and Alex skins, but the current skin, as well as the editor do not load in.

[media]

At this point, the following can be observed in the terminal:

$ /opt/minecraft-launcher/minecraft-launcher 
[0426/111632.955297:ERROR:cache_util.cc(134)] Unable to move cache folder GPUCache to old_GPUCache_000
[0426/111632.955339:ERROR:disk_cache.cc(172)] Unable to create cache
[0426/111632.955352:ERROR:shader_disk_cache.cc(601)] Shader Cache Creation failed: -2
[0426/111635.229242:INFO:CONSOLE(2)] "THREE.WebGLRenderer: EXT_frag_depth extension not supported.", source: mojang://java-launcher/static/js/3.02917d33.chunk.js (2)
[0426/111635.232404:INFO:CONSOLE(2)] "THREE.WebGLRenderer: EXT_shader_texture_lod extension not supported.", source: mojang://java-launcher/static/js/3.02917d33.chunk.js (2)
[0426/111635.865092:INFO:CONSOLE(2)] "THREE.WebGLProgram: shader error: ", source: mojang://java-launcher/static/js/3.02917d33.chunk.js (2)
[0426/111635.866566:INFO:CONSOLE(2)] "WebGL: INVALID_OPERATION: useProgram: program not valid", source: mojang://java-launcher/static/js/5.c254c539.chunk.js (2)
[0426/111635.867221:INFO:CONSOLE(2)] "WebGL: INVALID_OPERATION: useProgram: program not valid", source: mojang://java-launcher/static/js/5.c254c539.chunk.js (2)
[0426/111635.867609:INFO:CONSOLE(2)] "WebGL: INVALID_OPERATION: useProgram: program not valid", source: mojang://java-launcher/static/js/5.c254c539.chunk.js (2)
[0426/111635.867819:INFO:CONSOLE(2)] "WebGL: INVALID_OPERATION: useProgram: program not valid", source: mojang://java-launcher/static/js/5.c254c539.chunk.js (2)
[0426/111635.868235:INFO:CONSOLE(2)] "WebGL: INVALID_OPERATION: useProgram: program not valid", source: mojang://java-launcher/static/js/5.c254c539.chunk.js (2)
[0426/111635.879549:INFO:CONSOLE(0)] "WebGL: CONTEXT_LOST_WEBGL: loseContext: context lost", source: mojang://java-launcher/index.html (0)
[0426/111635.895824:INFO:CONSOLE(2)] "THREE.WebGLRenderer: Context Lost.", source: mojang://java-launcher/static/js/3.02917d33.chunk.js (2)

 

Not sure if it's a basic incompatibility, or if the swiftshader sub-directory should expect more than just libEGL.so and libGLESv2.so. Here's the directory permissions in case they can be of use:

[flagcourier@landondesktop minecraft-launcher]$ ll
total 182344
-rw-r--r--. 1 root root    621568 Apr 17 20:55 cef_100_percent.pak
-rw-r--r--. 1 root root    730195 Apr 17 20:55 cef_200_percent.pak
-rw-r--r--. 1 root root   3381507 Apr 17 20:55 cef_extensions.pak
-rw-r--r--. 1 root root   4115814 Apr 17 20:55 cef.pak
-rwxr-xr-x. 1 root root     23688 Apr 17 20:55 chrome-sandbox
-rw-r--r--. 1 root root  10196592 Apr 17 20:55 icudtl.dat
-rwxr-xr-x. 1 root root 125944136 Apr 17 20:55 libcef.so
-rw-r--r--. 1 root root  37855864 Apr 17 20:55 liblauncher.so
drwxr-xr-x. 2 root root      4096 Apr 26 09:46 locales
-rwxr-xr-x. 1 root root    120976 Apr 17 20:55 minecraft-launcher
-rwxr-xr-x. 1 root root    218275 Apr 17 20:55 natives_blob.bin
-rwxr-xr-x. 1 root root   1530292 Apr 17 20:55 snapshot_blob.bin
drwxr-xr-x. 2 root root      4096 Apr 26 11:16 swiftshader
-rwxr-xr-x. 1 root root   1948168 Apr 17 20:55 v8_context_snapshot.bin
[flagcourier@landondesktop minecraft-launcher]$ ll swiftshader/
total 20
lrwxrwxrwx. 1 root root 68 Apr 26 11:15 libEGL.so -> /home/flagcourier/Documents/GitHub/swiftshader/build/Linux/libEGL.so
lrwxrwxrwx. 1 root root 71 Apr 26 11:15 libGLESv2.so -> /home/flagcourier/Documents/GitHub/swiftshader/build/Linux/libGLESv2.so
lrwxrwxrwx. 1 root root 79 Apr 26 11:15 libvk_swiftshader.so -> /home/flagcourier/Documents/GitHub/swiftshader/build/Linux/libvk_swiftshader.so
lrwxrwxrwx. 1 root root 73 Apr 26 11:15 libvulkan.so.1 -> /home/flagcourier/Documents/GitHub/swiftshader/build/Linux/libvulkan.so.1
lrwxrwxrwx. 1 root root 82 Apr 26 11:16 vk_swiftshader_icd.json -> /home/flagcourier/Documents/GitHub/swiftshader/build/Linux/vk_swiftshader_icd.json

Have you tried turning off the camera-bob effect in the graphical settings? Also try to dim your screen a bit and try that.
You're experiencing SimulationSickness, which you can get some pretty good tips from here: https://www.youtube.com/watch?v=CvimYs7tnRM
The video is put out by PennyArcade TV's ExtraCredits, and well documents the theory, and how to overcome it.