Problem with Mortal Kombat X (kernel32.dll error)

Questions about Wine on Linux
Locked
TsaoTsao
Newbie
Newbie
Posts: 3
Joined: Sun Apr 19, 2015 6:26 am

Problem with Mortal Kombat X (kernel32.dll error)

Post by TsaoTsao »

Hi guys,

I already made a post on PlayOnLinux's forums but from the information that was given to me it seems like a good idea to ask here too, so here I go :

I'm trying to install MKX using steam through POL on ubuntu 14.04 lts. In my first try I set up a 32 bits wine, installed steam and then installed MKX but when I tried to launch the game it just crashed. So instead of trying to randomly install a bunch of libraries I tried again with a 64 bits wine (since a 64 bits system is a requirement for the game). Now when it crashes I get this error report :

Code: Select all

Unhandled exception: unimplemented function KERNEL32.dll.GetLargePageMinimum called in 64-bit code (0x00007f3a0f0e1cca).
Register dump:
 rip:00007f3a0f0e1cca rsp:000000000060fac0 rbp:000000014234c298 eflags:00000206 (   - --  I   - -P- )
 rax:00007f3a0f0e1c80 rbx:0000000000000000 rcx:000000000060fae0 rdx:0000000140b8b0da
 rsi:0000000142d51d86 rdi:0000000142d5227c  r8:0000000000000000  r9:000000000060f540 r10:0000000000000008
 r11:0000000000000246 r12:000000007b8802a0 r13:0000000000000000 r14:00007fffff7e8000 r15:0000000000120000
Stack dump:
0x000000000060fac0:  000000000060fae0 0000000000000000
0x000000000060fad0:  0000000000000000 ff00ffff00000000
0x000000000060fae0:  0000000180000100 0000000000000000
0x000000000060faf0:  00007f3a0f0e1cca 0000000000000002
0x000000000060fb00:  0000000142d5227c 0000000142d51d86
0x000000000060fb10:  000000014233c7b8 0000000000000000
0x000000000060fb20:  000000007bc86100 0000000140b8259d
0x000000000060fb30:  00000000000002e0 00007fffff7e8000
0x000000000060fb40:  000000014233c7b8 0000000000000000
0x000000000060fb50:  01100800000306c3 0000000000000000
0x000000000060fb60:  0000000000000000 000000007bc86100
0x000000000060fb70:  000000014234c298 000000007b897711
Backtrace:
=>0 0x00007f3a0f0e1cca in ntdll (+0x41cca) (0x000000014234c298)
  1 0x0000000140b8b0da in mk10 (+0xb8b0d9) (0x000000014234c298)
  2 0x0000000140b81de0 in mk10 (+0xb81ddf) (0x000000014234c298)
  3 0x0000000140395296 in mk10 (+0x395295) (0x000000014234c298)
  4 0x00000001422b940e in mk10 (+0x22b940d) (0x000000014234c298)
  5 0x00007f3a07c85b43 _initterm+0x72() in msvcr110 (0x000000014234c298)
  6 0x0000000141f27bf9 in mk10 (+0x1f27bf8) (0x0000000141f27b2c)
  7 0x000000007b880351 in kernel32 (+0x60350) (0x0000000141f27b2c)
  8 0x00007f3a0f11c75e call_thread_func+0x6d() in ntdll (0x00007fff2f7aefc0)
  9 0x00007f3a0f114ee2 RtlRaiseException+0x7d() in ntdll (0x00007fff2f7aefc0)
  10 0x00007f3a0f0e1ce6 in ntdll (+0x41ce5) (0x00007fff2f7aefc0)
  11 0x00007f3a0fba18c7 wine_call_on_stack+0x12() in libwine.so.1 (0x00007fff2f7aefc0)
  12 0x00007f3a0fba1919 wine_switch_to_stack+0x8() in libwine.so.1 (0x00007fffff7ef000)
  13 0x00007f3a0f0e8aec LdrInitializeThunk+0x30b() in ntdll (0x00007fffff7ef000)
  14 0x000000007b886caf __wine_kernel_init+0x99e() in kernel32 (0x00007fff2f7af870)
  15 0x00007f3a0f0e9c74 __wine_process_init+0x163() in ntdll (0x0000000000000000)
  16 0x00007f3a0fb9f7ec wine_init+0x37b() in libwine.so.1 (0x00007fff2f7b0310)
  17 0x000000007bf00da2 main+0x71() in <wine-loader> (0x00007fff2f7b0808)
  18 0x00007f3a0f5aeec5 __libc_start_main+0xf4() in libc.so.6 (0x0000000000000000)
  19 0x000000007bf00eb1 _start+0x28() in <wine-loader> (0x0000000000000000)
