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

Elite Dangerous (359320) #150

Open
KewaiiGamer opened this issue Aug 22, 2018 · 582 comments
Open

Elite Dangerous (359320) #150

KewaiiGamer opened this issue Aug 22, 2018 · 582 comments
Labels
AMD RADV Possible driver issues with RADV Game compatibility - Unofficial Games not expected to work without issues Mesa drivers Possibly involves an issue with a Mesa video driver .NET Uses the .NET framework NVIDIA drivers Possibly involves an issue with the NVIDIA proprietary driver Regression Confirmed working on an older version of Proton

Comments

@KewaiiGamer
Copy link

KewaiiGamer commented Aug 22, 2018

I've just tried starting Elite Dangerous and it seems to not even display the game at all. It just starts and 1 second later it shuts down

I don't know how would I debug it so I would be glad if someone could instruct me on how to enable verbose for Proton Games

OS: Ubuntu 18.04
CPU: AMD Ryzen 5 1600X
GPU: Nvidia GeForce 1050 Ti 3GB
Driver Version: Nvidia Driver 396

@kisak-valve kisak-valve added the Game compatibility - Unofficial Games not expected to work without issues label Aug 22, 2018
@simon50keda
Copy link

simon50keda commented Aug 22, 2018

  1. Navigate to <steam>/steamapps/common/Proton 3.7
  2. Rename user_settings.sample.py to user_settings.py and try to run the game again.
  3. Now go to your home directory and you will find steam-<appid>.log file in there.

@BrandonDyer64
Copy link

At the bottom of the log, I get this:

pid 30513 != 30512, skipping destruction (fork without exec?)

I think the terminal is asking a question and expecting a response. I tried running Steam in a terminal, but it didn't render this. I'm also not sure how to directly run the game itself in a terminal.

Somehow, I think I just need to answer this question. Adding -y to the launch options doesn't help.

@kisak-valve kisak-valve changed the title [BUG] Elite Dangerous doesn't start [BUG] Elite Dangerous doesn't start (359320) Aug 23, 2018
@Faeranne
Copy link

Faeranne commented Aug 24, 2018

This simply means that the game didn't fork, spawn a new process to continue, so wine/steam didn't need to kill the child process. This almost always shows up once a game using proton closes, successful or not. A sort of rhetorical question for anyone reading the logs.

@Faeranne
Copy link

also, Elite: Dangerous still doesn't correctly run inside wine environments. It's mostly there, but so-far only one of the tutorials has actually been run using wine. Unfortunately, it appears that the launcher for Elite is still not successfully running, which is what is crashing. In general, if a game doesn't launch with Steam Play enabled, there is a good chance it just doesn't work in a wine environment yet.

@diraven
Copy link

diraven commented Aug 25, 2018

I tried it with proton and lots of standalone wine setups with and without dxvk. None have worked, sadly... Hopefully, this will change some day.

@mirh
Copy link

mirh commented Aug 28, 2018

@unlimitedbacon
Copy link

Here is a complete log file.
steam-359320.log

Running Proton 3.7-5 Beta.
Steam System Info

@physios
Copy link

physios commented Sep 1, 2018

Probably the most important part of that log, idk just trying to be useful

`15872.052:0008:0009:trace:module:load_dll Loaded module L"Z:\home\neo\.local\share\Steam\SteamApps\common\Elite Dangerous\EDLaunch.exe" (native) at 0x400000

15872.052:0008:0009:err:module:LdrInitializeThunk Main exe initialization for L"Z:\home\neo\.local\share\Steam\SteamApps\common\Elite Dangerous\EDLaunch.exe" failed, status c0000017

15872.054:000c:0026:trace:module:MODULE_InitDLL (0x7feca1c40000 L"rpcrt4.dll",THREAD_ATTACH,(nil)) - CALL

15872.054:000c:0026:trace:module:MODULE_InitDLL (0x7feca1c40000,THREAD_ATTACH,(nil)) - RETURN 1

15872.054:000c:0027:trace:module:MODULE_InitDLL (0x7feca1c40000 L"rpcrt4.dll",THREAD_ATTACH,(nil)) - CALL

15872.054:000c:0027:trace:module:MODULE_InitDLL (0x7feca1c40000,THREAD_ATTACH,(nil)) - RETURN 1

15872.071:000c:0025:trace:module:MODULE_InitDLL (0x7feca1c40000 L"rpcrt4.dll",THREAD_ATTACH,(nil)) - CALL

15872.071:000c:0025:trace:module:MODULE_InitDLL (0x7feca1c40000,THREAD_ATTACH,(nil)) - RETURN 1

15872.072:000c:0028:trace:module:MODULE_InitDLL (0x7feca1c40000 L"rpcrt4.dll",THREAD_ATTACH,(nil)) - CALL

15872.072:000c:0028:trace:module:MODULE_InitDLL (0x7feca1c40000,THREAD_ATTACH,(nil)) - RETURN 1

15872.072:0018:001c:trace:module:LdrShutdownThread ()`

