Just Cause 2 crashes on startup

Questions about Wine on Linux
Locked
twaee
Level 2
Level 2
Posts: 40
Joined: Wed Mar 22, 2017 11:34 am

Just Cause 2 crashes on startup

Post by twaee »

I just installed Just Cause 2 and it crashed on startup. I know the app database says this game is garbage on wine, but that was more than 0.5 versions ago.

Code: Select all

fixme:winediag:start_process Wine Staging 2.8 is a testing version containing experimental patches.
fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
fixme:service:scmdatabase_autostart_services Auto-start service L"Hamachi2Svc" failed to start: 2
fixme:service:scmdatabase_autostart_services Auto-start service L"ReimageRealTimeProtector" failed to start: 2
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:module:load_library unsupported flag(s) used (flags: 0x00000800)
fixme:gameux:GameExplorerImpl_VerifyAccess (0x152bc0, L"C:\\Program Files (x86)\\Just Cause 2\\JustCause2.exe", 0x32f18c)
fixme:d3d9:D3DPERF_SetOptions (0x1) : stub
wine: Unhandled exception 0xc06d007e in thread 9 at address 0x7b43cb8c (thread 0009), starting debugger...
Unhandled exception: 0xc06d007e in 32-bit code (0x7b43cb8c).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7b43cb8c ESP:0032ec74 EBP:0032ecf8 EFLAGS:00000216(   - --  I   -A-P- )
 EAX:7b4291e5 EBX:0032ed2c ECX:0032eca0 EDX:0032ed7c
 ESI:00000000 EDI:00000000
Stack dump:
0x0032ec74:  00120010 7ffd8c00 36caf100 00fbde40
0x0032ec84:  68b21878 0032ecb0 c06d007e 00000000
0x0032ec94:  00000000 7b43cb8c 00000001 0032ed2c
0x0032eca4:  00000000 0032ecd8 7b45a266 7ffd8c00
0x0032ecb4:  00000000 00000000 00000408 68b21878
0x0032ecc4:  7b45a23c 0032ecf0 7b63c000 01058f9c
Backtrace:
=>0 0x7b43cb8c in kernel32 (+0x2cb8c) (0x0032ecf8)
  1 0x00c48131 in justcause2 (+0x848130) (0x0032ed70)
  2 0x00c396f2 in justcause2 (+0x8396f1) (0x0032f25c)
  3 0x0096fd56 in justcause2 (+0x56fd55) (0x0032f2f0)
  4 0x0066de66 in justcause2 (+0x26de65) (0x0032f30c)
  5 0x005291c3 in justcause2 (+0x1291c2) (0x0032f390)
  6 0x0042eb68 in justcause2 (+0x2eb67) (0x0032fd80)
  7 0x00a9d6ad in justcause2 (+0x69d6ac) (0x0032fe10)
  8 0x7b461649 call_process_entry+0x18() in kernel32 (0x0032fe38)
  9 0x7b4628fc in kernel32 (+0x528fb) (0x0032fe88)
  10 0x7bc86e5c call_thread_func_wrapper+0xb() in ntdll (0x0032feb8)
  11 0x7bc89f8f call_thread_func+0xce() in ntdll (0x0032ffa8)
  12 0x7bc86e3a RtlRaiseException+0x21() in ntdll (0x0032ffc8)
  13 0x7bc57ba3 call_dll_entry_point+0x422() in ntdll (0x0032ffe8)
  14 0xf752eded wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  15 0xf752ef50 wine_switch_to_stack+0x1f() in libwine.so.1 (0xffeaa838)
  16 0x7bc5ea8c LdrInitializeThunk+0x39b() in ntdll (0xffeaa8b8)
  17 0x7b468f80 __wine_kernel_init+0xa5f() in kernel32 (0xffeaba28)
  18 0x7bc5fa63 __wine_process_init+0x172() in ntdll (0xffeaba98)
  19 0xf752d027 wine_init+0x2c6() in libwine.so.1 (0xffeabaf8)
  20 0x7c000bc2 main+0x81() in <wine-loader> (0xffeabf58)
  21 0xf733e276 __libc_start_main+0xf5() in libc.so.6 (0x00000000)