0x00007f3a0f0e1cca: jmp    0x00007f3a0f0e1cc0
Modules:
Module    Address                    Debug info    Name (122 modules)
PE              610000-          656000    Deferred        d3dx11_43
PE              660000-          6de000    Deferred        fmod_event64
PE              6e0000-          84d000    Deferred        fmodex64
PE              850000-          86e000    Deferred        xinput1_3
PE            3b400000-        3b422000    Deferred        steam_api64
ELF            7a800000-        7abf8000    Deferred        opengl32<elf>
  \-PE            7a850000-        7abf8000    \               opengl32
ELF            7b800000-        7bc88000    Dwarf           kernel32<elf>
  \-PE            7b820000-        7bc88000    \               kernel32
ELF            7be00000-        7c102000    Dwarf           <wine-loader>
PE           140000000-       14376c000    Export          mk10
PE           180000000-       18008d000    Deferred        bink2w64
ELF        7f3a04523000-    7f3a04737000    Deferred        gnome-keyring-pkcs11.so
ELF        7f3a04737000-    7f3a0496f000    Deferred        p11-kit-trust.so
ELF        7f3a0496f000-    7f3a04b77000    Deferred        libffi.so.6
ELF        7f3a04b77000-    7f3a04d7c000    Deferred        libgpg-error.so.0
ELF        7f3a04d7c000-    7f3a04fbe000    Deferred        libp11-kit.so.0
ELF        7f3a04fbe000-    7f3a051d2000    Deferred        libtasn1.so.6
ELF        7f3a051d2000-    7f3a05452000    Deferred        libgcrypt.so.11
ELF        7f3a05452000-    7f3a05710000    Deferred        libgnutls.so.26
ELF        7f3a05735000-    7f3a0593b000    Deferred        libxfixes.so.3
ELF        7f3a0593b000-    7f3a05b45000    Deferred        libxcursor.so.1
ELF        7f3a05b45000-    7f3a05d55000    Deferred        libxi.so.6
ELF        7f3a05d55000-    7f3a05f58000    Deferred        libxcomposite.so.1
ELF        7f3a05f58000-    7f3a06162000    Deferred        libxrandr.so.2
ELF        7f3a06162000-    7f3a0636c000    Deferred        libxrender.so.1
ELF        7f3a0636c000-    7f3a06572000    Deferred        libxxf86vm.so.1
ELF        7f3a06572000-    7f3a06775000    Deferred        libxinerama.so.1
ELF        7f3a06775000-    7f3a0697b000    Deferred        libxdmcp.so.6
ELF        7f3a0697b000-    7f3a06b7f000    Deferred        libxau.so.6
ELF        7f3a06b7f000-    7f3a06d9e000    Deferred        libxcb.so.1
ELF        7f3a06d9e000-    7f3a070d3000    Deferred        libx11.so.6
ELF        7f3a070d3000-    7f3a072e5000    Deferred        libxext.so.6
ELF        7f3a0730a000-    7f3a075b1000    Deferred        winex11<elf>
  \-PE        7f3a07320000-    7f3a075b1000    \               winex11
ELF        7f3a075b1000-    7f3a077eb000    Deferred        secur32<elf>
  \-PE        7f3a075c0000-    7f3a077eb000    \               secur32
ELF        7f3a077eb000-    7f3a07a1f000    Deferred        netapi32<elf>
  \-PE        7f3a077f0000-    7f3a07a1f000    \               netapi32
ELF        7f3a07a1f000-    7f3a07c40000    Deferred        dnsapi<elf>
  \-PE        7f3a07a30000-    7f3a07c40000    \               dnsapi
ELF        7f3a07c40000-    7f3a07f3d000    Dwarf           msvcr110<elf>
  \-PE        7f3a07c60000-    7f3a07f3d000    \               msvcr110
ELF        7f3a07f3d000-    7f3a08287000    Deferred        msvcp110<elf>
  \-PE        7f3a07f80000-    7f3a08287000    \               msvcp110
ELF        7f3a08287000-    7f3a084b0000    Deferred        imm32<elf>
  \-PE        7f3a08290000-    7f3a084b0000    \               imm32
