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

Cannot run Minecraft on discrete GPU #223

Open
dylanparry opened this issue Jan 24, 2020 · 6 comments
Open

Cannot run Minecraft on discrete GPU #223

dylanparry opened this issue Jan 24, 2020 · 6 comments

Comments

@dylanparry
Copy link

I am unable to get Minecraft to run on my nvidia GPU (other games/apps work fine on it), and it'll only run on the Intel one.

I'm using Fedora 31 with the latest nvidia drivers (proprietary from RPMFusion) and Prime Offloading enabled (the new default on Fedora).

Here's what I get when I attempt to launch it using __NV_PRIME_RENDER_OFFLOAD=1 mcpelauncher-client -dg /home/dylanparry/.local/share/mcpelauncher/versions/1.14.1.5/:

17:44:52 Info  [Launcher] Version: client c735370 / manifest b3dd620
17:44:52 Info  [Launcher] CPU: GenuineIntel Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
17:44:52 Info  [Launcher] CPU supports SSSE3: YES
17:44:52 Trace [Launcher] Loading hybris libraries
17:44:52 Trace [HybrisUtils] Loaded OS library /home/dylanparry/Downloads/Minecraft/mcpelauncher/mcpelauncher-linux-bin/libs/native/libfmod.so.9.16
17:44:52 Trace [HybrisUtils] Loaded OS library libm.so.6
17:44:52 Trace [HybrisUtils] Loaded OS library libz.so.1
17:44:52 Trace [Launcher] Loading Minecraft library
17:44:53 Info  [Launcher] Loaded Minecraft library
17:44:53 Debug [Launcher] Minecraft is at offset 0xed922000
17:44:53 Trace [Launcher] Initializing vtables
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServiceLocatorI11AppPlatformE15mDefaultServiceE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN11AppPlatform12showKeyboardERKSsibbbiRKN3glm5tvec2IfLNS2_9precisionE0EEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK11AppPlatform22getHardwareInformationEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17AppResourceLoaderC1ESt8functionIFN4Core10PathBufferISsEEvEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN10Automation16AutomationClientC2ER13IMinecraftApp
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ClientInstance7getUserEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ClientInstance15_startLeaveGameEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ClientInstance16_syncDestroyGameEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK13CommandOutput11getMessagesEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19CommandOutputSender9translateERKSt6vectorISsSaISsEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19CommandOutputSenderC2ERN10Automation16AutomationClientE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19CommandOutputSenderD2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19CommandOutputSender4sendERK13CommandOriginRK13CommandOutput
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19CommandOutputSender22registerOutputCallbackERKSt8functionIFvR19AutomationCmdOutputEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN30ExternalFileLevelStorageSourceC2EPN4Core15FilePathManagerESt10shared_ptrI22SaveTransactionManagerE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN30ExternalFileLevelStorageSource18createLevelStorageER9SchedulerRKSsRK15ContentIdentityRK19IContentKeyProvider
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ResourceLoadManagerC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ResourceLoadManager4syncE16ResourceLoadType
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN4I18n3getERKSsRKSt6vectorISsSaISsEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN4I18n14chooseLanguageERKSs
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN4I18n13loadLanguagesER19ResourcePackManagerR19ResourceLoadManagerRKSs
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN5Level16createRandomSeedEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13LevelSettingsC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13LevelSettingsC2ERKS_
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13LevelSettings15parseSeedStringERKSsj
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN9Minecraft11getCommandsEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK9Minecraft8getLevelEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17MinecraftCommands15setOutputSenderESt10unique_ptrI19CommandOutputSenderSt14default_deleteIS1_EE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK17MinecraftCommands23requestCommandExecutionESt10unique_ptrI13CommandOriginSt14default_deleteIS1_EERKSsib
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17MinecraftEventingC2ERKSs
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17MinecraftEventing4initEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13MinecraftGameD2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK13MinecraftGame8isInGameEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13MinecraftGame16requestLeaveGameEbb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13MinecraftGame24getPrimaryClientInstanceEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13MinecraftGame14startLeaveGameEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN13MinecraftGame17continueLeaveGameEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN20MinecraftScreenModel32navigateToXblConsoleSignInScreenERKSsS1_
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN20MinecraftScreenModel41navigateToXblConsoleSignInSucceededScreenERKN6Social12SignInResultESt8functionIFvS1_EEb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN20MinecraftScreenModel11leaveScreenEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN6Social14MultiplayerXBLC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN15PermissionsFileC2ERKSs
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19SkinPackKeyProviderC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19PackManifestFactoryC2ER14IPackTelemetry
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17PackSourceFactoryC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN22ResourcePackRepositoryC2ER18IMinecraftEventingR19PackManifestFactoryR29IContentAccessibilityProviderPN4Core15FilePathManagerER17PackSourceFactoryb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN22ResourcePackRepository21addWorldResourcePacksERKN4Core4PathE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN22ResourcePackRepository12refreshPacksEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN18ContentTierManagerC2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ResourcePackManagerC2ESt8functionIFN4Core10PathBufferISsEEvEERK18ContentTierManagerb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ResourcePackManager8setStackESt10unique_ptrI17ResourcePackStackSt14default_deleteIS1_EE21ResourcePackStackTypeb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ResourcePackManager17onLanguageChangedEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN12PackInstanceC2EP12ResourcePackibP12PackSettings
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZTV17ResourcePackStack
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN17ResourcePackStack3addE12PackInstanceRK22ResourcePackRepositoryb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN22SaveTransactionManagerC2ESt8functionIFvbEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN9Scheduler17processCoroutinesENSt6chrono8durationIxSt5ratioILx1ELx1000000000EEEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN18MinecraftScheduler6clientEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN19ServerCommandOriginC2ERKSsR11ServerLevel22CommandPermissionLevel
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN16EducationOptionsC2EP19ResourcePackManager
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstanceC2ER13IMinecraftAppR30ServerInstanceEventCoordinator
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstance16initializeServerER13IMinecraftAppR9WhitelistP15PermissionsFilePN4Core15FilePathManagerENSt6chrono8durationIxSt5ratioILx1ELx1EEEESsSsSs13LevelSettingsib20ConnectionDefinitionbRKSt6vectorISsSaISsEESsRKN3mce4UUIDER18IMinecraftEventingR22ResourcePackRepositoryRK18ContentTierManagerR19ResourcePackManagerSt8functionIFSt10unique_ptrI12LevelStorageSt14default_deleteIS10_EER9SchedulerEERKSsP9LevelDataSsSsSZ_I16EducationOptionsS11_IS1C_EEPSW_SY_IFvvEES1H_P13ServerMetricsP13DebugEndPointb
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstanceD2Ev
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstance17startServerThreadEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstance13leaveGameSyncEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN14ServerInstance20queueForServerThreadESt8functionIFvvEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN15SharedConstants12MajorVersionE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN15SharedConstants12MinorVersionE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN15SharedConstants12PatchVersionE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN15SharedConstants15RevisionVersionE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZNK6Social4User11getLiveUserEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN6Social12XboxLiveUser22_handleUISignInNoErrorERN4xbox8services6system14sign_in_resultESt8functionIFvNS_12SignInResultEbEE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN6Social11UserManager17CreateUserManagerEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2v82V810InitializeEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2v82V818InitializePlatformEPNS_8PlatformE
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2gl15getOpenGLVendorEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2gl17getOpenGLRendererEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2gl16getOpenGLVersionEv
17:44:53 Error [MinecraftSymbols] Unresolved symbol: _ZN2gl19getOpenGLExtensionsEv
17:44:53 Trace [AppPlatform] Vtable size = 295
17:44:53 Trace [Store] Vtable size = 39
17:44:53 Info  [Launcher] Game version: 1.14.1
17:44:53 Info  [Launcher] Applying patches
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 131
17:44:53 Trace [Patch] Patching - result: 233 200 1 249 25
17:44:53 Trace [Patch] Patching - original: 83 87 86 131 236
17:44:53 Trace [Patch] Patching - result: 233 29 172 251 25
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 225 214 62 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 5 31 125 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 163 46 125 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 189 26 125 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 205 129 124 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 159 117 124 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 115 169 126 22
17:44:53 Trace [Patch] Patching - original: 83 87 86 131 236
17:44:53 Trace [Patch] Patching - result: 233 129 20 125 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 129
17:44:53 Trace [Patch] Patching - result: 233 49 63 125 22
17:44:53 Trace [Patch] Patching - original: 83 131 236 8 232
17:44:53 Trace [Patch] Patching - result: 233 23 11 155 22
17:44:53 Trace [Patch] Patching - original: 137 76 36 4 137
17:44:53 Trace [Patch] Patching - result: 232 87 16 80 22
17:44:53 Trace [Patch] Patching - original: 36 88 139 65 12
17:44:53 Trace [Patch] Patching - result: 232 98 16 80 22
17:44:53 Trace [Patch] Patching - original: 85 83 87 86 131
17:44:53 Trace [Patch] Patching - result: 233 166 181 54 22
17:44:53 Error [SplitscreenPatch] Not patching splitscreen - incompatible code
17:44:53 Info  [Launcher] Creating window
17:44:53 Trace [Launcher] Loading gamepad mappings: /home/dylanparry/Downloads/Minecraft/mcpelauncher/build/gamecontrollerdb/gamecontrollerdb.txt
17:44:53 Trace [Launcher] Loading gamepad mappings: /usr/local/share//mcpelauncher/gamecontrollerdb.txt
17:44:53 Trace [Launcher] Loading gamepad mappings: /usr/local/share/mcpelauncher/gamecontrollerdb.txt
EGLUT: failed to create surface
Process exited with unexpected exit code: 1

