Escape from Tarkov 0.4 (Unity game) crashing after login

Questions about Wine on Linux
Post Reply
Level 2
Level 2
Posts: 15
Joined: Sun May 07, 2017 1:00 pm

Escape from Tarkov 0.4 (Unity game) crashing after login

Post by Faalagorn » Sat Nov 18, 2017 5:48 am

I was thinking whether to fill a bug report or make a forum post, but eventually decided to post on forums, just in case I am missing something obvious here. If needed I can fill a bug report later, though.

Escape from Tarkov is game made in Unity 3D engine which I'm maintaining in AppDB. Despite having an offline mode for the time being, the game requires you to have working internet connection and log in to play. In previous game builds and on previous wine the game worked just fine except the graphical glitches after logging in. However, since the latest version (and Wine) it always crash after logging in with valid credentials (invalid ones cause in-game error to show but no crash). Due to the online nature I can't test the old build with the new wine past that unfortunately.

The most recent version as of writing is Beta version (closed beta). While previous version had enabled D3D9 and Vulkan renderers, this one only have D3D11, though it's worth noting that the previous versions did work with D3D11, despite with mouse issues which are seem to be gone in newer Wine versions. This version also has upgraded Unity Engine from 5.6.2p2 to 5.6.3p3.

While I have the game files, unfortunately the game is not free to download, and even if it would, you'd need an account to see the error. There's also no demo or some tech demos available to download. However, with the upcoming open beta scheduled roughly for the end of this year, there might be more people able to test it.

Either way, the game crashes with the error message from Unity and creates a folder with crash dump and error logs. The error file can be suppressed with -silent-crashes command line parameter, but the game still crashes. It's also worth noting that the crash message appeared in the same moment in previous versions as well, but could be safely ignored. Here are the contents of the error.log and output_log.txt on Pastebin. There's also 2.6MB crash.dmp file, but it's too big to attach.

Most often the game just freezes afterwards after clicking "OK", with "err:ntdll:RtlpWaitForCriticalSection section 0x7bd2eb80 "../../../wine-staging/dlls/ntdll/signal_x86_64.c: dynamic_unwind_section" wait timed out in thread 0050, blocked by 004e, retrying (60 sec)" error showing multiple times and the only option to close it is to kill the process (e.g. killall EscapeFromTarkov.exe), but rarely it shows the WineDB crash window allowing me to save backtrace.txt file:

Code: Select all

Unhandled exception: page fault on read access to 0x247a19fc in 64-bit code (0x000000007bc75711).
Register dump:
 rip:000000007bc75711 rsp:000000000022cff0 rbp:000000000022d130 eflags:00010246 (  R- --  I  Z- -P- )
 rax:0000000021900000 rbx:0000000000000002 rcx:0000000021900000 rdx:0000000000000008
 rsi:000000000022d040 rdi:0000000000010000  r8:0000000000010000  r9:00000000247a19f8 r10:0000000004400000
 r11:0000000000000246 r12:00000000247a1a00 r13:0000000000010000 r14:00000000247a19f8 r15:0000000000010000
Stack dump:
0x000000000022cff0:  0000000000000000 000000007bc783ac
0x000000000022d000:  0000000000000000 0000000000000000
0x000000000022d010:  0000000000000000 0000000000000000
0x000000000022d020:  0000000000000000 00000000000100a8
0x000000000022d030:  00000000000100b0 0000000000000000
0x000000000022d040:  0000000021900000 642648e682fef400
0x000000000022d050:  000000001f852a50 4016e4ed6177d9c1
0x000000000022d060:  0000000000000000 4a79653d75355361
0x000000000022d070:  0000000000000000 0000000000202020
0x000000000022d080:  0000000000000000 ffffff0000ffffff
0x000000000022d090:  000000ffffffff00 0000000000202020
0x000000000022d0a0:  0000000000000000 0000000000000000
=>0 0x000000007bc75711 in ntdll (+0x35711) (0x000000000022d130)
  1 0x000000007bc783ac RtlFreeHeap+0x21b() in ntdll (0x000000000022d130)
  2 0x00007fcad72f1593 in dbghelp (+0x21592) (0x00000000000012da)
  3 0x00007fcad72f1693 in dbghelp (+0x21692) (0x00000000000012da)
  4 0x00007fcad72ef296 in dbghelp (+0x1f295) (0x000000001f851c70)
  5 0x00007fcad72dafbd SymCleanup+0xec() in dbghelp (0x000000000022d2b0)
  6 0x0000000140979d68 in escapefromtarkov (+0x979d67) (0x000000000022d6e0)
  7 0x0000000140983ec3 in escapefromtarkov (+0x983ec2) (0x000000000022d6e0)
  8 0x000000007b45113c UnhandledExceptionFilter+0xbb() in kernel32 (0x000000000022d6e0)
  9 0x000000007bce0409 __wine_unwind_trampoline+0xa8() in ntdll (0x000000000022e410)
  10 0x000000007bcb88f8 in ntdll (+0x788f7) (0x000000000022fdd0)
  11 0x000000007bcb8dee NtRaiseException+0x13d() in ntdll (0x000000000022def0)
  12 0x000000007bcb9207 in ntdll (+0x79206) (0x000000000022df40)
  13 0x000000007bcb346a raise_func_trampoline+0x1() in ntdll (0x000000000022e4b8)