0x7b43cb8c: addl	$12,%esp
Modules:
Module	Address			Debug info	Name (104 modules)
PE	  330000-  36e000	Deferred        fmod_event
PE	  370000-  3ba000	Deferred        cudart
PE	  400000- 14d2000	Export          justcause2
PE	 14e0000- 1692000	Deferred        fmodex
PE	 16a0000- 1f31000	Deferred        cufft
PE	10000000-1017b000	Deferred        steam_api
PE	78130000-781cb000	Deferred        msvcr80
ELF	7a800000-7a935000	Deferred        opengl32<elf>
  \-PE	7a820000-7a935000	\               opengl32
ELF	7b400000-7b7ec000	Dwarf           kernel32<elf>
  \-PE	7b410000-7b7ec000	\               kernel32
ELF	7bc00000-7bd03000	Dwarf           ntdll<elf>
  \-PE	7bc10000-7bd03000	\               ntdll
ELF	7c000000-7c004000	Dwarf           <wine-loader>
PE	7c420000-7c4a7000	Deferred        msvcp80
ELF	7d6c5000-7d6ea000	Deferred        gameux<elf>
  \-PE	7d6d0000-7d6ea000	\               gameux
ELF	7d70c000-7d72a000	Deferred        libgcc_s.so.1
ELF	7d8ab000-7d8e2000	Deferred        libtxc_dxtn_s2tc.so.0
ELF	7d907000-7d91b000	Deferred        api-ms-win-core-sysinfo-l1-2-1<e
PE	7d910000-7d91b000	Deferred        api-ms-win-core-sysinfo-l1-2-1
PE	7d91b000-7d930000	Deferred        api-ms-win-core-localization-l1-
PE	7d920000-7d930000	Deferred        api-ms-win-core-localization-l1-C:\windows\system32\api-ms-win-core-localization-l1-2-1.dll
ELF	7d930000-7d944000	Deferred        api-ms-win-core-fibers-l1-1-1<el
PE	7d940000-7d944000	Deferred        api-ms-win-core-fibers-l1-1-1
ELF	7d944000-7d97c000	Deferred        uxtheme<elf>
  \-PE	7d950000-7d97c000	\               uxtheme
ELF	7d97c000-7d983000	Deferred        libxfixes.so.3
ELF	7d983000-7d98e000	Deferred        libxcursor.so.1
ELF	7d99d000-7d9b1000	Deferred        api-ms-win-core-synch-l1-2-0<elf
PE	7d9a0000-7d9b1000	Deferred        api-ms-win-core-synch-l1-2-0
ELF	7d9f4000-7da1e000	Deferred        libexpat.so.1
ELF	7da1e000-7da67000	Deferred        libfontconfig.so.1
ELF	7da67000-7daa1000	Deferred        libpng16.so.16
ELF	7daa1000-7dabe000	Deferred        libz.so.1
ELF	7dabe000-7db71000	Deferred        libfreetype.so.6
ELF	7dc71000-7dc84000	Deferred        libxi.so.6
ELF	7dc84000-7dc91000	Deferred        libxrandr.so.2
ELF	7dc91000-7dc9d000	Deferred        libxrender.so.1
ELF	7dc9d000-7dcc3000	Deferred        libxcb.so.1
ELF	7dcc3000-7de0e000	Deferred        libx11.so.6
ELF	7de0e000-7de23000	Deferred        libxext.so.6
ELF	7de48000-7ded5000	Deferred        winex11<elf>
  \-PE	7de50000-7ded5000	\               winex11
ELF	7ded5000-7def9000	Deferred        imm32<elf>
  \-PE	7dee0000-7def9000	\               imm32