ELF        7f3a08575000-    7f3a0879f000    Deferred        libexpat.so.1
ELF        7f3a0879f000-    7f3a089db000    Deferred        libfontconfig.so.1
ELF        7f3a089db000-    7f3a08c01000    Deferred        libpng12.so.0
ELF        7f3a08c01000-    7f3a08ea4000    Deferred        libfreetype.so.6
ELF        7f3a08ea4000-    7f3a09121000    Deferred        setupapi<elf>
  \-PE        7f3a08eb0000-    7f3a09121000    \               setupapi
ELF        7f3a09121000-    7f3a09334000    Deferred        xinput9_1_0<elf>
  \-PE        7f3a09130000-    7f3a09334000    \               xinput9_1_0
ELF        7f3a09334000-    7f3a0955f000    Deferred        mpr<elf>
  \-PE        7f3a09340000-    7f3a0955f000    \               mpr
ELF        7f3a0955f000-    7f3a097ed000    Deferred        wininet<elf>
  \-PE        7f3a09570000-    7f3a097ed000    \               wininet
ELF        7f3a097ed000-    7f3a09a09000    Deferred        jsproxy<elf>
  \-PE        7f3a097f0000-    7f3a09a09000    \               jsproxy
ELF        7f3a09a09000-    7f3a09c4f000    Deferred        winhttp<elf>
  \-PE        7f3a09a10000-    7f3a09c4f000    \               winhttp
ELF        7f3a09c4f000-    7f3a09ee4000    Deferred        shlwapi<elf>
  \-PE        7f3a09c60000-    7f3a09ee4000    \               shlwapi
ELF        7f3a09ee4000-    7f3a0a358000    Deferred        shell32<elf>
  \-PE        7f3a09f00000-    7f3a0a358000    \               shell32
ELF        7f3a0a358000-    7f3a0a6ed000    Deferred        oleaut32<elf>
  \-PE        7f3a0a380000-    7f3a0a6ed000    \               oleaut32
ELF        7f3a0a6ed000-    7f3a0a908000    Deferred        libresolv.so.2
ELF        7f3a0a908000-    7f3a0ab35000    Deferred        iphlpapi<elf>
  \-PE        7f3a0a910000-    7f3a0ab35000    \               iphlpapi
ELF        7f3a0ab35000-    7f3a0ad75000    Deferred        ws2_32<elf>
  \-PE        7f3a0ab40000-    7f3a0ad75000    \               ws2_32
ELF        7f3a0ad75000-    7f3a0af92000    Deferred        wsock32<elf>
  \-PE        7f3a0ad80000-    7f3a0af92000    \               wsock32
ELF        7f3a0af92000-    7f3a0b30c000    Deferred        wined3d<elf>
  \-PE        7f3a0afb0000-    7f3a0b30c000    \               wined3d
ELF        7f3a0b30c000-    7f3a0b537000    Deferred        dxgi<elf>
  \-PE        7f3a0b310000-    7f3a0b537000    \               dxgi
ELF        7f3a0b537000-    7f3a0b752000    Deferred        dinput8<elf>
  \-PE        7f3a0b540000-    7f3a0b752000    \               dinput8
ELF        7f3a0b752000-    7f3a0b965000    Deferred        psapi<elf>
  \-PE        7f3a0b760000-    7f3a0b965000    \               psapi
ELF        7f3a0b965000-    7f3a0bb7e000    Deferred        libz.so.1
ELF        7f3a0bba3000-    7f3a0be19000    Deferred        dbghelp<elf>
  \-PE        7f3a0bbb0000-    7f3a0be19000    \               dbghelp
ELF        7f3a0be19000-    7f3a0c0fc000    Deferred        msvcrt<elf>
  \-PE        7f3a0be40000-    7f3a0c0fc000    \               msvcrt
ELF        7f3a0c0fc000-    7f3a0c311000    Deferred        d3d11<elf>
  \-PE        7f3a0c100000-    7f3a0c311000    \               d3d11
ELF        7f3a0c311000-    7f3a0c540000    Deferred        msacm32<elf>
  \-PE        7f3a0c320000-    7f3a0c540000    \               msacm32
ELF        7f3a0c540000-    7f3a0c7de000    Deferred        rpcrt4<elf>
  \-PE        7f3a0c550000-    7f3a0c7de000    \               rpcrt4
