Just Cause 2 (8190)
Using Proton 3.7-4 Beta Just Cause 2 crashes on startup with
Unhandled exception: privileged instruction in 32-bit code (0x00449000).
Logs: https://gist.github.com/stratus-ss/6aa9f13c36972cfd0868834d6bce7c50 System info gist: https://gist.github.com/stratus-ss/73e90ae7dcc42caf324190ea36e979cc
I am posting this one because I have seen this error in a few other games I have tried this past weekend. It seems to me there may be a common fix, but this is the game I have put the most time into overall
Juste Cause 2 is a DirectX 10 game and I think Proton does not integrate yet the DirectX 10 feature from DXVK (look at the changelog). Anyway, Just Cause 2 is too unstable to be playable with last Wine version and DXVK https://github.com/doitsujin/dxvk/issues/567.
Using Proton 3.16-1 Beta Just Cause 2 can be launched after several attempts.
Overwhelmingly unstable, despite great performance (constant 60 fps). If anyone wanted to give it a try, here is some hints (noticed when tested earlier DXVK d3d10):
- don't try to disable vsync, more fps - more frequent crashes
- HBAO, SSAO and VSync are unstable options, use
/FailSafecommand-line parameter to restore - use e.g.
/HBAO=0 /FramerateCap=30 /SSAO=0 /VSync=1command-line parameters for longer sessions - more info : https://pcgamingwiki.com/wiki/Just_Cause_2
I am using Proton 3.16-2 Beta. still unable to launch it here be the log
System info:
PROCESSOR: Intel Xeon E5-1607 0 @ 3.00GHz
Core Count: 4
Extensions: SSE 4.2 + AVX
Cache Size: 10240 KB
Microcode: 0x714
Scaling Driver: intel_pstate powersave
GRAPHICS: Gigabyte NVIDIA GeForce GTX 750 Ti 2048MB
Frequency: 1032/2700MHz
OpenGL: 4.6.0
Display Driver: NVIDIA 410.57
Monitor: DELL 1908FP
Screen: 1280x1024
MOTHERBOARD: INTEL X79
BIOS Version: 4.6.5
Chipset: Intel Xeon E5/Core
Audio: Realtek ALC662 rev3
Network: Realtek RTL8111/8168/8411
MEMORY: 16384MB
DISK: 160GB Western Digital WD1600JD-55H + 200GB SAMSUNG SP2004C
File-System: ext4
Mount Options: relatime rw
Disk Scheduler: CFQ
OPERATING SYSTEM: Arch rolling
Kernel: 4.18.11-arch1-1-ARCH (x86_64)
Desktop: KDE Plasma 5.13.5
Display Server: X Server 1.20.1
Compiler: GCC 8.2.1 20180831 + Clang 7.0.0 + LLVM 7.0.0 + CUDA 10.0
Security: KPTI + __user pointer sanitization + Full generic retpoline IBPB IBRS_FW + SSB disabled via prctl and seccomp Protection
The Game doesn't launch for me as well. In the log file is a trace. steam-8190.log
None of the parameters posted by @pchome helped.
Sysinfo: https://gist.github.com/NoXPhasma/0342aabb8fe583a36509c772718c179d Proton: 3.16-3 Beta
@NoXPhasma
can be launched after several attempts means dozens (sometimes), where it mostly crashing on loading screen for me.
I'm not going to smash the launch button just to be lucky at some point. If you look into my log file, you will see that there is a trace, so something wents really wrong and needs to be fixed or considered to be garbage.
If you look into my log file, you will see that there is a trace, so something wents really wrong and needs to be fixed or considered to be garbage.
Backtraces for this game are considered useless, even when I launch this in environment full of debug symbols -- I can see different points every time.
Backtrace:
=>0 0x7c0da0ce _ZN4dxvk18D3D11DeviceContext15BindFramebufferEi+0x28e() in d3d11 (0x0313fbd8)
Backtrace:
=>0 0x7c0e17e6 _ZN4dxvk21D3D11ImmediateContext9MapBufferEPNS_11D3D11BufferE9D3D11_MAPjP24D3D11_MAPPED_SUBRESOURCE+0x186() in d3d11 (0x0032f1c8)
Backtrace:
=>0 0x7c0b1072 _ZN4dxvk18D3D11DeviceContext18BindShaderResourceEjPNS_23D3D11ShaderResourceViewE+0x52() in d3d11 (0x0302f948)
and so on.
I'm not going to smash the launch button just to be lucky at some point.
Aaa..nd you shouldn't.
Fun fact: the game now works for PROTON_USE_WINED3D11=1 (aka DXVK disabled).
I successfully launched it three times in a row, just for curiosity.
d3dx10_42, d3dcompiler_43, d3dcompiler_47 are set to native
@pchome does not work for me. Then Winetricks can not install d3dcompiler_47, how did you install it?
I copied it from another prefix into game's directory.
But you can try winetricks from git. There is d3dcompiler_47 verb.
The game is stable for me with DXVK built from current git master.
SSAO should be disabled.
FPS =~50-60 with everything maxed (except AF/AA).
GPU Water Simulation wouldn't work, due to missing D3D10 implementation in nvcuda (this option will only appear if you using nvapi).
Also, see above referenced issue, if you trying to launch the game on odd days :face_with_head_bandage: .
Just Cause 2 crashes at startup for me as well. I added PROTON_LOG=1 %command% to the game's launch options and received the following log:
My system:
https://gist.github.com/Simmonz/43bcff5808cdb180aa995542353a6bb6
Good news... sorta. Proton 4.2 loads it to a black screen (doesn't crash beforehand at least). Had to Alt F4 and wait for the window manager to offer to kill the process.
Good news... sorta. Proton 4.2 loads it to a black screen (doesn't crash beforehand at least). Had to Alt F4 and wait for the window manager to offer to kill the process.
Proton 3.16-8 beta has always lead to a black screen on Just Cause 2 for me. Takes 2-3 minutes for the screen to load up though.
The game is fully functional on wine 3.21 and above (oldest version I tested) so this is definitely a proton issue.
There's some talk on here about the game being unstable with certain options selected. I don't use vsync, but the game runs butter smooth with everything as high as they can go on Nvidia's latest drivers in regular wine.
I tested JC2 with Wine 4.2 staging (Lutris version) + Steam for windows. The game launched and I can go to the aim menu and launch a demo. With Proton 4.2 nothing happened. I joined you the Proton log. steam-8190.log https://gist.github.com/legluondunet/8570a65372c3f7b9fea9c365c449cc59
@tsalwierz Ahh thanks. I thought I had tried on 3.16 and was getting the instant crash. Good to know.
Proton 4.2-3 still no joy getting it to run. steam-8190.log https://gist.github.com/lucifertdark/584c14275612e8e3c4a8070d428d8a02
It works with a cracked .exe and then install with protontricks: d3dcompiler_43, d3dcompiler_47 and d3dx10. It's not a good thing to use a cracked exe, I hope this DRM will be supported.
The DRM is, with no surprise, CEG. See https://github.com/ValveSoftware/Proton/issues/753
This game seems to work with recent Wine-Saging 5.5 version (and so soon in a future Proton version?).
After a lot of tests, I can finally launch this game (steam version). If you own the game on Steam, try this recipe: Install Windows Steam client in a 64 bits wineprefix, then you have to install some dll with winetricks: winetricks d3dcompiler_47 d3dx10_43 and not use wine vanilla but wine-staging 5.5.
Just Cause 2 (8190)
Issue transferred from https://github.com/ValveSoftware/Proton/issues/4644. @ioannis120 posted on 2021-02-22T13:28:37:
Compatibility Report
- Just Cause 2
- App ID:8190 -Proton version:Experimental
https://gist.github.com/ioannis120/c664f015742641d8441b0f4fdddf985b steam-8190.log
It does not start it is also here but no the same issue:https://github.com/ValveSoftware/Proton/issues/670
Just cause 2: crash on startup
Issue transferred from https://github.com/ValveSoftware/Proton/issues/4692. @nerzhul posted on 2021-03-25T09:14:32:
Compatibility Report
- Name of the game with compatibility issues: Just cause 2
- Steam AppID of the game: 8190
System Information
- GPU: RX 5800
- Driver/LLVM version: mesa 20.3.4
- Kernel version: 5.11.8-arch1-1
- Link to full system information report as Gist:
- Proton version: 5.13
I confirm:
- [x] that I haven't found an existing compatibility report for this game.
- [x] that I have checked whether there are updates for my system available.
<Proton log omitted, please see #4692>
Symptoms
Game crash on startup
Reproduction
Just launch the game
After some debugging myself, I can confirm the game crashes in Proton due to the Steam DRM working improperly. Code that should get mapped to a certain address doesn't, and the game crashes on an invalid instruction due to this.
Even once that's fixed, it tries to compile shaders that are unsupported with Wine's current built-in d3dcompiler and ends up hanging at a black screen. Hopefully this adds some context for anyone trying to work on this in the future.
I'm curious if this game will end up working on the Steam Deck. Valve did say they couldn't find a game that didn't just work. Does that mean there's an in-house Steam build with the necessary DRM-implementation in place?
Works for me on latest beta client and experimental proton. Just had to run some proton fixes to fix direct x issue.
Just had to run some proton fixes to fix direct x issue.
@smintman What DirectX issues are you talking about? I made the game work with DXVK back in 2019, are there any issues with it now?
Can’t remember the exact error but was something about Direct x 10 fatal error
Looked in proton db and some where suggesting
using
protontricks 8190 dlls d3dx10 d3dcompiler_43 d3dcompiler_47
Which did the trick and ran amazingly. If I could run it without using the above proton ticks that would be even better?
I have gotten the game to work properly including a workaround for the game staying permanently minimized. The game seems to detect the xbox 1 controller ok as an option menu shows up for x360 controller. The benchmark tool runs. I didn't actually play the game yet though.
Currently you need to switch Proton Experimental to the "bleeding-edge" beta. Then set the following launch options for the game. PROTON_NO_FSYNC=1 PROTON_NO_ESYNC=1 %command% /borderless=1 Then in steam re-validate the game files then launch it. Launch is kinda slow but it works. :+1: Esync or Fsync may actually work with CEG but I didn't test. Benchmark showed the game running at 144fps at max settings already.
Note that at least for me the game will be permanently stuck minimized if you don't use the borderless command line switch option. This may work differently depending on DE or number of monitors connected. The game doesn't have a borderless switch in the game, just fullscreen on/off so you have to set it on command line. The game has a binary settings file so even if you could set borderless in the settings file it would be difficult.
Edit: also I had ran "protontricks 8190 d3dx10 d3dcompiler_43 d3dcompiler_47" on the prefix.
Actually, i had to flatpak install flathub com.github.Matoking.protontricks and after had to flatpak run com.github.Matoking.protontricks 8190 d3dx10 d3dcompiler_43 d3dcompiler_47 But i confirm, i can open it.
I did not have to "PROTON_NO_FSYNC=1 PROTON_NO_ESYNC=1 %command% /borderless=1" yet.