ELF	7df1c000-7df20000	Deferred        libxcomposite.so.1
ELF	7df20000-7df27000	Deferred        libxxf86vm.so.1
ELF	7df27000-7df3c000	Deferred        xinput1_3<elf>
  \-PE	7df30000-7df3c000	\               xinput1_3
ELF	7df3c000-7df58000	Deferred        dinput8<elf>
  \-PE	7df40000-7df58000	\               dinput8
ELF	7df58000-7e09d000	Deferred        wined3d<elf>
  \-PE	7df70000-7e09d000	\               wined3d
ELF	7e09d000-7e0dc000	Deferred        d3d9<elf>
  \-PE	7e0a0000-7e0dc000	\               d3d9
ELF	7e0dc000-7e107000	Deferred        iphlpapi<elf>
  \-PE	7e0e0000-7e107000	\               iphlpapi
ELF	7e107000-7e141000	Deferred        ws2_32<elf>
  \-PE	7e110000-7e141000	\               ws2_32
ELF	7e141000-7e15d000	Deferred        wsock32<elf>
  \-PE	7e150000-7e15d000	\               wsock32
ELF	7e15d000-7e188000	Deferred        msacm32<elf>
  \-PE	7e160000-7e188000	\               msacm32
ELF	7e188000-7e24c000	Deferred        msvcrt<elf>
  \-PE	7e1a0000-7e24c000	\               msvcrt
ELF	7e24c000-7e37f000	Deferred        oleaut32<elf>
  \-PE	7e260000-7e37f000	\               oleaut32
ELF	7e37f000-7e438000	Deferred        winmm<elf>
  \-PE	7e390000-7e438000	\               winmm
ELF	7e438000-7e4b8000	Deferred        rpcrt4<elf>
  \-PE	7e440000-7e4b8000	\               rpcrt4
ELF	7e4b8000-7e5f1000	Deferred        ole32<elf>
  \-PE	7e4d0000-7e5f1000	\               ole32
ELF	7e5f1000-7e6f0000	Deferred        comctl32<elf>
  \-PE	7e600000-7e6f0000	\               comctl32
ELF	7e6f0000-7e70b000	Deferred        aclui<elf>
  \-PE	7e700000-7e70b000	\               aclui
ELF	7e70b000-7e783000	Deferred        shlwapi<elf>
  \-PE	7e720000-7e783000	\               shlwapi
ELF	7e783000-7ea4c000	Deferred        shell32<elf>
  \-PE	7e790000-7ea4c000	\               shell32
ELF	7ea4c000-7eac4000	Deferred        advapi32<elf>
  \-PE	7ea60000-7eac4000	\               advapi32
ELF	7eac4000-7ebf3000	Deferred        gdi32<elf>
  \-PE	7ead0000-7ebf3000	\               gdi32
ELF	7ebf3000-7ed4a000	Deferred        user32<elf>
  \-PE	7ec10000-7ed4a000	\               user32
ELF	7ef4a000-7ef5d000	Deferred        libnss_files.so.2
ELF	7ef5d000-7ef6a000	Deferred        libnss_nis.so.2
ELF	7ef6a000-7ef85000	Deferred        libnsl.so.1
ELF	7ef85000-7efdb000	Deferred        libm.so.6
ELF	7efdb000-7efdf000	Deferred        libxinerama.so.1
ELF	7efdf000-7efe6000	Deferred        libxdmcp.so.6
ELF	7efe6000-7f000000	Deferred        version<elf>
  \-PE	7eff0000-7f000000	\               version
ELF	f7311000-f7315000	Deferred        libxau.so.6
ELF	f7315000-f731f000	Deferred        libnss_compat.so.2
ELF	f7321000-f7326000	Deferred        libdl.so.2
ELF	f7326000-f74e0000	Dwarf           libc.so.6
ELF	f74e0000-f74fd000	Deferred        libpthread.so.0
ELF	f7522000-f76f1000	Dwarf           libwine.so.1
ELF	f76f4000-f7719000	Deferred        ld-linux.so.2
ELF	f771b000-f771c000	Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files (x86)\Just Cause 2\JustCause2.exe
	["C:\Program Files (x86)\Just Cause 2\JustCause2.exe"]
	00000044    0
	00000043    0
	00000009    0 <==