0x000000007bc75711: movl	0x0000000000000004(%r9),%edx
Module	Address					Debug info	Name (175 modules)
PE	        155e0000-        157b2000	Deferred        eft_88nb155u
ELF	        7a800000-        7a9e0000	Deferred        opengl32<elf>
  \-PE	        7a850000-        7a9e0000	\               opengl32
ELF	        7b400000-        7b817000	Dwarf           kernel32<elf>
  \-PE	        7b420000-        7b817000	\               kernel32
ELF	        7bc00000-        7bd44000	Dwarf           ntdll<elf>
  \-PE	        7bc40000-        7bd44000	\               ntdll
ELF	        7c000000-        7c004000	Deferred        <wine-loader>
PE	       140000000-       1416b3000	Export          escapefromtarkov
PE	       180000000-       1802dc000	Deferred        mono
ELF	    7fcad594d000-    7fcad5c2e000	Deferred        msvcrt<elf>
  \-PE	    7fcad5970000-    7fcad5c2e000	\               msvcrt
ELF	    7fcad6c31000-    7fcad6e7e000	Deferred        usp10<elf>
  \-PE	    7fcad6c40000-    7fcad6e7e000	\               usp10
ELF	    7fcad72be000-    7fcad752e000	Dwarf           dbghelp<elf>
  \-PE	    7fcad72d0000-    7fcad752e000	\               dbghelp
ELF	    7fcad752e000-    7fcad7816000	Deferred        crypt32<elf>
  \-PE	    7fcad7540000-    7fcad7816000	\               crypt32
ELF	    7fcaec05f000-    7fcaec265000	Deferred
ELF	    7fcaec265000-    7fcaec485000	Deferred        bcrypt<elf>
  \-PE	    7fcaec270000-    7fcaec485000	\               bcrypt
ELF	    7fcaec485000-    7fcaec6c5000	Deferred        rsaenh<elf>
  \-PE	    7fcaec490000-    7fcaec6c5000	\               rsaenh
ELF	    7fcaec85e000-    7fcaeca98000	Deferred
ELF	    7fcaed45d000-    7fcaed698000	Deferred
ELF	    7fcaede90000-    7fcaee0a5000	Deferred        xinput1_3<elf>
  \-PE	    7fcaedea0000-    7fcaee0a5000	\               xinput1_3
ELF	    7fcaee0a5000-    7fcaee358000	Deferred
ELF	    7fcaee358000-    7fcaee585000	Deferred
ELF	    7fcaee585000-    7fcaee78c000	Deferred
ELF	    7fcaee78c000-    7fcaeea04000	Deferred
ELF	    7fcaeea04000-    7fcaeec0a000	Deferred
ELF	    7fcaeec0a000-    7fcaeee82000	Deferred
ELF	    7fcaeee82000-    7fcaef105000	Deferred
ELF	    7fcaef105000-    7fcaef356000	Deferred
ELF	    7fcaef356000-    7fcaef583000	Deferred        winepulse<elf>
  \-PE	    7fcaef360000-    7fcaef583000	\               winepulse
ELF	    7fcaef583000-    7fcaef7a8000	Deferred        mmdevapi<elf>
  \-PE	    7fcaef590000-    7fcaef7a8000	\               mmdevapi
