Games close immediately after launching
So I have been experiencing this issue since I started using it on Linux. After a while, games that were working perfectly fine stop launching. They'll start, for a brief second a window will appear opening, and they will immediately quit again. In the logs I can't figure out anything that could be causing it.
Key is that I know it to be Heroic, because I am able to launch the games using WINE when going to the folder. Previously, randomly installing and re-installing proton has fixed it, but only for a while. It would be great if someone could help me with this issue. Incidentally, some games aren't affected at all.
29 Replies
optimistic-goldOP•4w ago
Log of one of the games that displays the issue
"nvidiaPrime": true,
Probably want to disable this
Key is that I know it to be Heroic, because I am able to launch the games using WINE when going to the folder. Previously, randomly installing and re-installing proton has fixed it, but only for a whileThis specific game is native, meaning nothing Proton-related is causing this. You likely did something alongside reinstalling Proton which helped
optimistic-goldOP•4w ago
Why? What is the problem with that?
Specific game is indeed Native, there are non-native games that do the same. If I go to the file path and run the game not through Heroic, it starts without issue
optimistic-goldOP•4w ago
A non-native game
optimistic-goldOP•4w ago
Again, if I go to the installation and launch the executable directly, the game starts without issue
Games are usually better at choosing the right GPU & enabling that option can cause issues. The general rule of thumb is to try with it off and only enable it when necessary
optimistic-goldOP•4w ago
Do you mean by that disabling it globally, or is there any way I can do for the specific instance?
Nope, just changed back-and-forth between proton versions for the specific game, until at some point it stopped doing it
You can't change the Proton version for a native game. You were likely changing the game defaults which, as the warning above them says, are only applied for new games
Well ideally you'd do both. Game defaults are in "Settings" (sidebar) -> "Game Defaults", game-specific settings are in the settings icon on the game card / game page
Here's the game-specific settings buttons highlighted:


ratty-blush•4w ago
I’d recommend using GE-Proton and Umu rather than stock Proton
optimistic-goldOP•4w ago
As previously stated, the native game is for reference, the issue is with the not native
Doesn’t matter, doesn’t launch
The point is that it affects both native and non native
ratty-blush•4w ago
New log please
After every failed run after making changes, post a new log
optimistic-goldOP•4w ago
Native run fine when not using the launcher, non native run only when using Wine/Proton directly on executable, not through launcher. Window opens for fraction of second, disappears again
I will when I can
ratty-blush•4w ago
Thief Gold is also super old with calls to D3D9 in the log which suggests
d3dcompiler_43 or 47
may be neededratty-blush•4w ago
or not. launched ootb after heroic installed the redists https://0x0.st/8WrQ.log

My hunch here is that it's a GPU driver issue with Flatpak applications. To confirm this we'd need a new game log
The output of the following commands would also be helpful:
-
flatpak run --command=vulkaninfo com.heroicgameslauncher.hgl --summary
- flatpak run --command=vkcube com.heroicgameslauncher.hgl
(should display a spinning cube)
- nvidia-smi
- flatpak list --runtime -v
optimistic-goldOP•4w ago
Okay but why did it work before, and why does it work on regular wine
Alright, thank you, will send as soon as I am able
Usually if something needs d3dcompiler you'll see explicit mentions of it in the logs (
d3dcompiler
channel)
d3d
just means the game's using a D3D version < 8. Sometimes that goes well, sometimes it doesn't. Not a problem on its own
Regular Wine (or just running game executables with your file manager / terminal) runs them outside of the (potentially borked) Flatpak runtimeoptimistic-goldOP•4w ago
That makes sense
The new game log, do I take just any game that has this issue right now?
optimistic-goldOP•4w ago
Does like something funky is going on:
optimistic-goldOP•4w ago
Everything looks like you're right. It doesn't display a cube either. It's trying to use the integrated GPU
Okay, tested, when I restart with the iGPU, the games do launch
Strange only that others launch in both cases
That's what I suspected, your dGPU isn't shown there at all
Do send in the output of the last two commands, that'll have info we need to fix this
Probably gonna be a mismatch between installed Nvidia driver version & Flatpak runtime driver version, but I'd need those two commands to make sure
optimistic-goldOP•4w ago
Right, nvidia-smi is not installed. I need to find which one of the compute-utils is the adequate one
Seems you are correct
Alright,
flatpak update
should resolve this thenoptimistic-goldOP•4w ago
The alternative is the Appimage, right?
I would recommend staying on Flatpak, it's much easier to help you with issues there since Heroic runs in the runtime (so we know issues are either caused by the runtime or Heroic, not your distro)
optimistic-goldOP•4w ago
Alright. Why do so many versions show up of the driver?
Btw thanks a lot for the help, really appreciate it
You can remove the outdated ones, they were auto-installed in the past
optimistic-goldOP•4w ago
Perfect, it works! Thanks again
Only thing that is surprising is that MoI does launch
Can I tag this as solved?