Without the __NV_PRIME_RENDER_OFFLOAD=1 env variable, it runs just fine, but using the Intel GPU instead. That means crappy frame rates, and the CPU fan going nuts :(

Has anyone else come across this issue? Any ideas how to fix it?

@MrWael
Copy link

MrWael commented Jun 12, 2020

im having the same error when attempting to run the game with nvidia gpu. with intel it will run but not nvidia:

`16:30:15 Info [Launcher] Version: client 4432ade / manifest b4136d7
16:30:15 Info [Launcher] CPU: GenuineIntel Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
16:30:15 Info [Launcher] CPU supports SSSE3: YES
16:30:15 Trace [Launcher] Loading hybris libraries
16:30:15 Trace [HybrisUtils] Loaded OS library /tmp/.mount_MC.AppXoSVLp/usr/share/mcpelauncher/libs/native/libfmod.so.9.16
16:30:15 Trace [HybrisUtils] Loaded OS library libm.so.6
16:30:15 Trace [HybrisUtils] Loaded OS library libz.so.1
16:30:15 Info [Launcher] Creating window
16:30:15 Trace [Launcher] Loading gamepad mappings: /tmp/.mount_MC.AppXoSVLp/usr/share/mcpelauncher/gamecontrollerdb.txt
EGLUT: failed to create surface

Process exited with unexpected exit code: 1`

@kanafutile
Copy link

@MrWael I've had identical issue, here is how i managed it to fix it.
@dylanparry This might work for you as well, though in my case there wasn't Unresolved symbol spam.

@dylanparry
Copy link
Author

dylanparry commented Jul 8, 2020

This fix worked perfectly for me too. @kanafutile maybe submit a pull request? I have no idea if your patch would stop it working for anyone else though. Thanks :D

Edit: Scratch that, for some reason the game launches fine, but then there's no textures appearing once I get into a world :(

@kanafutile
Copy link

kanafutile commented Jul 8, 2020

@dylanparry i had this textures issue when i had .mcpack shaders on
and, yeah, i have no idea if it breaks something, for me it seemingly doesn't

my guess is that prime render offload is a little broken, and that's why non-zero EGL_ALPHA_SIZE breaks

@dylanparry
Copy link
Author

I disabled all my texture packs and shaders to see if that would make a difference, but it still wouldn't work for me. I've switched back to Prime Sync instead, as that works perfectly.

@kanafutile
Copy link

Interesting. I could not get ANY shaders to work running on intel hd (without that patch), nvidia-only (without that patch) or hybrid (with that patch), meaning in all of these cases block textures were invisible

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