ELF	    7fcaef7a8000-    7fcaef9bd000	Deferred
ELF	    7fcaef9bd000-    7fcaefbd2000	Deferred
ELF	    7fcaefbd2000-    7fcaefdf8000	Deferred
ELF	    7fcaefdf8000-    7fcaf0000000	Deferred
ELF	    7fcaf40d1000-    7fcaf43ed000	Deferred
ELF	    7fcaf43ed000-    7fcaf466c000	Deferred
ELF	    7fcaf466c000-    7fcaf4875000	Deferred
ELF	    7fcaf4875000-    7fcaf4ac6000	Deferred
ELF	    7fcaf4ac6000-    7fcaf4d59000	Deferred
ELF	    7fcaf4d59000-    7fcaf4f8e000	Deferred
ELF	    7fcaf4f8e000-    7fcaf51c6000	Deferred
ELF	    7fcaf51c6000-    7fcaf53d9000	Deferred
ELF	    7fcaf53d9000-    7fcaf574a000	Deferred
ELF	    7fcaf574a000-    7fcaf5a7a000	Deferred
ELF	    7fcaf5a7a000-    7fcaf5c7e000	Deferred
ELF	    7fcaf5c7e000-    7fcaf5e8b000	Deferred
ELF	    7fcaf5e8b000-    7fcaf60c3000	Deferred
ELF	    7fcaf60c3000-    7fcaf62d4000	Deferred
ELF	    7fcaf62d4000-    7fcaf64e1000	Deferred
ELF	    7fcaf64e1000-    7fcaf684c000	Deferred
ELF	    7fcaf684c000-    7fcaf6a50000	Deferred
ELF	    7fcaf6a50000-    7fcaf6c83000	Deferred
ELF	    7fcaf6c83000-    7fcaf6f69000	Deferred
ELF	    7fcaf6f69000-    7fcaf71b6000	Deferred
ELF	    7fcaf71b6000-    7fcaf7444000	Deferred
ELF	    7fcaf747e000-    7fcaf76c6000	Deferred        winspool<elf>
  \-PE	    7fcaf7490000-    7fcaf76c6000	\               winspool
ELF	    7fcaf76c6000-    7fcaf7908000	Deferred        wbemprox<elf>
  \-PE	    7fcaf76d0000-    7fcaf7908000	\               wbemprox
ELF	    7fcaf8260000-    7fcafa188000	Deferred
ELF	    7fcafa188000-    7fcafa38c000	Deferred
ELF	    7fcafa38c000-    7fcafa6c8000	Deferred
ELF	    7fcafa6c8000-    7fcafa97e000	Deferred
ELF	    7fcafa97e000-    7fcafabaf000	Deferred
ELF	    7fcafabaf000-    7fcafae3a000	Deferred
ELF	    7fcafae3a000-    7fcafb03f000	Deferred
ELF	    7fcafb03f000-    7fcafb3b2000	Deferred        wined3d-csmt<elf>
  \-PE	    7fcafb060000-    7fcafb069000	\               wined3d
ELF	    7fcafb3b2000-    7fcafb5df000	Deferred        dxgi<elf>
  \-PE	    7fcafb3c0000-    7fcafb5df000	\               dxgi
ELF	    7fcafb5df000-    7fcafb873000	Deferred        d3d11<elf>
  \-PE	    7fcafb5f0000-    7fcafb873000	\               d3d11
ELF	    7fcafb873000-    7fcafba89000	Deferred        shcore<elf>
  \-PE	    7fcafb880000-    7fcafba89000	\               shcore
ELF	    7fcafbbe1000-    7fcafbdf6000	Deferred        mswsock<elf>
  \-PE	    7fcafbbf0000-    7fcafbdf6000	\               mswsock
ELF	    7fcafbdf6000-    7fcafc009000	Deferred        psapi<elf>
  \-PE	    7fcafbe00000-    7fcafc009000	\               psapi
PE	    7fcafc02b000-    7fcafc23f000	Deferred        api-ms-win-core-winrt-string-l1-
PE	    7fcafc030000-    7fcafc23f000	Deferred        api-ms-win-core-winrt-string-l1-C:\windows\system32\api-ms-win-core-winrt-string-l1-1-0.dll
ELF	    7fcafc23f000-    7fcafc454000	Deferred        api-ms-win-core-com-l1-1-1<elf>
  \-PE	    7fcafc240000-    7fcafc454000	\               api-ms-win-core-com-l1-1-1