0000000e services.exe
	0000003f    0
	0000003e    0
	0000003a    0
	00000034    0
	0000002e    0
	00000023    0
	0000001c    0
	00000019    0
	00000018    0
	00000016    0
	00000012    0
	0000000f    0
00000010 explorer.exe
	0000002d    0
	0000002c    0
	0000002b    0
	0000002a    0
	00000029    0
	00000011    0
00000014 winedevice.exe
	00000022    0
	0000001f    0
	0000001e    0
	0000001b    0
	0000001a    0
	00000015    0
00000020 plugplay.exe
	00000026    0
	00000025    0
	00000021    0
00000027 PnkBstrA.exe
	[C:\windows\syswow64\PnkBstrA.exe]
	00000031    0
	00000030    0
	00000028    0
00000032 PnkBstrB.exe
	[C:\windows\syswow64\PnkBstrB.exe]
	00000037    0
	00000036    0
	00000033    0
00000038 winedevice.exe
	00000042    0
	00000041    0
	00000040    0
	0000003d    0
	0000003c    0
	00000039    0
00000047 explorer.exe
	0000004c    0
	0000004b    0
	0000004a    0
	00000049    0
	00000048    0
System information:
    Wine build: wine-2.8 (Staging)
    Platform: i386 (WOW64)
    Version: Windows 7
    Host system: Linux
    Host version: 4.10.0-28-generic
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Just Cause 2 crashes on startup

Post by Bob Wya »

Just Cause 2 almost works in DirectX 11 mode... I was testing back in March this year - after another Wine user got it working and posted on this forum...

Full disclaimer: this game is still at a very early stage of DirectX 11 progress! Don't expect much to work yet! :cry:

See also: Reddit: WINE_GAMING/Just Cause 2 Running in Wine Staging 2.4 ...

You'll need to override Wine's Core GL Profile: see WineHQ: Useful Registry Keys.
Set: MaxVersionGL=0x30002
With:

Code: Select all

wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\Direct3D" /v "MaxVersionGL" /t "REG_DWORD" /d "0x30002"
I think I just had to add (it was months ago...):

Code: Select all

# GLSL error in console
winetricks -q d3dcompiler_43
and:

Code: Select all

# Cuda is stubbed to implement Nvidia Physx support - but currently doesn't do anything!
wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\AppDefaults\BioShock.exe\DllOverrides" "/v" "nvcuda" "/t" "REG_SZ" "/d" ""
I tested using the Nvidia proprietary driver and a Geforce GTX 960M.

Report back if it works or not...
If it doesn't then please also supply:

Code: Select all

glxinfo | grep 'OpenGL'
Also are you testing the Steam version of the game?

Ta
Bob
twaee
Level 2
Level 2
Posts: 40
Joined: Wed Mar 22, 2017 11:34 am

Re: Just Cause 2 crashes on startup

Post by twaee »

Ok well it didn't work. Same error as before. I looked at the link and my nvcuda is already disabled due to another gaming fix. I am pretty sure this is the steam version. Here is the glxinfo:

Code: Select all

$ glxinfo | grep 'OpenGL'
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Just Cause 2 crashes on startup

Post by Bob Wya »

Correction:
Bob Wya wrote:...

Code: Select all

# Cuda is stubbed to implement Nvidia Physx support - but currently doesn't do anything!
wine reg.exe ADD "HKEY_CURRENT_USER\Software\Wine\DllOverrides" "/v" "nvcuda" "/t" "REG_SZ" "/d" ""
...
Sorry for the copy-pasta fail there! :oops:

Bob
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Just Cause 2 crashes on startup

Post by Bob Wya »

twaee wrote:... Here is the glxinfo:

Code: Select all

$ glxinfo | grep 'OpenGL'
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile 
OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.0.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 17.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
I seriously doubt you'll get any Windows games running, with hard DX11 requirements, on an Intel GPU + Wine. Such games typically just about work with: Nvidia cards + proprietary drivers or recent AMD cards+Mesa 17.1.x (plus up-to-date kernel, etc.)

If you want to do a serious test you'd need a much more bleeding edge graphics stack. I don't use Intel GPU's - but I'd expect you need a minimum of Mesa 17.1.3 and perhaps a 4.11.x kernel??
twaee wrote:... I am pretty sure this is the steam version. ...
That's a bit of a disturbing statement - well certainly it means you've either got "early onset memory loss" or you're using a cracked copy of Just Cause 2! :shock:

Bob
twaee
Level 2
Level 2
Posts: 40
Joined: Wed Mar 22, 2017 11:34 am

Re: Just Cause 2 crashes on startup

Post by twaee »

Ok, I am going to keep Linux, but I will be partially switching to Windows (much as i hate windows) to be able to play games that I can't play on wine.

Also yes I do indeed have the cracked version. All my games are cracked because I am not in a currently good position to buy them. Once I get the resources to get them I will buy them. Until then all my games will remain cracked.

PS: copy-pasta??? lol, I love typos.

EDIT: Also using the cracked version first is a good way to avoid paying 60$ for a game you hate.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Just Cause 2 crashes on startup

Post by Bob Wya »

twaee wrote:Ok, I am going to keep Linux, but I will be partially switching to Windows (much as i hate windows) to be able to play games that I can't play on wine.

Also yes I do indeed have the cracked version. All my games are cracked because I am not in a currently good position to buy them. Once I get the resources to get them I will buy them. Until then all my games will remain cracked.

PS: copy-pasta??? lol, I love typos.

EDIT: Also using the cracked version first is a good way to avoid paying 60$ for a game you hate.
Yup that sounds fair enough. 8)

If there was only Origin around - as the main Digital Download platform - I'm sure everyone would still be pirating PC games... :roll:
Thankfully Steam sales take the sting out of AAA game purchases these days... :lol:

There's steady progress being made on DirectX 10/11 support in Wine... But will it be performant enough - in even a years time??
There is talk of building DirectX compatibility layers on top of the Linux Vulkan stack. Perhaps similar to what Gallium 9 does at present??
Wine Staging already supports Vulkan pass-through - which works quite well e.g. with Doom 2016 - which has a Vulkan renderer.

Personally I'm even contemplating building an AMD Zen-based system - with PCIe graphics pass-through for a guest Windows OS.
This is becoming slightly more mainstream - but will of course be expensive and involve a hell of a lot of troubleshooting!
You'd have to be a bit nuts to attempt this sort of thing though! :wink:

Bob
gukin
Newbie
Newbie
Posts: 2
Joined: Tue Jun 26, 2018 11:12 am

Re: Just Cause 2 crashes on startup

Post by gukin »

Reviving this topic since I just bought JC2 on the Steam Summer Sale and am considering becoming a maintainer for this title.
That said, I haven't gotten it working yet, in one prefix all I get is a blank screen with a Directx error (:14) and the other I get menus but everything is black.

Also, Bob, if you read this, my rig is a Ryzen Raven Ridge 2400G, Mageia 6, Mesa 18.0.2, Kernel 4.17.2.
gukin
Newbie
Newbie
Posts: 2
Joined: Tue Jun 26, 2018 11:12 am

Re: Just Cause 2 crashes on startup

Post by gukin »

I'm still having issues with JC3, I spent EIGHT($8!) on JC1, JC2 and JC3 but I can't get past the black screen in one prefix and can't get passed crashing in another.
Bob if you could help me get JC2 going, I might adopt the game as the maintainer.
BTW: I'm running Mageia 6, on a Raven Ridge 2400g, Mesa 18.1.2, 4.17.2.
Locked