@ghost ghost mentioned this issue Sep 26, 2018
@fls2018
Copy link

fls2018 commented Oct 19, 2018

I'd like to add some update on this, with latest Proton versions dotnet installing is fixed so using winetricks/protontricks with a version of wine where dotnet40 doesn't fail (in my case I got 3.17 staging as my system wine) you can install dotnet40 into the Proton prefix.

i.e.
1/ cd to the 359320 compatdata folder

2/ WINEPREFIX=$PWD/pfx winetricks corefonts dotnet40 vcrun2012 quartz

3/ WINEPREFIX=$PWD/pfx winecfg - then set mode back to win7

After doing that launcher should open,but that's only the first half of the battle. There are a number of issues, first is openvr_api_dxvk.dll prevents the main game from displaying the splash screen. Second is a problem previously a roadblock in wine where the CRC check fails making the main game unplayable. Third is another new issue where even the previously playable combat demo would freeze despite working perfectly in standard wine.

@fls2018
Copy link

fls2018 commented Oct 22, 2018

Update: Game is now working in wine but not proton, here's my compatibility report.

Compatibility Report

  • Name of the game with compatibility issues: Elite Dangerous
  • Steam AppID of the game: 359320

System Information

  • GPU: GTX 1070
  • Driver/LLVM version: Nvidia 396.54.09
  • Kernel version: 4.18
  • Proton version: 3.16-3

steam-359320.log

Symptoms

Game now works in Wine staging 3.18 with DXVK using a simple registry fix listed here: https://forums.frontier.co.uk/showthread.php/366894-How-to-install-ED-on-Linux-using-Wine-EXPERIMENTAL-NOT-OFFICIALLY-SUPPORTED?p=7082698&viewfull=1#post7082698

However game still freezes in Proton even after applying the same fixes, the login issue has been resolved but something "Proton specific" causes the game to freeze a minute after starting up.

Here's it running under Wine staging: https://youtu.be/JcDY4WFENug

Reproduction

Similar to the steps in this video: https://youtu.be/jG7TUOXZhng

1/ winetricks corefonts dotnet40 vcrun2012 quartz into the 359320 pfx.

2/ regedit the 359320 pfx and do the following to match the machineGuid of both keys:

Navigate to HKLM/Software/Microsoft/Cryptography
Copy Value
Navigate to HKLM/Software/Wow6432Node/Microsoft/Cryptography
Paste Value

3/ winecfg and set mode to Win7

The above will make the launcher and game start in Steam/Proton and will also fix the authentication error, however game will freeze in about a minute (sometimes sooner). This doesn't happen under Wine staging therefore issue is to do with Proton.

Also @byte1024 post from other thread:

From the log