ELF        7f3a0c7de000-    7f3a0cb70000    Deferred        ole32<elf>
  \-PE        7f3a0c800000-    7f3a0cb70000    \               ole32
ELF        7f3a0cb70000-    7f3a0ce35000    Deferred        winmm<elf>
  \-PE        7f3a0cb80000-    7f3a0ce35000    \               winmm
ELF        7f3a0ce35000-    7f3a0d050000    Deferred        version<elf>
  \-PE        7f3a0ce40000-    7f3a0d050000    \               version
ELF        7f3a0d050000-    7f3a0d3c1000    Deferred        gdi32<elf>
  \-PE        7f3a0d060000-    7f3a0d3c1000    \               gdi32
ELF        7f3a0d3c1000-    7f3a0d77f000    Deferred        user32<elf>
  \-PE        7f3a0d3e0000-    7f3a0d77f000    \               user32
ELF        7f3a0d7a5000-    7f3a0da38000    Deferred        advapi32<elf>
  \-PE        7f3a0d7c0000-    7f3a0da38000    \               advapi32
ELF        7f3a0da38000-    7f3a0dc44000    Deferred        libnss_files.so.2
ELF        7f3a0dc44000-    7f3a0de50000    Deferred        libnss_nis.so.2
ELF        7f3a0de50000-    7f3a0e06a000    Deferred        libnsl.so.1
ELF        7f3a0e06a000-    7f3a0e274000    Deferred        libnss_compat.so.2
ELF        7f3a0e95b000-    7f3a0eb71000    Deferred        libgcc_s.so.1
ELF        7f3a0eb71000-    7f3a0ee77000    Deferred        libm.so.6
ELF        7f3a0ee77000-    7f3a0f07f000    Deferred        librt.so.1
ELF        7f3a0f07f000-    7f3a0f386000    Dwarf           ntdll<elf>
  \-PE        7f3a0f0a0000-    7f3a0f386000    \               ntdll
ELF        7f3a0f389000-    7f3a0f58d000    Deferred        libdl.so.2
ELF        7f3a0f58d000-    7f3a0f952000    Dwarf           libc.so.6
ELF        7f3a0f952000-    7f3a0fb70000    Deferred        libpthread.so.0
ELF        7f3a0fb96000-    7f3a0ff3c000    Dwarf           libwine.so.1
ELF        7f3a0ff3e000-    7f3a10163000    Deferred        ld-linux-x86-64.so.2
ELF        7fff2f7df000-    7fff2f7e0000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
00000008 Steam.exe
    0000004a    0
    00000036    0
    00000035    0
    00000097    0
    00000096    0
    00000095    0
    00000094    0
    00000093    0
    00000092    0
    00000091    0
    00000090    0
    0000008f    0
    00000088    0
    00000064    0
    00000063    0
    00000057    0
    00000056    0
    00000053    0
    00000052    0
    00000051    0
    00000050    0
    0000004f    0
    0000004e    0
    0000004d    0
    0000004c    0
    0000000b    0
    00000046    0
    00000047    0
    00000030    0
    0000000d    0
    0000003e    0
    0000003d    0
    0000003c    0
    0000003b    0
    00000038    0
    00000009    0
0000000e services.exe
    00000044    0
    0000001c    0
    00000014    0
    00000010    0
    0000000f    0
00000012 winedevice.exe
    0000001b    0
    00000018    0
    00000017    0
    00000013    0
00000019 plugplay.exe
    0000001f    0
    0000001e    0
    0000001a    0
00000022 explorer.exe
    00000023    0
00000039 steamwebhelper.exe
    0000006b    0
    00000062    0
    0000004b    0
    00000048    0
    0000002f    0
    00000043    0
    0000001d    0
    00000041    0
    00000042    0
    0000002d    0
    0000002e    0
    00000026    0
    00000027    0
    0000002a    0
    00000028    0
    0000002b    0
    0000002c    0
    00000029    0
    00000016    0
    00000024    0
    00000025    0
    0000003a    0
00000060 steamwebhelper.exe
    0000006c    0
    00000069    0
    00000068    0
    00000054    0
    00000055    0
    0000000c    0
    0000003f    0
    00000021    0
    00000040    0
    00000067    0
    00000061    0
00000089 (D) C:\Program Files (x86)\Steam\steamapps\common\MK10\Binaries\Retail\MK10.exe
    0000008a    0 <==
System information:
    Wine build: wine-1.7.40
    Platform: x86_64
    Host system: Linux
    Host version: 3.13.0-49-generic