ELF	    7fcafc454000-    7fcafc675000	Deferred        combase<elf>
  \-PE	    7fcafc460000-    7fcafc675000	\               combase
ELF	    7fcafc675000-    7fcafc888000	Deferred        api-ms-win-core-winrt-l1-1-0<elf
PE	    7fcafc680000-    7fcafc888000	Deferred        api-ms-win-core-winrt-l1-1-0
ELF	    7fcafc988000-    7fcafcbc5000	Deferred        uxtheme<elf>
  \-PE	    7fcafc990000-    7fcafcbc5000	\               uxtheme
ELF	    7fcafcbc5000-    7fcafcdcb000	Deferred
ELF	    7fcafcdcb000-    7fcafcfd6000	Deferred
ELF	    7fcafd2ad000-    7fcafd4df000	Deferred
ELF	    7fcafd4df000-    7fcafd724000	Deferred
ELF	    7fcafd724000-    7fcafd997000	Deferred
ELF	    7fcafd997000-    7fcafdbc3000	Deferred
ELF	    7fcafdbc3000-    7fcafdee2000	Deferred
ELF	    7fcafdee2000-    7fcafe181000	Deferred
ELF	    7fcafe181000-    7fcafe398000	Deferred
ELF	    7fcafe398000-    7fcafe5ce000	Deferred
ELF	    7fcafe5ce000-    7fcafe7de000	Deferred
ELF	    7fcafe7de000-    7fcafeaa4000	Deferred
ELF	    7fcafeaa4000-    7fcafecb5000	Deferred
ELF	    7fcafecb5000-    7fcafeeb8000	Deferred
ELF	    7fcafeeb8000-    7fcaff0c3000	Deferred
ELF	    7fcaff0c3000-    7fcaff2ce000	Deferred
ELF	    7fcaff2ce000-    7fcaff4d4000	Deferred
ELF	    7fcaff4d4000-    7fcaff6d7000	Deferred
ELF	    7fcaff6d7000-    7fcaff8dd000	Deferred
ELF	    7fcaff8dd000-    7fcaffae1000	Deferred
ELF	    7fcaffae1000-    7fcaffd0a000	Deferred
ELF	    7fcaffd0a000-    7fcb00049000	Deferred
ELF	    7fcb00049000-    7fcb0025b000	Deferred
ELF	    7fcb0025b000-    7fcb004fa000	Deferred        winex11<elf>
  \-PE	    7fcb00270000-    7fcb004fa000	\               winex11
ELF	    7fcb004fa000-    7fcb00717000	Deferred        jsproxy<elf>
  \-PE	    7fcb00500000-    7fcb00717000	\               jsproxy
ELF	    7fcb00717000-    7fcb00959000	Deferred        winhttp<elf>
  \-PE	    7fcb00720000-    7fcb00959000	\               winhttp
ELF	    7fcb00959000-    7fcb00b88000	Deferred        iphlpapi<elf>
  \-PE	    7fcb00960000-    7fcb00b88000	\               iphlpapi
ELF	    7fcb00b88000-    7fcb00dbc000	Deferred        netapi32<elf>
  \-PE	    7fcb00b90000-    7fcb00dbc000	\               netapi32
ELF	    7fcb00dbc000-    7fcb00fd3000	Deferred
ELF	    7fcb00fd3000-    7fcb011f4000	Deferred        dnsapi<elf>
  \-PE	    7fcb00fe0000-    7fcb011f4000	\               dnsapi
ELF	    7fcb011f4000-    7fcb0141b000	Deferred        imm32<elf>
  \-PE	    7fcb01200000-    7fcb0141b000	\               imm32
ELF	    7fcb0141b000-    7fcb017a4000	Deferred        oleaut32<elf>
  \-PE	    7fcb01440000-    7fcb017a4000	\               oleaut32
ELF	    7fcb017a4000-    7fcb019e6000	Deferred        ws2_32<elf>
  \-PE	    7fcb017b0000-    7fcb019e6000	\               ws2_32