159005.320:0008:0034:trace:module:LdrUnloadDll (L"rsaenh.dll") - START
159005.320:0008:0034:trace:module:MODULE_DecRefCount (L"rsaenh.dll") ldr.LoadCount: 2
159005.320:0008:0034:trace:module:LdrUnloadDll END
159005.320:0008:0034:fixme:ole:Context_CC_ContextCallback (0x3aadd80/0x3aadd84)->(0x791c8272, 0x30ecc38, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
159005.320:0008:0034:fixme:ole:Context_CC_ContextCallback (0x3aadd80/0x3aadd84)->(0x791c8272, 0x30ecbc4, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
159005.320:0008:0034:fixme:ole:Context_CC_ContextCallback (0x3aadd80/0x3aadd84)->(0x791c8272, 0x30ecbc4, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
159005.320:0008:0034:trace:seh:raise_exception code=c0000005 flags=0 addr=0x15de5665 ip=15de5665 tid=0034
159005.320:0008:0034:trace:seh:raise_exception  info[0]=00000000
159005.320:0008:0034:trace:seh:raise_exception  info[1]=00000000
159005.320:0008:0034:trace:seh:raise_exception  eax=00000000 ebx=000000d5 ecx=030eca20 edx=1d4d94a0 esi=03eda098 edi=03ab3a1c
159005.320:0008:0034:trace:seh:raise_exception  ebp=030ecae8 esp=030eca80 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010206

rsaenh.dll is Microsoft Enhanced Cryptographic Provider. Must have to do with the registry change. Not sure why it works differently with Wine VS Proton though.

Wine 3.18 does have two changes however, so not sure if that makes a difference here:

  rsaenh: Move PKCS1 padding and unpadding functions.
  rsaenh: Implement RSA OAEP.

https://www.winehq.org/announce/3.18

Would have to see where the exception is going to.

Wonder if the dll provided with Wine would solve it with Proton?

I've tried this and it doesn't work, it seems Proton itself uses a builtin rsaenh library and doesn't launch when you try to use a native version.

Also I'm not sure Cryptography is the issue anymore as this freeze occurs even on the combat demo which was working perfectly fine in wine before the registry fix.

@fls2018
Copy link

fls2018 commented Oct 26, 2018

Another update: Thanks to RedMcG again on the frontier forums I have now got into the game in Steam Proton... BUT using anymore than one CPU core will freeze the game.

screenshot from 2018-10-26 13-35-38

Simply follow the winetricks, regedit & winecfg steps in the post above, to get into the game without it crashing "taskset -c 0 %command%" needs to be set in the launch options. Obviously not very playable but it works.

Bu the question is why using more than one thread cause issues with this game in Proton yet not with Wine Staging?

@mirh
Copy link

mirh commented Oct 26, 2018

The esync patch set is probably the first diff that comes to mind..

@fls2018
Copy link

fls2018 commented Oct 26, 2018

The esync patch set is probably the first diff that comes to mind..

I'be already tried PROTON_NO_ESYNC=1 %command% , tried older versions of Proton too no difference. Tried WineD3D instead of DXVK still freezes up.

Maybe some implementation Wine has which Proton's missing?

@LudusLight
Copy link

I'm having trouble with your solution. I feel like I could be missing something obvious, considering I'm new at troubleshooting Proton, but perhaps this may come in useful anyways.

I tried the following on two distributions (Solus 3.9 & Ubuntu 18.04):

  1. Run winetricks corefonts dotnet40 vcrun2012 quartz in the pfx
  2. regedit the pfx, copying the key from /HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/ to /HKEY_LOCAL_MACHINE/Software/Wow6432Node/Microsoft/Cryptography
  3. Set the mode to Windows 7 in winecfg within the pfx
  4. Set the launch options to taskset -c 0 %command% (as well as trying without)

After doing that, launching the game has no effect. There is no launcher, and no game. Here are the log files:

steam-359320-ubuntu.log
steam-359320-solus.log

@ghost
Copy link

ghost commented Oct 27, 2018

I'm having trouble with your solution. I feel like I could be missing something obvious, considering I'm new at troubleshooting Proton, but perhaps this may come in useful anyways.

I tried the following on two distributions (Solus 3.9 & Ubuntu 18.04):

1. Run `winetricks corefonts dotnet40 vcrun2012 quartz` in the pfx

2. `regedit` the pfx, copying the key from `/HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/` to `/HKEY_LOCAL_MACHINE/Software/Wow6432Node/Microsoft/Cryptography`

3. Set the mode to `Windows 7` in `winecfg` within the pfx

4. Set the launch options to `taskset -c 0 %command%` (as well as trying without)

After doing that, launching the game has no effect. There is no launcher, and no game. Here are the log files:

steam-359320-ubuntu.log
steam-359320-solus.log

At least with Ubuntu you're getting:
13053.551:0008:0009:err:module:LdrInitializeThunk Main exe initialization for L"Z:\\media\\bigboy\\SteamLibrary\\steamapps\\common\\Elite Dangerous\\EDLaunch.exe" failed, status c0000017

I'm not sure why though. The log doesn't have anything immediately noticeable to me. Comparing it to Solus is the only difference I notice:

"19373.147:0008:0009:trace:module:load_dll Loaded module L"Z:\\home\\light\\.local\\share\\Steam\\steamapps\\common\\Elite Dangerous\\EDLaunch.exe" (native) at 0x400000" ... continues on ...

Perhaps bad exe on Ubuntu or the storage location doesn't work well? If there's something else in the log, I don't feel like trying to find it =)

With Solus:
19373.233:0008:0009:err:mscoree:CLRRuntimeInfo_GetRuntimeHost Wine Mono is not installed
So that's self explanatory.

@fls2018
Copy link

fls2018 commented Oct 27, 2018

I'm having trouble with your solution. I feel like I could be missing something obvious, considering I'm new at troubleshooting Proton, but perhaps this may come in useful anyways.

I tried the following on two distributions (Solus 3.9 & Ubuntu 18.04):

  1. Run winetricks corefonts dotnet40 vcrun2012 quartz in the pfx
  2. regedit the pfx, copying the key from /HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/ to /HKEY_LOCAL_MACHINE/Software/Wow6432Node/Microsoft/Cryptography
  3. Set the mode to Windows 7 in winecfg within the pfx
  4. Set the launch options to taskset -c 0 %command% (as well as trying without)

After doing that, launching the game has no effect. There is no launcher, and no game. Here are the log files:

steam-359320-ubuntu.log
steam-359320-solus.log

I should be clearer as you don't appear to have mscoree listed in your log.

First thing needed is having at least wine staging 3.17 or higher installed on your system to install dotnet40, along with installing winetricks.

Assuming you have steam installed in the default place open terminal and type (replacing yourusernamehere with yours):

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx winetricks corefonts dotnet40 vcrun2012 quartz

Install those clicking on the accept when installers pop up then:

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx regedit

Edit the keys as stated above then:

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx winecfg

Change to win7.

All done the launcher should work, you might get rundll32.exe errors but just continue on.

@LudusLight
Copy link

I'm having trouble with your solution. I feel like I could be missing something obvious, considering I'm new at troubleshooting Proton, but perhaps this may come in useful anyways.
I tried the following on two distributions (Solus 3.9 & Ubuntu 18.04):

  1. Run winetricks corefonts dotnet40 vcrun2012 quartz in the pfx
  2. regedit the pfx, copying the key from /HKEY_LOCAL_MACHINE/Software/Microsoft/Cryptography/ to /HKEY_LOCAL_MACHINE/Software/Wow6432Node/Microsoft/Cryptography
  3. Set the mode to Windows 7 in winecfg within the pfx
  4. Set the launch options to taskset -c 0 %command% (as well as trying without)

After doing that, launching the game has no effect. There is no launcher, and no game. Here are the log files:
steam-359320-ubuntu.log
steam-359320-solus.log

I should be clearer as you don't appear to have mscoree listed in your log.

First thing needed is having at least wine staging 3.17 or higher installed on your system to install dotnet40, along with installing winetricks.

Assuming you have steam installed in the default place open terminal and type (replacing yourusernamehere with yours):

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx winetricks corefonts dotnet40 vcrun2012 quartz

Install those clicking on the accept when installers pop up then:

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx regedit

Edit the keys as stated above then:

WINEPREFIX=/home/yourusernamehere/.steam/steam/steamapps/compatdata/359320/pfx winecfg

Change to win7.

All done the launcher should work, you might get rundll32.exe errors but just continue on.

This was a full fix. Thank you.

@FurretUber
Copy link

After using all the winetricks and changing the values in regedit as proposed here, the game crashes in the shader loading stage. When I'm lucky I can see the shaders loading until 10% and then the game crashes. I tried both with DXVK and with Wine D3D11, tried setting video memory in regedit to 128 MB and to 2048 MB but had no luck.

The errors using DXVK and Wine D3D11 are different but seem related:

Wine D3D11:

2851.011:00ab:00c8:err:seh:call_stack_handlers invalid frame 58a3c478 (0x58b02000-0x58c00000)
2851.011:00ab:00c8:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception.

DXVK

2169.251:00aa:00d3:err:seh:setup_exception stack overflow 3760 bytes in thread 00d3 eip 00007f85128ef532 esp 0000000058ed0760 stack 0x58ed0000-0x58ed2000-0x58fd0000

The complete logs:

steam-359320-d3d11.log
steam-359320-dxvk.log

On Windows, both host and iGVT-g guest, shader loading takes 1 or 2 seconds.

System specifications.

@amalon
Copy link

amalon commented Nov 5, 2018

Wine D3D11:

2851.011:00ab:00c8:err:seh:call_stack_handlers invalid frame 58a3c478 (0x58b02000-0x58c00000)
2851.011:00ab:00c8:err:seh:NtRaiseException Exception frame is not in stack limits => unable to dispatch exception.

DXVK

2169.251:00aa:00d3:err:seh:setup_exception stack overflow 3760 bytes in thread 00d3 eip 00007f85128ef532 esp 0000000058ed0760 stack 0x58ed0000-0x58ed2000-0x58fd0000

I get the same thing with Haswell desktop integrated graphics:

cpuinfo:
model name : Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz

vulkaninfo:
apiVersion = 0x401050 (1.1.80)
driverVersion = 75505668 (0x4802004)
vendorID = 0x8086
deviceID = 0x0412
deviceType = INTEGRATED_GPU
deviceName = Intel(R) Haswell Desktop

glxinfo:
Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) Haswell Desktop (0x412)
Version: 18.2.4

I had put it down to being Intel graphics specific (there's a warning about the vulkan driver being incomplete), which you also appear to be using.

@FurretUber
Copy link

I don't think it's Vulkan, more specifically Intel ANV, the problem. If it was, the bug that happened when using Wine D3D11 translation to OpenGL would be different. Notice how the addresses from the error messages are very close, it seems to be some common code between i965 and ANV or even the i915 kernel driver.

@redmcg
Copy link

redmcg commented Nov 5, 2018

But the question is why using more than one thread cause issues with this game in Proton yet not with Wine Staging?

I looked in to that and found the answer lies with a single patch in wine-staging:
https://github.com/wine-staging/wine-staging/blob/master/patches/ntdll-futex-condition-var/0001-ntdll-Add-a-futex-based-condition-variable-implement.patch

I patched Proton 3.16-4 Beta with this patch and now it runs fine without needing any tweaks to the launch options.

I just created a fork which, in addition to the above, fixes a few other things with ED in Proton 3.16:

  • key-bindings (and presets)
  • intro videos (winetricks quartz not needed)
  • CRC Error (no work-around required - it runs launcher with wine64)

I'm happy to share the binaries if anyone knows a decent place to upload them. I haven't tested them on another machine yet, but I compiled against the Steam Runtime - so I think they should work on distros other than Ubuntu 18.04 (on which I compiled).

@agates
Copy link

agates commented Nov 5, 2018

In case anyone comes here with "preparing planet generation system" issues on Horizons, there are some AMD-specific DXVK issues along with some work arounds. Check out doitsujin/dxvk#36.

@Rabcor
Copy link

Rabcor commented Nov 6, 2018

This game apparently can run pretty well but it requires wine 3.19 staging. Requires dotnet452 vcrun2012 to run correctly.

https://www.youtube.com/watch?v=XsirDkR6ZQw

@redmcg why don't you create a pull request for proton's wine with that patch?

@redmcg
Copy link

redmcg commented Nov 6, 2018

@redmcg why don't you create a pull request for proton's wine with that patch?

I have now (see ValveSoftware/wine#33) - but taking a look at the ones that are there I don't see much success (after all - these patches are for one game tested on a single machine).

But I do think Valve cherry-pick the ones that interest them from upstream - so this may bring the individual patches some attention.

@Rabcor
Copy link

Rabcor commented Nov 6, 2018

@redmcg why don't you create a pull request for proton's wine with that patch?

I have now (see ValveSoftware/wine#33) - but taking a look at the ones that are there I don't see much success (after all - these patches are for one game tested on a single machine).

But I do think Valve cherry-pick the ones that interest them from upstream - so this may bring the individual patches some attention.

This patch was upstream in wine staging right? They'll probably apply it then, if it was good enough for wine-staging, it's probably good enough for proton.

@redmcg
Copy link

redmcg commented Nov 7, 2018

I've created a Git 'release' that includes a tarball with the binaries from my fork. It's compiled on Ubuntu 18.04.1 but against the steam runtime - so I think it should be fine on other distros. I'd be interested to hear how it goes (on other machines and potentially with other games). You can find instructions and the release here:
https://github.com/redmcg/wine/releases/tag/ED_Proton_3.16-4_Beta

@kisak-valve
Copy link
Member

Hello @jgacas, from your Proton log:

radv: GPUVM fault detected at address 0x80015c8a0000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x641051
	 CLIENT_ID: (TCP) 0x8
	 MORE_FAULTS: 1
	 WALKER_ERROR: 0
	 PERMISSION_FAULTS: 5
	 MAPPING_ERROR: 0
	 RW: 1
err:   DxvkSubmissionQueue: Command submission failed: VK_ERROR_DEVICE_LOST

This looks like a video driver issue which should be mentioned to your video driver vendor if it hasn't been already.

@kisak-valve kisak-valve added Mesa drivers Possibly involves an issue with a Mesa video driver AMD RADV Possible driver issues with RADV labels Mar 14, 2024
@jgacas
Copy link

jgacas commented Mar 14, 2024

Thanks for the tip @kisak-valve , I'll search bug trackers to see if there is similar issue already reported.

@Gyrfalcon5
Copy link

Had Elite working well ~6 months ago, came back to it recently and having a lot of trouble with it. Frequent crashes, especially when flying close to planetary surfaces. Could be something in one of the recent updates, or my system could have updated since then. System info:

Distro:EndeavourOS Linux
Kernel:6.8.9-zen1-2-zen
RAM:32 GB
GPU Driver:4.6 Mesa 24.0.6-arch1.2
GPU:AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.57, 6.8.9-zen1-2-zen)
CPU:AMD Ryzen 7 5700X 8-Core

Proton log:
steam-359320.log

The issue happens with regular proton, experimental, GE, various versions. Tried a few launch flags, including switching Vulkan implementations. I have my GPU power limited so I know it is not overheating. I'm 100% open to it being a driver issue, I just can't confidently say based on the logs. If someone more knowledgeable could take a look and let me know if I'm barking up the wrong tree that would be great. Thanks!

@kisak-valve
Copy link
Member

Hello @Gyrfalcon5, check if https://gitlab.freedesktop.org/drm/amd/-/issues/3343 is relevant to your system. A quick test would be to reboot into an older kernel and see how the game behaves.

@alexzk1
Copy link

alexzk1 commented May 13, 2024

Btw, I have now 6.8.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 May 2024 17:49:46 +0000 x86_64 GNU/Linux.
For the long time (like 2-3 months) I had to keep 6.7.9 too because playing games was making kernel panic.

@Gyrfalcon5
Copy link

Hello @Gyrfalcon5, check if https://gitlab.freedesktop.org/drm/amd/-/issues/3343 is relevant to your system. A quick test would be to reboot into an older kernel and see how the game behaves.

@kisak-valve thank you for this! I didn't have an older kernel handy but I decided to be bold and compiled 6.9 with linux-tkg. Things seem to be working much better now.

@CMDR-WDX
Copy link

CMDR-WDX commented May 17, 2024

I can confirm that the game no longer crashes on Terrain Generation on Startup or when close to a planet when running on linux-mainline (Linux archlinux 6.9.0-1-mainline).

(CPU: AMD Ryzen 5 3600X, GPU: AMD Radeon 7800 XT, 16GB)

@poinck
Copy link

poinck commented Jun 26, 2024

I can also confirm, that ED is running stable again with linux-6.9.6 with AMD RX 6700 XT.

Previously I had issues with planet generation on startup or near planets, too, with linux-6.6.x .

@KitsuneNoNatsu
Copy link

So, I have the issue wherein I can't launch the game if I have an extra monitor plugged in, I use a laptop, with my main display being external
The launcher crashes instantly
But if I unplug the monitor, open the launcher, open the game, and plug my monitor back in, I can play like normal, but the launcher just becomes a black rectangle

@HeroBrine1st
Copy link

HeroBrine1st commented Jun 28, 2024

So, I have the issue wherein I can't launch the game if I have an extra monitor plugged in, I use a laptop, with my main display being external The launcher crashes instantly But if I unplug the monitor, open the launcher, open the game, and plug my monitor back in, I can play like normal, but the launcher just becomes a black rectangle

Try min-ed-launcher. Sometimes frontier changes something and you'll need to launch the game once via their launcher anyway, but most of the time it works normally and launches the game.

Tip: you don't need to include terminal emulator in launch options, you can see logs of launcher in journalctl. Handy when the game simply does not start due to this launcher.

@KitsuneNoNatsu
Copy link

KitsuneNoNatsu commented Jun 28, 2024 via email

@HeroBrine1st
Copy link

HeroBrine1st commented Jun 28, 2024

I'll give it a try, the AUR version of mined didn't work, will try the .exe one

I simply downloaded the linux binary in the game folder, near the frontier launcher itself. Startup command then looks like this: ./MinEdLauncher %command% /edo /autorun /autoquit (without all proton things for brevity).

There's a subtle requirement that took me a while: make sure that your ~/.config supports executables (has no noexec flag) - mined places their .so there. If it is not, move bundle extraction dir using DOTNET_BUNDLE_EXTRACT_BASE_DIR environment variable (example).

P.s. Today I learned there's an AUR version.
P.s.s. actually journalctl --user shows logs of min-ed-launcher. More precisely, it is steam that logs stdout of launched processes. Use that to troubleshoot your problem properly. Or just add terminal emulator to launch command.

@KitsuneNoNatsu
Copy link

KitsuneNoNatsu commented Jun 28, 2024 via email

@kisak-valve
Copy link
Member

Elite Dangerous (359320) 2024

Issue transferred from #7861.
@vernwinkle posted on 2024-06-29T05:58:12:

Compatibility Report

  • Elite: Dangerous
  • App ID 359320

System Information

  • GPU: embedded i7-1365U
  • Video driver version: GL 4.6 - Mesa/Mesa-Vulkan 22.3.6 (Debian Bookworm up-to-date)
  • Kernel version: 6.1.0-21
  • Link to full system information report: https://gist.github.com/vernwinkle/6e5a3fc0d72c20fbceaa3e5e79721afc
  • Proton version: Experimental (20240628)
  • Launch: gamemoderun %command% (maintainer version of gamemode.ini)

I confirm:

  • [N] that I haven't found an existing compatibility report for this game.
  • [Y] that I have checked whether there are updates for my system available.

Symptoms

The launcher is hogging CPU except/until a game has launched and exited or possibly just a time-lapse having occurred.

I cannot enter the game with the Odyssey expansion selected. The first item on the Odyssey menu is 'Start' and it appears to be running an introduction/tutorial which terminates after three lines of green text with an Orange Sidewinder error. No 'Stuck Recovery' just permanent error. I suspect possibly some missing content in this introductory sequence but can't rule out a Proton-related or platform-related issue.

If I play the Horizons expansion, I initially couldn't get past the 'Planet Generation' step until what I believe was a 'shader update.'
I can now enter the Horizons game flawlessly except, if I attempt to enter the atmosphere of a planet, as I transition from orbital-flight to orbital glide or orbital-flight to emergency-drop, at that point I immediately get an Orange Sidewinder error with game exit to menu and upon attempting a restart I will immediately get the Orange Sidewinder until/unless I perform a 'Stuck Recovery' first. I have tried reducing my display resolution to 640x320 and minimising all of the performance settings. I normally would choose 1600x900 with the 'mid' performance profile.

I have a relatively high-latency internet connection. I don't have any reason/insight to rule latency in or out as a contributing factor.

I have the 'Optimus' dual GPU design in this laptop, with the discrete GPU being an Nvidia A500 RTX. I have the various bumblebee packages installed. I can happily run glxgears (and various native apps) with either GPU using 'optirun' but have yet to see the Steam client recognise the discrete GPU at all.

@kisak-valve
Copy link
Member

Hello @vernwinkle, please copy the contents of Steam Runtime Diagnostics from Steam (Steam -> Help -> Steam Runtime Diagnostics) and put it in a gist, then include a link to the gist in this issue report. In particular, I'm curious if your NVIDIA gpu is listed in the x11/vulkan sections.

If the game isn't choosing your NVIDIA GPU, I'd try to run the game using NVIDIA's PRIME Render Offload (https://download.nvidia.com/XFree86/Linux-x86_64/550.90.07/README/primerenderoffload.html). Try setting the game's launch options to __NV_PRIME_RENDER_OFFLOAD=1 %command% and see if that has an effect. You can also check what's using the NVIDIA gpu at any time using the nvidia-smi utility.

The GPU that's being used to render the Steam client is unrelated to what's used by the game.

@kakra
Copy link
Contributor

kakra commented Jun 29, 2024

@vernwinkle @kisak-valve At least I can confirm that this game has problems starting if it sees more than one GPU. I do not use render offload or anything like that, and NVIDIA is my main GPU. But my Xorg server sees both my NVIDIA GPU and my Intel iGPU (which has no monitors connected), and to make this game work, I need to use DXVK_FILTER_DEVICE_NAME="NVIDIA" otherwise the game doesn't properly start or just crashes.

@vernwinkle
Copy link

@kisak-valve
Copy link
Member

Thanks "Can't open bumblebee display." at https://gist.github.com/vernwinkle/6c766763daf013dca043c12cfb1a55fc#file-steam_runtime_diagnostics_20240629-L327 is a detail to focus on. Your bumblebee setup doesn't have a usable Vulkan render path, so the Intel GPU is the only usable option to render the game.

@vernwinkle
Copy link

vernwinkle commented Jun 29, 2024

nvidia-vulkan-icd is already the newest version (525.147.05-7~ deb12u1).
nvidia-vulkan-icd:i386 is already the newest version (525.147.05-7~ deb12u1)
libtinfo6 is already the newest version (6.4-4).
libtinfo6:i386 is already the newest version (6.4-4)

I found and installed the missing nvidia vdpau driver, but the vulkan issue might require me to think :)

Update: vulkaninfo output may have a clue, https://gist.github.com/vernwinkle/26771fbb5813235a1f423ca1219ee2d8
Update: vulkaninfo output with overrides, https://gist.github.com/vernwinkle/9f3377f54336b21c2daf8205da5d111b
Update: steam client with overrides, https://gist.github.com/vernwinkle/a4f79cc5f2e1e260d4229bb85f2713ec
Update: vkcube, https://gist.github.com/vernwinkle/3ce1c076c5e31c6caeb0ac8593b74b8f

I'm a little out of my depth here.

@silikeite
Copy link

Noticed this issue as it was mentioned in my old primus_vk issue (which I don't use anymore).

If I remember correctly, you need to disable/uninstall your bumblebee setup to use PRIME render offload, as it gives the same functionality anyways. If kisak-valve's recommendation for the launch options doesn't work, my distro uses a synonym for this: __NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia %command% .

@vernwinkle
Copy link

vernwinkle commented Jul 3, 2024

Not ready to abandon bumblebee on my system for the sake of running steam, yet.. I don't see prime-offloading working alongside bumblebee, maybe I'm mistaken? Running the native VKCube app seems to operate flawlessly. All of the non-Proton/Wine-related testing comes up 100%.

I've had ED Odyssey running once on my NVIDIA GPU under bumblebee and am trying to get back there.

  1. Typically I have to launch an empty process (e.g. /bin/bash) with optirun in order to get the NVIDIA kernel module loaded and staying loaded.
  2. I need to launch the steam client with ENABLE_PRIMUS_LAYER=1. PrimusVK finds both GPUs but I end up with steam on the integrated GPU which is fine. If I however attempt optirun with the steam client I get a crash.
  3. I then launch ED with gamemoderun %command%

I had one seemingly random success playing through the Odyssey intro/tutorial (NVIDIA=525), and beyond that I get a number of launches with nothing but a black screen with eventual mouse pointer appearing.

I've now had my NVIDIA driver update from 525 to 535 and instead I'm back to the game process crashing, The 32bit training demo gives;

7406.029:058c:0630:warn:seh:handle_syscall_fault backtrace: --- Exception 0xc0000005 at 0xe6
66b0e8: /usr/lib/pressure-vessel/overrides/lib/i386-linux-gnu/libnvidia-glcore.so.535.183.01 + 0x19710e8.

The 64-bit Odyssey and Horizons seem to be back in shader-hell with the Windows crash dialog appearing at around shader-compilation time. I'm hoping when the caching expires I might see an improvement. There is a post on the NVIDIA developer forums indicating I might need to update from 535 to 550, but I'm hooked onto the nvidia-current under Debian bookworm at the moment, not sure how a forced upgrade happens.

Update: Steam Runtime Diagnostics # 2: https://gist.github.com/vernwinkle/8d5d9bed8018a9fb434b4bad0bdeea1d

@alexzk1
Copy link

alexzk1 commented Jul 3, 2024

As far, as I know bumblebee is old and outdated :/ I got laptop with 2 GPUs 2 years ago for the 1st time, and bumblebee was not recommended already. I used nvidia-prime package on Arch. Script is:

export GAMEMODERUNEXEC=prime-run
export PROTON_HIDE_NVIDIA_GPU=0 
export PROTON_ENABLE_NVAPI=1 
export VKD3D_CONFIG=dxr,dxr11 
export PROTON_ENABLE_NGX_UPDATER=1
export VKD3D_FEATURE_LEVEL=12_2
export MANGOHUD_CONFIG="fps_limit=60,fps_limit_method=early,no_display"
mangohud gamemoderun "$@" &>/dev/null &

mangohud is used to change the order of when FPS is limited (limiters are off in-game). This way mouse's cursor on buttons works better in Elite.

Also I use nvidia-beta driver now. Last couple months they had many problems in stable branches. I have: 555.58. Earlier "stables" had libglcore crashes + later kernel panic in Witcher 3.

@silikeite
Copy link

silikeite commented Jul 3, 2024 via email

@vernwinkle
Copy link

My issues don't appear to be related to bumblebee atm. I will possibly move to PRIME at some point but at present I don't want regression/complication.

Bumblebee is a unified method across different GPU hardware but is likely/probably less efficient than PRIME. If somebody would pinpoint the issue that is bumblebee-related, preventing me from running ED, I will be happy to change tack.

@alexzk1
Copy link

alexzk1 commented Jul 4, 2024

Try different kernel/driver version combinations.
Last most stable I recall was 6.7.9 kernel / headers/api-headers + current nvidia 535 that time.
Than it was hell with each upgrade so I had to freeze upgrades for some time.
Now kernel 6.9.7 and nvidia 555 work OK with Elite after reboot. Witcher 3 does not do kernel panic any more but still need reboot after it, as it makes intel's card lagging, for example highlight cursor starst to teleport into mc when you hold arrow scroll key. Reboot fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMD RADV Possible driver issues with RADV Game compatibility - Unofficial Games not expected to work without issues Mesa drivers Possibly involves an issue with a Mesa video driver .NET Uses the .NET framework NVIDIA drivers Possibly involves an issue with the NVIDIA proprietary driver Regression Confirmed working on an older version of Proton
Projects
None yet
Development

No branches or pull requests