bibendovsky / bstone

Unofficial source port for Blake Stone series
Other
295 stars 33 forks source link

bstone crashes from main menu on Wine 7.21 #440

Closed mrmatteastwood closed 1 year ago

mrmatteastwood commented 1 year ago

Steps to Reproduce:

  1. Launch bstone v1.2.12-1 on Linux using Wine 7.21
  2. Proceed to main menu
  3. Select any option

Current Results: The game runs without any sound and then crashes from the main menu when attempting to select an option.

Terminal Output:

$ wine bstone.exe
002c:fixme:winediag:LdrInitializeThunk wine-staging 7.21 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:wineusb:query_id Unhandled ID query type 0x5.
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
007c:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
007c:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
007c:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
BStone v1.2.12
==========

Looking for game content.
Found "Blake Stone: Aliens Of Gold" v3.0.
Content source: working dir

Data path: "Z:\home\thebrightside\Appdata\Windows-Apps\Blake-Stone\Aliens-of-Gold\"
Mod path: ""
Profile path: "C:\users\thebrightside\AppData\Roaming\bibendovsky\bstone\"
Screenshot path: "C:\users\thebrightside\AppData\Roaming\bibendovsky\bstone\"

[SND] Initializing audio
[SND] ------------------
[SND_OAL] Default library: "OpenAL32.dll"
[SND_OAL] Custom library: ""
[SND_OAL] Custom device: ""
[ERROR] [SND] Failed to initialize mixer.