ELF	    7fcb019e6000-    7fcb01cab000	Deferred        winmm<elf>
  \-PE	    7fcb019f0000-    7fcb01cab000	\               winmm
ELF	    7fcb01cab000-    7fcb01fdd000	Deferred        comctl32<elf>
  \-PE	    7fcb01cc0000-    7fcb01fdd000	\               comctl32
ELF	    7fcb01fdd000-    7fcb021f8000	Deferred        aclui<elf>
  \-PE	    7fcb01fe0000-    7fcb021f8000	\               aclui
ELF	    7fcb021f8000-    7fcb0270d000	Deferred        shell32<elf>
  \-PE	    7fcb02210000-    7fcb0270d000	\               shell32
ELF	    7fcb0270d000-    7fcb0299e000	Deferred        shlwapi<elf>
  \-PE	    7fcb02720000-    7fcb0299e000	\               shlwapi
ELF	    7fcb0299e000-    7fcb02c36000	Deferred        rpcrt4<elf>
  \-PE	    7fcb029b0000-    7fcb02c36000	\               rpcrt4
ELF	    7fcb02c36000-    7fcb02fd8000	Deferred        ole32<elf>
  \-PE	    7fcb02c60000-    7fcb02fd8000	\               ole32
ELF	    7fcb02fd8000-    7fcb031f2000	Deferred        version<elf>
  \-PE	    7fcb02fe0000-    7fcb031f2000	\               version
ELF	    7fcb031f2000-    7fcb03485000	Deferred        advapi32<elf>
  \-PE	    7fcb03200000-    7fcb03485000	\               advapi32
ELF	    7fcb03485000-    7fcb03803000	Deferred        gdi32<elf>
  \-PE	    7fcb034a0000-    7fcb03803000	\               gdi32
ELF	    7fcb03803000-    7fcb03c46000	Deferred        user32<elf>
  \-PE	    7fcb03820000-    7fcb03c46000	\               user32
ELF	    7fcb03d46000-    7fcb03f5f000	Deferred        hid<elf>
  \-PE	    7fcb03d50000-    7fcb03f5f000	\               hid
ELF	    7fcb0405f000-    7fcb04271000	Deferred
ELF	    7fcb04271000-    7fcb0447d000	Deferred
ELF	    7fcb0447d000-    7fcb04695000	Deferred
ELF	    7fcb04695000-    7fcb0489d000	Deferred
ELF	    7fcb04c39000-    7fcb04e50000	Deferred
ELF	    7fcb04e50000-    7fcb0519c000	Deferred
ELF	    7fcb0519e000-    7fcb053a2000	Deferred
ELF	    7fcb053dc000-    7fcb05794000	Deferred
ELF	    7fcb05794000-    7fcb059b2000	Deferred
ELF	    7fcb059b2000-    7fcb05d7f000	Dwarf 
ELF	    7fcb05d81000-    7fcb05fa8000	Deferred
ELF	    7ffc87bdc000-    7ffc87bdd000	Deferred        [vdso].so
process  tid      prio (all id:s are in hex)
0000000e services.exe
	00000024    0
	0000001f    0
	00000015    0
	00000012    0
	0000000f    0
00000010 explorer.exe
	[C:\windows\system32\explorer.exe /desktop]
	0000002c    0
	0000002b    0
	0000002a    0
	00000011    0
00000013 winedevice.exe
	0000001e    0
	00000019    0
	00000018    0
	00000014    0
0000001c plugplay.exe
	00000021    0
	00000020    0
	0000001d    0
00000022 winedevice.exe
	00000029    0
	00000026    0
	00000025    0
	00000023    0
0000002d (D) C:\EFT\EscapeFromTarkov.exe
	[C:\EFT\EscapeFromTarkov.exe -bC5vLmcuaS5u=eyJlbWFpbCI6ImZhYWxhZ29ybiIsInBhc3N3b3JkIjoiNzlkNmJiOTIwNGRkN2E5NjY1ZTc2ZDQxMDI4ZTM0M2IiLCJ0b2dnbGUiOnRydWV9 -token=209762]
	00000054    0
	00000053    0
	00000052    0
	00000051   -1
	00000050    2
	0000004f    2
	0000004e    0
	0000004d   15
	0000004c    0
	0000004b    0
	0000004a   -2
	00000049    0
	00000048    0
	00000047    0
	00000046   -2
	00000045   -2
	00000044   -2
	00000043   -2
	00000042   -2
	00000041   -2
	00000040   -2
	0000003f   -2
	0000003e   -2
	0000003d   -2
	0000003c   -2
	0000003b   -2
	0000003a   -2
	00000039   -2
	00000038   -2
	00000037   -2
	00000036    0
	00000035    0
	00000034    0
	00000033    0
	00000032    0
	00000031    0
	00000030   -1
	0000002f    0
	0000002e    0 <==