And apparently it's a known non implemented feature : https://bugs.winehq.org/show_bug.cgi?id=18745

Is there any hope that it will be added or is there any workaround ?

Thanks for the help.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by olivierfrdierick »

The "known bug" is closed invalid because no one did mention a game or app that depends on the missing function. No dev will work on a closed bug.
Feel free to reopen this bug once there is an app that fails to run under
Wine due to missing functionality.
Now that you have found an app that fails, you should reopen the bug and tell which app it is. A dev will eventually work on a fix.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by dimesio »

In my first try I set up a 32 bits wine, installed steam and then installed MKX but when I tried to launch the game it just crashed. So instead of trying to randomly install a bunch of libraries I tried again with a 64 bits wine (since a 64 bits system is a requirement for the game).
That doesn't make sense. If the game were 64 bits, you wouldn't have been able to install it in a 32 bit wineprefix. And this

Code: Select all

00000089 (D) C:\Program Files (x86)\Steam\steamapps\common\MK10\Binaries\Retail\MK10.exe
also indicates it's a 32 bit app--64 bit apps are installed to Program Files.

Before you go leaving comments in closed bugs, straighten out your install.
TsaoTsao
Newbie
Newbie
Posts: 3
Joined: Sun Apr 19, 2015 6:26 am

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by TsaoTsao »

The minimum requirements on the box says that a 64 bits system is needed so I assumed it was the reason for the crash the first time. Even in a 32 bits system wouldn't steam still install the game ? Because I tried to do another install on a relatively old computer (no dx11 gfx card) with windows, and it went through the process but when I tried to launch it I had a bug "hardware or driver not supported".
Then the "Program Files (x86)" instead of "Program Files" just means that it's steam that's 32 bits right ? Because it's installed the same way in all my 64 bits systems.
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by dimesio »

TsaoTsao wrote:The minimum requirements on the box says that a 64 bits system is needed so I assumed it was the reason for the crash the first time. Even in a 32 bits system wouldn't steam still install the game ? Because I tried to do another install on a relatively old computer (no dx11 gfx card) with windows, and it went through the process but when I tried to launch it I had a bug "hardware or driver not supported".
Then the "Program Files (x86)" instead of "Program Files" just means that it's steam that's 32 bits right ? Because it's installed the same way in all my 64 bits systems.
You could be right; I don't have any 64 bit Windows games to test with Steam.

FYI, Wine doesn't support DX11 yet, so if this game requires it, it's not going to work in Wine.
TsaoTsao
Newbie
Newbie
Posts: 3
Joined: Sun Apr 19, 2015 6:26 am

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by TsaoTsao »

dimesio wrote:FYI, Wine doesn't support DX11 yet, so if this game requires it, it's not going to work in Wine.
Ok I'll wait before trying to get it to work since the game requires DX11. Is there a known date for DX11 support ?
Triple1Truth
Level 1
Level 1
Posts: 7
Joined: Fri Apr 10, 2015 11:02 pm

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by Triple1Truth »

That will be a really long wait though. Wine supporting D3D10, I'm guessing is like several months away from now. D3D11 on the otherhand I can see will be a little bit more of a hell to get on WINE since tessellation and several other things exist in d3d11.
User avatar
olivierfrdierick
Level 5
Level 5
Posts: 258
Joined: Thu Sep 13, 2012 12:09 pm

Re: Problem with Mortal Kombat X (kernel32.dll error)

Post by olivierfrdierick »

dimesio wrote:If the game were 64 bits, you wouldn't have been able to install it in a 32 bit wineprefix.
If the installer is 32-bit it can install a 64-bits app, but the app won't run.
TsaoTsao wrote:Then the "Program Files (x86)" instead of "Program Files" just means that it's steam that's 32 bits right ? Because it's installed the same way in all my 64 bits systems.
That's right. There's no 64-bit version of Steam, only part of it, and it installs in x86. Steam puts the games in its steamapps/common subdir whether they are 64-bit or not.
TsaoTsao wrote:Ok I'll wait before trying to get it to work since the game requires DX11.
Don't wait for full DX10/11 support before trying your app.
You only need what is required by your app, but you have to tell the devs what it is.
Some DX features could be stubbed and still allow the game to run.
Try your apps and report your issues on bugzilla.
As dimesio said, just make sure that your setup is correct before reporting bugs.
Locked