Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Divinity Original Sin 2 appid 435150

Open FreeLikeGNU opened this issue 6 years ago • 318 comments

D:OS2 will not start after installation (SupportTool.exe). Some users report that using the EoCApp.exe and WINE dll override xaudio2_7 allows the game to run, but for me, I get only as far as a black screen and the game cursor with those modifications.

OS: Ubuntu 18.04 bionic Kernel: x86_64 Linux 4.15.0-32-generic Resolution: 1920x1080 DE: XFCE WM: Xfwm4 CPU: Intel Core i5-3470 @ 4x 6.3GHz GPU: GeForce GTX 1070 driver 396.54 RAM: 2030MiB / 15989MiB

FreeLikeGNU avatar Aug 24 '18 16:08 FreeLikeGNU

I'm not having any joy with installation, either. No useful error message at command line, but installation appears to fail during or just after Microsoft DotNet framework.

EoCApp.exe can be made to run using standard Wine 3.0.2, but blackscreens.

Distro: Ubuntu Mate18.04 Kernel: 4.15.0-32-generic Resolution: 1920x1080 CPU: AMD Ryzen 1600 six-core GPU: 4GB AMD Radeon 6990 (Caymen), Padoka driver (see https://launchpad.net/~paulo-miguel-dias/+archive/ubuntu/mesa) RAM: 16GB

KGOrphanides avatar Aug 24 '18 19:08 KGOrphanides

It certainly seems to me as if the issue is .Net. In CrossOver I had been able to run it perfectly by simply specifying the executable (and skipping Steam).

nstgc avatar Aug 25 '18 02:08 nstgc

I renamed EoCApp.exe to SupportTool.exe for it to load with proton. I used proton_winedbg_run (modified to override xaudio2_7) with the following results (black screen, game cursor):


./proton_winedbg_run2
wine: Call from 0x7b43c45c to unimplemented function mscoree.dll.CorIsLatestSvc, aborting
wine: Unimplemented function mscoree.dll.CorIsLatestSvc called at address 0x760023:0x7b43c45c (thread 0015), starting debugger...
WineDbg starting on pid 0035
0x000000007bc8f905 DbgBreakPoint+0x1 in ntdll: ret	
Wine-dbg>next
start_process () at /home/proton/proton/wine/dlls/kernel32/process.c:1067
1067	    return entry( peb );
Wine-dbg>next
Thread ID=0041 not in our list of threads -> can't rename
Thread ID=0042 not in our list of threads -> can't rename
Thread ID=0043 not in our list of threads -> can't rename
Thread ID=0044 not in our list of threads -> can't rename

https://paste.ubuntu.com/p/XhcsthMtwd/

FreeLikeGNU avatar Aug 25 '18 03:08 FreeLikeGNU

Tried again with some overrides and taskset -c 1 (as suggested by this workaround: https://bugs.winehq.org/show_bug.cgi?id=29215)

please see this gist: https://gist.github.com/FreeLikeGNU/efb26bebb40fc13a3fb78f2c0b0c78f5

FreeLikeGNU avatar Aug 25 '18 18:08 FreeLikeGNU

@FreeLikeGNU Did it work? I'm assuming it failed, but could you clarify?

nstgc avatar Aug 25 '18 19:08 nstgc

@nstgc It failed with the same result of black screen and game cursor, but I got more information from the debug output, so maybe a step closer?

FreeLikeGNU avatar Aug 25 '18 21:08 FreeLikeGNU

Error logs are indeed a step forward!

nstgc avatar Aug 25 '18 21:08 nstgc

I get the exact same error.

Some people have had success by just renaming the app. Most likely a video driver issue.

notfood avatar Aug 26 '18 08:08 notfood

@notfood and anyone else getting this, it may help to post your system information from Steam's Help menu:

https://steamcommunity.com/sharedfiles/filedetails/?id=390278662

FreeLikeGNU avatar Aug 28 '18 16:08 FreeLikeGNU

https://gist.github.com/nstgc/02457d7920931a3f8d69cc7b9fa41a2c

nstgc avatar Aug 28 '18 16:08 nstgc

https://gist.github.com/notfood/4937609d291bf79316eb60cc818fde17#file-steam-system-information-txt

notfood avatar Aug 28 '18 17:08 notfood

Hmm could it be lack of hyperthreading or something about realtek audio chips that DOS2 on WINE does not like? I've tried testing in Mint, Manjaro and Xubuntu (with xaudio2_7 and renamed exe's) with the same results. On the same hardware running Xubuntu and Manjaro I can run Witcher 3 and Skyrim SE just fine.

FreeLikeGNU avatar Aug 28 '18 20:08 FreeLikeGNU

I don't see a way to enable it. I can play Witcher 3 and Skyrim.

notfood avatar Aug 28 '18 22:08 notfood

It's not very likely to be a Realtek audio issue - I'm using an external USB audio device and appear to be having the same difficulties.

In my case, at least, my bet is firmly on some combination of (maybe) DotNet and (very likely) driver issues with my powerful-but-ancient Radeon 6990.

Steam info, and I've switched to the stock radeon driver to provide more representative results while submitting Proton test results: https://gist.github.com/KGOrphanides/c0fe99f0d9824a8ab434907637c07400

KGOrphanides avatar Aug 29 '18 08:08 KGOrphanides

https://gist.github.com/Elisto/b27246d9bfa63f4fbd110616cec1cb2d same problem here black screen + mouse

sinnate avatar Aug 30 '18 21:08 sinnate

D:OS2 updated to "Definite Edition" and can't run anymore.

notfood avatar Aug 31 '18 10:08 notfood

The "bin" folder now contains the frontend. The steam/steamapps/common/Divinity Original Sin 2/ folder now contains "Classic" and "DefEd" folders each with their own set of executable. No luck getting the frontend working so far.

FreeLikeGNU avatar Aug 31 '18 12:08 FreeLikeGNU

I got the game to work without any add/winetricks/installation and even skipping the script installation from steam.

Since D:OS2 and D:OS2 Difinitive Edition is DRM free I can run the game without steam, thanks to this I could troubleshoot a little further.

I managed to set up a seperate WINEPREFIX for my own and use Wine 3.7 on it, the game just did not want to start, the black screen, I figure I had to install XACT. Out of curiosity I tried Wine-Staging 14 (cleaning my WINEPREFIX fully) I made it work without installing XACT, just like that, no problem playing the game. Even using Wine 3.14 had the same affect, no problems no extra installations. The problem was, it was without the steam-environment, as I can play the game it feels naked on the multiplayer side, I still want the steam version run like the steam version (how it's supposed to run).

So what I take from this is that I have wait until Valve update Proton to a newer Wine-base version.

Note: I used Lutris for this troubleshooting (Easier to force kill the WINEPREFIX when needed). I also may have LSI (Linux Steam Integration) on but it does not have any affect on this "experiment".

OS: Solus x86_64 Kernel: 4.17.17-87.current Shell: bash 4.4.19 Resolution: 1920x1080 DE: Budgie CPU: Intel i7-2600K (8) @ 3.800GHz GPU: AMD ATI Radeon R9 290 Total Memory: 20040MiB

Sethox avatar Aug 31 '18 13:08 Sethox

@Sethox maybe I'm getting a bit off topic here but here is output of my fresh wineprefix of wine-staging 3.14 with DXVK .70 (no xact) with Witcher3 (runs great) and D:OS2 DE (blackscreen). I really dont know what to make of this or the fact that DOS2 runs for some of us but not others. Maybe there is some other system configuration that is blocking this!?

https://gist.github.com/FreeLikeGNU/5d438df7aa8a6b8c851f768e4839722c

FreeLikeGNU avatar Sep 01 '18 02:09 FreeLikeGNU

after testing a few machines using the same Xubuntu 18.04.1 nvidia 396.54, wine staging 3.14 and DXVK .70 I get: Intel(R) Core(TM) i5-3470 CPU, GTX1070 - fail Intel(R) Core(TM) i5-4590 CPU, GTX 680 - fail Intel(R) Core(TM) i7-3630QM CPU, GTX 670MX - runs great Intel(R) Core(TM) i7-2679QM CPU, GTX670 - runs great

all tested machines run The Witcher 3 in that same prefix fine (except for the minor known texture streaming issue)

FreeLikeGNU avatar Sep 01 '18 20:09 FreeLikeGNU

Have not been able to run D:OS2; been trying since it came out. Now I tried with Proton, but results in black screen just like with regular wine (or wine + DXVK).

Ubuntu 18.04 CPU: Intel(R) Core(TM) i5-4460 @ 3.20GHz (family: 0x6, model: 0x3c, stepping: 0x3) GPU: GeForce GTX 950 driver 396.54 RAM: 8GB

Been running games like Witcher 3 or Kingdom Come: Deliverance just fine.

ksterker avatar Sep 02 '18 14:09 ksterker

@FreeLikeGNU May be game tries to detect graphics settings on first run? What if copy generated settings from working system to non-working?

lieff avatar Sep 02 '18 17:09 lieff

I'm one of those who never got the game to run with wine. Just like @FreeLikeGNU, the game would would segfault (and create a minidump) and than hang with the black screen.

So I debugged the game a while back, and I'm very sure, that the problem isn't gpu related at all.

What I found out: On game start, during the initialization of the game's audio engine (Audiokinetic Wwise), a new thread is created. When this thread is executed first, it makes a call to some subroutine within the engine. However, unlike on Windows, on Wine the pointer to that subroutine contains an invalid memory address. The call to that address causes the thread to segfault. I assume the game hangs at this point because other threads are waiting for the thread forever to release locked semaphores.

As the crash happens before xaudio2_7.dll is even loaded, installing xact doesn't help in this case.

Sadly, I couldn't find a solution or workaround to get it running. I can only assume it's somewhat related to .NET, which Wwise is based on. Maybe in invalid vtable or something like that.

Rotscha avatar Sep 02 '18 18:09 Rotscha

@Rotscha any idea why it might work on some machines and not others, like perhaps the audio chipset or driver?

EDIT: I disabled my onboard audio via bios, no effect.

FreeLikeGNU avatar Sep 03 '18 00:09 FreeLikeGNU

Could it be that the people running it have simple 2.1 audio and D:OS2 is trying to do something fancy for 5.1/7.1 users?

notfood avatar Sep 03 '18 05:09 notfood

@notfood That is a possibility I did not think myself. Since it's about audio..

My test did involve a headphone so it's basically "2.1". For those that does not work for, what audio setup do you have?

Sethox avatar Sep 03 '18 14:09 Sethox

@lieff that was my line of thinking when I used an external drive with xubuntu and the game installed in a known working configuration. This is a portable system I can use to test on lots of hardware quickly with game configuration saved. I built the installation with the non-working hardware tested again on that and then tested with working hardware (and those ran the game). I then ran the game on the non-working hardware again to verify (and hope maybe something changed the games configuration file to work) but results remained the same.

FreeLikeGNU avatar Sep 03 '18 14:09 FreeLikeGNU

I'm using a simple stereo setup, nothing fancy at all, hooked to line out of the mainboard. Can't get much simpler than that, but no dice.

ksterker avatar Sep 03 '18 16:09 ksterker

Reading things around and looking at the spreadsheet (https://docs.google.com/spreadsheets/d/1DcZZQ4HL_Ol969UbXJmFG8TzOHNnHoj8Q1f8DIFe8-8/htmlview?sle=true#gid=0)

I notice that some people compile their own proton version direct from source, that seems to work for most of the people. I cannot get it to work with steam's own version (beta or the other), only if I make my own WINEPREFIX with newer mainline wine version.

Edit: I just validated the game folder, and bam more than 30 files "failed to validate", so disregard my message.

Sethox avatar Sep 03 '18 21:09 Sethox

I think @Rotscha is on the right track, I wish I had the skills to debug how a game interacts with WINE, my biggest fear it will require a hack that even staging wont touch for it to start up for everyone with a multi-core CPU from at least 2012 and Vulkan capable GPU . (not just those with the right combination of hardware). WineHQ doesn't care about any results that involve DXVK (already had my tests revoked there).

FreeLikeGNU avatar Sep 04 '18 03:09 FreeLikeGNU