0000005d explorer.exe
	[C:\windows\system32\explorer.exe /desktop]
	00000061    0
	00000060    0
	0000005f    0
	0000005e    0
System information:
    Wine build: wine-2.20 (Staging)
    Platform: x86_64
    Version: Windows 7
    Host system: Linux
    Host version: 4.13.12-1-zen
I'm also attaching the zipped wine log. It's quite big when uncompressed at 1.8 MB due to multiple of similar messages, but I didn't cut anything from it.

The very same game folder with the unmodified executable runs just fine in Windows, so it seems to be something related to Wine/Linux.

I tried googling around to see the nature of the problem – my only clue was related to "EscapeFromTarkov.exe caused an Access Violation (0xc0000005)" error which pointed me to some people having issues with too few memory and recent Unity builds – which make sense, as the game was always memory heavy – and the log indicating that it only sees 4096 MB physical memory (I have 16GB of RAM) led me to thought that maybe wine can only allocate that much despite being a 64-bit executable being installed on a 64-bit preset – although I'm not sure if that's my physical memory or the GPU memory which coincidentally also have 4GB of VRAM. I also have no Linux swap partition/file at all, resulting in different amount displayed, so that might be a clue here, but it may be worth pointing that the game runs fine in Windows with disabled pagefile.

I also saw someone have a recent issue with another Unity game, though in my case it launches just fine – it's the actual game past the login screen that causes the crash and the issue is similar.

I also tried to fiddle with enabling/disabling CSMT, trying clear prefixes over and over and setting Windows to 10 instead of 7, but it didn't seem to help at all.

My system details are mostly included in the log files, but for the clarity I'm posting them below too:
- Arch Linux x86_64 (rolling release, up to date)
- Linux-zen kernel 4.13.12-1-zen
- Wine Staging 2.20 from my distros repo
- NVIDIA GeForce GTX 960 4GB
- Intel i5-4690k @ 4GHz
- 16GB DDR3 memory

Thank you in advance for trying to figure out the cause of this crash! Maybe it could be of help for another Unity game here, and if not then at least can aid for future Escape from Tarkov Wine testers probably.
Wine log
(25.86 KiB) Downloaded 44 times

Level 2
Level 2
Posts: 15
Joined: Sun May 07, 2017 1:00 pm

Re: Escape from Tarkov 0.4 (Unity game) crashing after login

Post by Faalagorn » Sun Nov 19, 2017 6:35 pm

Since wine-staging didn't saw 2.21 release for a while, I've decided to test it under regular wine 2.21, but the same issue seems to be present. I didn't tried creating a totally fresh prefix yet, so maybe I'll retest it later, especially if wine-staging catches up, but I don't think it'll help, sadly…

Level 2
Level 2
Posts: 15
Joined: Sun May 07, 2017 1:00 pm

Re: Escape from Tarkov 0.4 (Unity game) crashing after login

Post by Faalagorn » Sun Nov 26, 2017 12:41 pm

The exact same issues happen in a fresh prefix, fresh game files, wine-staging 2.21 and after the game updated to Patch, I'll make a new report in AppDB in the meantime linking to this thread.

Level 2
Level 2
Posts: 15
Joined: Sun May 07, 2017 1:00 pm

Re: Escape from Tarkov 0.4 (Unity game) crashing after login

Post by Faalagorn » Wed Nov 29, 2017 10:15 pm

It seems that the game crashes exactly by the time a EFT_<randomstring>.dll is being created at the temp file. I figured it out by taking a closer look at the log Unity Engine creates when the game is crashing which lists the file as one of the stack there. The file is always generated anew when logging in, so it may be related to some additional hardware verification a game uses. Just leaving this info here if someone will want to further troubleshoot the issue based on the logs.

Post Reply