[VID] --------------------
[VID] Common configuration
[VID] --------------------
[VID] Renderer: OpenGL 2.0
[VID] Window positioned: false
[VID] Windowed x: 0
[VID] Windowed y: 0
[VID] Windowed width: 2560
[VID] Windowed height: 1440
[VID] UI stretched: false
[VID] Widescreen: true
[VID] 2D texture filter: linear
[VID] 3D texture image filter: linear
[VID] 3D texture mipmap filter: linear
[VID] Texture anisotropy: 16
[VID] Texture upscale filter: xbrz
[VID] Texture upscale xBRZ factor: 6
[VID] Anti-aliasing kind: msaa
[VID] Anti-aliasing value: 32
[VID] --------------------
[VIDHW]
[VIDHW] Initializing 3D renderer.
[VIDHW] Trying to initialize "OpenGL 2.0".
0118:fixme:win:RegisterTouchWindow (0000000000020068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000030068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000040068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000050068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000060068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000070068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
0118:fixme:win:RegisterTouchWindow (0000000000080068 00000003): stub
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
[VIDHW]
[VIDHW] Device features
[VIDHW] ===============
[VIDHW] V-Sync: true
[VIDHW] V-Sync requires restart: false
[VIDHW] Texture max dimension: 32768
[VIDHW] Viewport max width: 32768
[VIDHW] Viewport max height: 32768
[VIDHW] Anisotropy: true
[VIDHW] Anisotropy max degree: 16
[VIDHW] Non-power-of-two textures: true
[VIDHW] Mipmap auto-generation: true
[VIDHW] Samplers: true
[VIDHW] MSAA: true
[VIDHW] MSAA (render-to-window): false
[VIDHW] MSAA requires restart: false
[VIDHW] MSAA max degree: 32
[VIDHW] Vertex input max locations: 16
0098:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
0098:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
0118:fixme:imm:ImmReleaseContext (0000000000080068, 0000000000010066): stub
0118:fixme:msctf:ThreadMgr_ActivateEx Unimplemented flags 0x4
0118:fixme:imm:ImeSetCompositionString PROBLEM: This only sets the wine level string
0118:fixme:imm:ImeSetCompositionString Reading string unimplemented
0118:fixme:imm:NotifyIME NI_CLOSECANDIDATE
0118:fixme:imm:ImeSetActiveContext (0000000000010066, 1): stub
wine: Unhandled page fault on read access to 0000000000000000 at address 0000000000538C8C (thread 0118), starting debugger...
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
Unhandled exception: page fault on read access to 0x0000000000000000 in 64-bit code (0x00000000538c8c).
0144:fixme:dbghelp:elf_search_auxv can't find symbol in module
Register dump:
 rip:0000000000538c8c rsp:0000000000b7f760 rbp:0000000000000007 eflags:00210206 (  R- --  I   - -P- )
 rax:0000000000934d00 rbx:0000000000935660 rcx:0000000000000000 rdx:0000000000935660
 rsi:0000000000000020 rdi:0000000000000000  r8:0000000000538800  r9:0000000046f30630 r10:0000000046f30630
 r11:0000000000200202 r12:0000000000000011 r13:0000000000b7f860 r14:0000000000000032 r15:0000000000000000
Stack dump:
0x00000000b7f760:  000000000150e130 00000000006ce1bd
0x00000000b7f770:  0000000001574650 00000000004bf68e
0x00000000b7f780:  0000000000000000 0000000000495fcd
0x00000000b7f790:  0000000000935660 00000000004bb6f7
0x00000000b7f7a0:  0000000000000000 0000000000000000
0x00000000b7f7b0:  0000000000000007 0000000000783c18
0x00000000b7f7c0:  000000000091a6a0 00000000004c5f42
0x00000000b7f7d0:  0000000000000007 0000000000000011
0x00000000b7f7e0:  0000000000000007 0000000000783c18
0x00000000b7f7f0:  000000000091a860 000000000049cdcb
0x00000000b7f800:  000000000150e130 00000000ffffff01
0x00000000b7f810:  000000000000000a 00000000006cde20
Backtrace:
=>0 0x00000000538c8c in bstone (+0x138c8c) (0x00000000000007)
  1 0x000000004bb6f7 in bstone (+0xbb6f7) (0x00000000000007)
  2 0x0000000049cdcb in bstone (+0x9cdcb) (0x00000000000007)
  3 0x000000004a1b06 in bstone (+0xa1b06) (0x00000000918702)
  4 0x00000000493537 in bstone (+0x93537) (0x00000000945420)
  5 0x0000000049378a in bstone (+0x9378a) (0x00000000cb7fb0)
  6 0x0000000053aae6 in bstone (+0x13aae6) (0x00000000cb7fb0)
  7 0x000000004013c7 in bstone (+0x13c7) (0x000000014c1370)
  8 0x000000004014cb in bstone (+0x14cb) (0000000000000000)
  9 0x0000007b6291c9 BaseThreadInitThunk+0x9(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [Z:\usr\src\packages\BUILD\dlls\kernel32\thread.c:61] in kernel32 (0000000000000000)
  10 0x000001700603c3 __wine_pop_frame(entry=00000000004014B0, arg=00000000003F0000) [Z:\usr\src\packages\BUILD\include\wine\exception.h:277] in ntdll (0000000000000000)
  11 0x000001700603c3 RtlUserThreadStart+0x83(entry=[<register RSP not accessible in this frame>, arg=[<register RSP not accessible in this frame>) [Z:\usr\src\packages\BUILD\dlls\ntdll\thread.c:285] in ntdll (0000000000000000)
0x00000000538c8c bstone+0x138c8c: movq  (%rcx),%rax
Modules:
Module  Address                                 Debug info      Name (97 modules)
PE      0000000000400000-000000000097c000       Export          bstone
PE      000000007a800000-000000007acfa000       Deferred        opengl32
PE      000000007b000000-000000007b5fd000       Deferred        kernelbase
PE      000000007b600000-000000007b798000       Dwarf-4         kernel32
ELF     000000007d000000-000000007d005000       Deferred        <wine-loader>
PE      0000000170000000-000000017037d000       Dwarf-4         ntdll
PE      00000001cd620000-00000001cd645000       Deferred        aclui
PE      00000001d0e20000-00000001d1350000       Deferred        oleaut32
PE      00000001d8c90000-00000001d8dc7000       Deferred        advapi32
PE      00000001eaf60000-00000001eb024000       Deferred        sechost
PE      000000020b860000-000000020be0a000       Deferred        ole32
PE      000000020f400000-000000020f4b2000       Deferred        mmdevapi
PE      00000002169d0000-0000000216fba000       Deferred        user32
PE      0000000228280000-00000002285b3000       Deferred        msvcrt
PE      000000023bc00000-000000023ca02000       Deferred        shell32
PE      000000024f110000-000000024f244000       Deferred        msctf
PE      0000000251d80000-0000000251e1c000       Deferred        winex11
PE      000000025dc30000-000000025dc4f000       Deferred        version
PE      000000026c230000-000000026c2ef000       Deferred        uxtheme
PE      00000002945e0000-0000000294799000       Deferred        winmm
PE      00000002a2380000-00000002a24a7000       Deferred        shlwapi
PE      00000002bb0a0000-00000002bb347000       Deferred        gdi32
PE      00000002bde30000-00000002bde86000       Deferred        shcore
PE      00000002c73a0000-00000002c73f3000       Deferred        win32u
PE      00000002c7470000-00000002c7810000       Deferred        ucrtbase
PE      00000002eb230000-00000002eb2c0000       Deferred        winepulse
PE      00000002fb3c0000-00000002fb942000       Deferred        comctl32
PE      000000031b140000-000000031b15c000       Deferred        avrt
PE      000000031c5d0000-000000031c76e000       Deferred        combase
PE      0000000351a60000-0000000351ad8000       Deferred        msacm32
PE      0000000368420000-00000003686c5000       Deferred        rpcrt4
PE      000000036d860000-000000036da6b000       Deferred        setupapi
PE      0000000393730000-0000000393795000       Deferred        imm32
ELF     00007fbdfda00000-00007fbdfff39000       Deferred        libnvidia-glcore.so.515.65.01
ELF     00007fbe25400000-00007fbe25605000       Deferred        libnvidia-tls.so.515.65.01
ELF     00007fbe25800000-00007fbe25aa5000       Deferred        libnvidia-glsi.so.515.65.01
ELF     00007fbe25c00000-00007fbe25f3d000       Deferred        libglx_nvidia.so.0
ELF     00007fbe2608e000-00007fbe260a4000       Deferred        libdrm.so.2
ELF     00007fbe260a4000-00007fbe260c1000       Deferred        libxcb-glx.so.0
ELF     00007fbe260c1000-00007fbe260f5000       Deferred        libglx.so.0
ELF     00007fbe260f5000-00007fbe261ad000       Deferred        libgldispatch.so.0
ELF     00007fbe261ad000-00007fbe26234000       Deferred        libgl.so.1
ELF     00007fbe2624e000-00007fbe2632c000       Deferred        opengl32.so
ELF     00007fbe2632c000-00007fbe26352000       Deferred        libgpg-error.so.0
ELF     00007fbe26352000-00007fbe26490000       Deferred        libgcrypt.so.20
ELF     00007fbe26490000-00007fbe2649b000       Deferred        libcap.so.2
ELF     00007fbe2649b000-00007fbe264bb000       Deferred        liblz4.so.1
ELF     00007fbe264bb000-00007fbe2658a000       Deferred        libzstd.so.1
ELF     00007fbe2658a000-00007fbe26595000       Deferred        libogg.so.0
ELF     00007fbe26595000-00007fbe265f3000       Deferred        libopus.so.0
ELF     00007fbe265f3000-00007fbe2669e000       Deferred        libvorbisenc.so.2
ELF     00007fbe2669e000-00007fbe266cb000       Deferred        libvorbis.so.0
ELF     00007fbe266cb000-00007fbe26707000       Deferred        libflac.so.8
ELF     00007fbe26707000-00007fbe2671c000       Deferred        libapparmor.so.1
ELF     00007fbe2671c000-00007fbe26724000       Deferred        libasyncns.so.0
ELF     00007fbe26724000-00007fbe267eb000       Deferred        libsystemd.so.0
ELF     00007fbe267eb000-00007fbe2686a000       Deferred        libsndfile.so.1
ELF     00007fbe2686a000-00007fbe268b8000       Deferred        libdbus-1.so.3
ELF     00007fbe268b8000-00007fbe2693d000       Deferred        libpulsecommon-15.99.so
ELF     00007fbe2693d000-00007fbe26992000       Deferred        libpulse.so.0
ELF     00007fbe26996000-00007fbe2699b000       Deferred        librt.so.1
ELF     00007fbe2699b000-00007fbe269a0000       Deferred        libpthread.so.0
ELF     00007fbe269a0000-00007fbe269a5000       Deferred        libdl.so.2
ELF     00007fbe269ac000-00007fbe269c0000       Deferred        winepulse.so
ELF     00007fbe26a06000-00007fbe26a0e000       Deferred        libxfixes.so.3
ELF     00007fbe26a0e000-00007fbe26a1a000       Deferred        libxcursor.so.1
ELF     00007fbe26a1a000-00007fbe26a2e000       Deferred        libxi.so.6
ELF     00007fbe26a2e000-00007fbe26a33000       Deferred        libxcomposite.so.1
ELF     00007fbe26a33000-00007fbe26a40000       Deferred        libxrandr.so.2
ELF     00007fbe26a40000-00007fbe26a4d000       Deferred        libxrender.so.1
ELF     00007fbe26a4d000-00007fbe26a54000       Deferred        libxxf86vm.so.1
ELF     00007fbe26a54000-00007fbe26a59000       Deferred        libxinerama.so.1
ELF     00007fbe26a59000-00007fbe26a66000       Deferred        libmd.so.0
ELF     00007fbe26a66000-00007fbe26a7e000       Deferred        libbsd.so.0
ELF     00007fbe26a7e000-00007fbe26a86000       Deferred        libxdmcp.so.6
ELF     00007fbe26a86000-00007fbe26a8c000       Deferred        libxau.so.6
ELF     00007fbe26a8c000-00007fbe26ab6000       Deferred        libxcb.so.1
ELF     00007fbe26ab6000-00007fbe26bf6000       Deferred        libx11.so.6
ELF     00007fbe26bf6000-00007fbe26c0b000       Deferred        libxext.so.6
ELF     00007fbe26c0e000-00007fbe26c13000       Deferred        libx11-xcb.so.1
ELF     00007fbe26c25000-00007fbe26cb8000       Deferred        winex11.so
ELF     00007fbe26f38000-00007fbe26f41000       Deferred        libuuid.so.1
ELF     00007fbe26f41000-00007fbe26f72000       Deferred        libexpat.so.1
ELF     00007fbe26f72000-00007fbe26fbc000       Deferred        libfontconfig.so.1
ELF     00007fbe26fbc000-00007fbe26fdf000       Deferred        libbrotlicommon.so.1
ELF     00007fbe26fdf000-00007fbe26fed000       Deferred        libbrotlidec.so.1
ELF     00007fbe26fed000-00007fbe27009000       Deferred        libz.so.1
ELF     00007fbe27009000-00007fbe27044000       Deferred        libpng16.so.16
ELF     00007fbe27044000-00007fbe2710c000       Deferred        libfreetype.so.6
ELF     00007fbe2720c000-00007fbe272f3000       Deferred        libm.so.6
ELF     00007fbe272f3000-00007fbe274ad000       Deferred        win32u.so
ELF     00007fbe276ad000-00007fbe27824000       Dwarf           libwine.so.1
ELF     00007fbe27eee000-00007fbe27f19000       Deferred        liblzma.so.5
ELF     00007fbe27f19000-00007fbe27f34000       Deferred        libunwind.so.8
ELF     00007fbe27f34000-00007fbe28014000       Deferred        ntdll.so
ELF     00007fbe28017000-00007fbe2823f000       Deferred        libc.so.6
ELF     00007fbe2825b000-00007fbe28297000       Deferred        ld-linux-x86-64.so.2
Threads:
process  tid      prio    name (all IDs are in hex)
00000020 start.exe
        00000024    0
00000038 services.exe
        ["C:\windows\system32\services.exe"]
        0000003c    0
        00000040    0     wine_rpcrt4_server
        0000004c    0     wine_rpcrt4_io
        00000070    0     wine_rpcrt4_io
        0000009c    0     wine_rpcrt4_io
        000000b0    0     wine_rpcrt4_io
        000000c8    0     wine_rpcrt4_io
        000000ec    0     wine_rpcrt4_io
00000044 winedevice.exe
        [C:\windows\system32\winedevice.exe]
        00000048    0
        00000054    0
        00000058    0     wine_sechost_service
        0000005c    0
        00000060    0
        00000064    0
        000000d4    0
00000068 winedevice.exe
        [C:\windows\system32\winedevice.exe]
        0000006c    0
        00000074    0
        00000078    0     wine_sechost_service
        0000007c    0
        00000080    0
        00000084    0
        00000088    0
        0000008c    0
        00000090    0
        000000a8    0
        000000ac    0
00000094 explorer.exe
        ["C:\windows\system32\explorer.exe" /desktop]
        00000098    0
        000000d8    0
        000000dc    0     wine_rpcrt4_server
000000a0 plugplay.exe
        [C:\windows\system32\plugplay.exe]
        000000a4    0
        000000b4    0
        000000b8    0     wine_sechost_service
        000000bc    0     wine_rpcrt4_server
000000c0 svchost.exe
        [C:\windows\system32\svchost.exe -k LocalServiceNetworkRestricted]
        000000c4    0
        000000cc    0
        000000d0    0     wine_sechost_service
000000e4 rpcss.exe
        [C:\windows\system32\rpcss.exe]
        000000e8    0
        000000f4    0
        000000f8    0     wine_sechost_service
        000000fc    0     wine_rpcrt4_server
        00000100    0     wine_rpcrt4_server
        00000104    0     wine_rpcrt4_io
0000010c conhost.exe
        ["C:\windows\system32\conhost.exe" --unix --width 238 --height 29 --server 0xc]
        00000110    0
00000114 (D) Z:\home\thebrightside\Appdata\Windows-Apps\Blake-Stone\Aliens-of-Gold\bstone.exe
        ["Z:\home\thebrightside\Appdata\Windows-Apps\Blake-Stone\Aliens-of-Gold\bstone.exe" ]
        00000118    0 <==
        0000011c    0
        00000120    0
        00000124    0
        00000128    0
        0000012c    0
        00000130    0
        00000134    0
        00000138    0     SDLTimer
        0000013c    0     wine_mmdevapi_notification
        00000148    0
System information:
    Wine build: wine-7.21 (Staging)
    Platform: x86_64
    Version: Windows 7
    Host system: Linux
    Host version: 5.17.0-1021-oem

Notes: Everything worked fine on Wine 7.20. This is the line where the terminal output stays right before selecting an option from the main menu, in the above case I selected "Load game":

0118:fixme:imm:ImmReleaseContext (0000000000080068, 0000000000010066): stub

Does the terminal output provide any clues as to what's going on? Why is sound no longer working, and why does the game crash?

mrmatteastwood commented 1 year ago

Also opened a bug on the Wine bug tracker: https://bugs.winehq.org/show_bug.cgi?id=53920

mrmatteastwood commented 1 year ago

Update: the game works when resetting sound driver to auto or "2D (SDL)". Once I select OpenAL, it breaks again. Using the latest version of OpenAL Soft from here: https://openal-soft.org/. Again, this worked up until Wine 7.20.

mrmatteastwood commented 1 year ago

FIXED. I set openal32 to "native, builtin" in Winecfg > Libraries. Now it works.