Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash with prime-run #38

Closed
KingTheGuy opened this issue Feb 9, 2020 · 4 comments
Closed

crash with prime-run #38

KingTheGuy opened this issue Feb 9, 2020 · 4 comments

Comments

@KingTheGuy
Copy link

crashes when i try to run the gaming using my dedicated gpu. nvidia. prime-run.

15:55:36 Info [Launcher] Version: client 10b2d53 / manifest 132cbf3
15:55:36 Info [Launcher] CPU: GenuineIntel Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
15:55:36 Info [Launcher] CPU supports SSSE3: YES
15:55:36 Trace [Launcher] Loading hybris libraries
15:55:36 Trace [HybrisUtils] Loaded OS library /usr/share//mcpelauncher/libs/native/libfmod.so.9.16
15:55:36 Trace [HybrisUtils] Loaded OS library libm.so.6
15:55:36 Trace [HybrisUtils] Loaded OS library libz.so.1
15:55:36 Info [Launcher] Creating window
15:55:36 Trace [Launcher] Loading gamepad mappings: /usr/share//mcpelauncher/gamecontrollerdb.txt
15:55:36 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
EGLUT: failed to create surface
Process exited with unexpected exit code: 1

@ChristopherHX
Copy link
Owner

Missing 32 bit mesa drivers or incompatible GPU with unsupported prime-run / bumblebee,
only nvidia-prime is known to work flawless with optimus

@KingTheGuy
Copy link
Author

as far as i can tell, i do have the 32bit mesa drivers, also using nvidia-prime.

@ChristopherHX
Copy link
Owner

nvidia prime != prime-run/bumblebee
You need to reinstall it correctly, nvidia prime doesn't allow gpu switching while running the desktop (you need to login / logout with it)
Your error has nothing to do with this launcher at all

@kanafutile
Copy link

kanafutile commented Jul 1, 2020

@KingTheGuy I found a workaround/fix (at least one that works in my case).

Here it is.

This is how to apply it:
In Arch Linux case, after cloning mcpelauncher-linux-git.git and cding into mcpelauncher-linux-git you must makepkg -os, then cd src/mcpelauncher-manifest, apply the patch as below, cd back into mcpelauncher-linux-git (cd ../..), makepkg -e and continue as normal.
In Debian & Solus cases, you must apply the patch after cloning mcpelauncher-manifest.git and cding into mcpelauncher-manifest (or mcpelauncher if you strictly follow instructions from README), after applying continue as normal.

wget https://gist.githubusercontent.com/kanafutile/d77b5b89ff2c2aa32c77fa57e12bfc1f/raw/e7a2e06ee7eb56ca9b5649a880e509051f63ea10/eglut_from_mesa_demos.patch
patch eglut/src/eglut.c eglut_from_mesa_demos.patch

P.S. Running it in nvidia-only mode (the one that has PRIME Synchronization) works well without this patch.
P.P.S. New nvidia drivers might be a requirement, because I only tested this on Beta NVIDIA drivers. 32-bit libglvnd and 32-bit nvidia-utils might also be required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants