Indie game keeps crashing at the same point

Questions about Wine on Linux
Locked
Capacitor
Newbie
Newbie
Posts: 1
Joined: Sat Apr 23, 2022 10:19 am

Indie game keeps crashing at the same point

Post by Capacitor »

Hi everybody. I'm trying to run an indie game for Windows on Linux, to write a guide and help other players in my situation. The game has some minor problems with a newly-created 32-bit prefix, like having to wait 1-2 minutes before the start menu loads, but otherwise the experience is positive. The only problem I have is that at specific points the game crashes. This usually happens when there is a transition of some kind, but unfortunately I'm not able to be more specific than that.
Until now the crashes had a ~50% chance of happening, meaning that by reloading the game a sufficient number of tries, I've always been able to proceed. Now I found a point that crashes always.
I tried to read the backtrace and I installed first "ole32" and then "dsound" from winetricks. Winecfg considers ole32 as "native then integrated" and dsound as "native". The error changed after the first and second installation, but the game keeps crashing at the same point nonetheless.
This is the backtrace:

Code: Select all

Unhandled exception: page fault on read access to 0x00000034 in 32-bit code (0x7bc5ac55).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7bc5ac55 ESP:0021b870 EBP:0021b898 EFLAGS:00210202(  R- --  I   - - - )
 EAX:00000020 EBX:00000020 ECX:0021b8b0 EDX:ffffffff
 ESI:00000000 EDI:00000000
Stack dump:
0x0021b870:  00000000 00000001 0021b898 6a2a5fb2
0x0021b880:  00c30000 00000000 00c44310 0021b8b0
0x0021b890:  6a2a3f20 00000000 0021b8c8 6a29c5ed
0x0021b8a0:  00c44228 046bafc8 0021b8e8 6a29c5ed
0x0021b8b0:  00000020 00c44310 00000040 6a2a5f46
0x0021b8c0:  00c30000 0021b8e0 0021b904 6a2a3f36
Backtrace:
=>0 0x7bc5ac55 RtlEnterCriticalSection+0x15(crit=<internal error>) [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:390] in ntdll (0x0021b898)
  1 0x6a29c5ed _lock_file+0x2d(file=<internal error>) [Z:\usr\src\packages\BUILD\dlls\msvcrt\file.c:1334] in msvcrt (0x0021b8c8)
  2 0x6a2a3f36 fread+0x16(ptr=0021B994, size=0x1, nmemb=0x4000, file=00000000) [Z:\usr\src\packages\BUILD\dlls\msvcrt\file.c:4281] in msvcrt (0x0021b904)
  3 0x01a7323d EditObject+0x217d() in quickhash.mfx (0x046bafc8)
0x7bc5ac55 RtlEnterCriticalSection+0x15 [Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c:390] in ntdll: movl	0x14(%ebx),%eax
Unable to access file 'Z:\usr\src\packages\BUILD\dlls\ntdll\sync.c'
Modules:
Module	Address			Debug info	Name (149 modules)
PE	00400000-004f1000	Deferred        ktt
PE	00500000-00689000	Deferred        winmm
PE	00690000-008ed000	Deferred        comdlg32
PE	01130000-011c5000	Deferred        uxtheme
PE	01320000-01328000	Deferred        wargamemap.mfx
PE	01330000-0133b000	Deferred        multipletouch.mfx
PE	01340000-0134b000	Deferred        screenzoom.mfx
PE	01350000-013c3000	Deferred        ini++15.mfx
PE	013d0000-013d8000	Deferred        blowfish.mfx
PE	013e0000-013f4000	Deferred        stringtokenizer.mfx
PE	01510000-01516000	Deferred        calcrect.mfx
PE	01520000-01538000	Deferred        openurls.mfx
PE	01650000-01656000	Deferred        iosvideo.mfx
PE	01660000-01666000	Deferred        activebackdrop.mfx
PE	01670000-0168b000	Deferred        advtray.mfx
PE	017a0000-017a7000	Deferred        fontembed.mfx
PE	018c0000-018cb000	Deferred        aesfusion.mfx
PE	018d0000-01929000	Deferred        get.mfx
PE	01930000-01942000	Deferred        multimon.mfx
PE	01a60000-01a6b000	Deferred        stringreplace.mfx
PE	01a70000-01a83000	Export          quickhash.mfx
PE	01a90000-01aa3000	Deferred        fcmmf2params.mfx
PE	01ab0000-01ad3000	Deferred        substringreplaceunicode.mfx
PE	01bf0000-01bf7000	Deferred        kcpop.mfx
PE	01c00000-01c30000	Deferred        easing.mfx
PE	01c30000-01c66000	Deferred        luammf2.mfx
PE	01d80000-01d8e000	Deferred        iconview.mfx
PE	01d90000-01d9c000	Deferred        listview.mfx
PE	01da0000-01e05000	Deferred        webview2.mfx
PE	01e10000-01e65000	Deferred        surface.mfx
PE	01f80000-01fa6000	Deferred        adshow.mfx
PE	01fb0000-01fcf000	Deferred        binary.mfx
PE	020e0000-020ed000	Deferred        darray.mfx
PE	020f0000-021d2000	Deferred        oleacc
PE	021f0000-021f7000	Deferred        registry2.mfx
PE	02200000-02207000	Deferred        clickteam-circular.mvx
PE	02210000-0232e000	Deferred        mmf2d3d9
PE	02340000-02346000	Deferred        aviflt.ift
PE	02360000-02366000	Deferred        bmpflt.ift
PE	02370000-02377000	Deferred        fliflt.ift
PE	02380000-02387000	Deferred        gifflt.ift
PE	02390000-023a8000	Deferred        jpgflt.ift
PE	023b0000-023b6000	Deferred        pcxflt.ift
PE	023c0000-0240d000	Deferred        pngflt.ift
PE	02410000-02416000	Deferred        tgaflt.ift
PE	02420000-02426000	Deferred        aiffflt.sft
PE	02430000-02483000	Deferred        modflt.sft
PE	02490000-02496000	Deferred        mp3flt.sft
PE	024a0000-024c4000	Deferred        oggflt.sft
PE	024d0000-024d6000	Deferred        waveflt.sft
PE	024e0000-02587000	Deferred        mmdevapi
PE	031d0000-031dc000	Deferred        api-ms-win-crt-heap-l1-1-0
PE	03700000-0390f000	Deferred        nss3
PE	03910000-03937000	Deferred        wsock32
PE	03940000-0395c000	Deferred        nsi
PE	03960000-0396b000	Deferred        api-ms-win-crt-time-l1-1-0
PE	03970000-0397c000	Deferred        api-ms-win-crt-utility-l1-1-0
PE	03980000-03a7d000	Deferred        mozglue
PE	03a80000-03b93000	Deferred        lgpllibs
PE	03ba0000-03bc3000	Deferred        userenv
PE	03bd0000-03c50000	Deferred        netapi32
PE	03c50000-03d02000	Deferred        wintrust
PE	0c7d0000-0c855000	Deferred        secur32
PE	0c860000-0c86e000	Deferred        psapi
PE	0cee0000-0e785000	Deferred        mshtml
PE	10000000-10080000	Deferred        mmfs2
PE	10400000-10408000	Deferred        kcarray.mfx
PE	10500000-1050a000	Deferred        kcbutton.mfx
PE	10700000-1071d000	Deferred        kcclock.mfx
PE	10800000-10808000	Deferred        kccombo.mfx
PE	10b00000-10b08000	Deferred        kcedit.mfx
PE	10c00000-10c21000	Deferred        kcfile.mfx
PE	10e00000-10e21000	Deferred        kcini.mfx
PE	10e30000-10f52000	Deferred        msctf
PE	11000000-11008000	Deferred        kclist.mfx
PE	11800000-11806000	Deferred        kcpict.mfx
PE	12000000-12018000	Deferred        kcwctrl.mfx
PE	12600000-12608000	Deferred        kcpica.mfx
PE	12a00000-12a6d000	Deferred        datagrid.mfx
PE	12f00000-12f24000	Deferred        layer.mfx
PE	13000000-13006000	Deferred        ios.mfx
PE	13200000-1320d000	Deferred        kcriched.mfx
PE	13400000-13408000	Deferred        kcshape.mfx
PE	13500000-1350b000	Deferred        kcboxa.mfx
PE	13600000-1360a000	Deferred        kcboxb.mfx
PE	13610000-18c64000	Deferred        xul
PE	1d260000-1d79d000	Deferred        jscript
PE	51080000-510e1000	Deferred        dsound
PE	61500000-61579000	Deferred        iphlpapi
PE	61740000-6182f000	Deferred        advapi32
PE	61940000-61b49000	Deferred        wininet
PE	61f00000-61f0d000	Deferred        api-ms-win-crt-convert-l1-1-0
PE	61f80000-61f8f000	Deferred        api-ms-win-crt-math-l1-1-0
PE	62b80000-62b8c000	Deferred        api-ms-win-core-localization-l1-2-1
PE	62d40000-62d4b000	Deferred        api-ms-win-crt-environment-l1-1-0
PE	62fc0000-63204000	Deferred        rpcrt4
PE	63480000-6349c000	Deferred        version
PE	63740000-6374d000	Deferred        api-ms-win-crt-runtime-l1-1-0
PE	637c0000-63a7b000	Deferred        urlmon
PE	63bc0000-63c05000	Deferred        shcore
PE	64a40000-64b60000	Deferred        shlwapi
PE	64ec0000-652ae000	Deferred        oleaut32
PE	65d40000-65d4c000	Deferred        api-ms-win-crt-filesystem-l1-1-0
PE	65f40000-65f62000	Deferred        kerberos
PE	66240000-6627a000	Deferred        bcrypt
PE	663c0000-6648a000	Deferred        winspool
PE	66600000-6660b000	Deferred        api-ms-win-crt-locale-l1-1-0
PE	66b00000-66b5c000	Deferred        win32u
PE	67800000-6780b000	Deferred        api-ms-win-core-string-l1-1-0
PE	67840000-678b2000	Deferred        winepulse
PE	67c80000-67deb000	Deferred        d3d9
PE	67ec0000-68cb5000	Deferred        shell32
PE	68fc0000-691d8000	Deferred        msvcp60
PE	697c0000-69a1e000	Deferred        ddraw
PE	6a040000-6a0a3000	Deferred        msacm32
PE	6a280000-6a4eb000	Dwarf-4         msvcrt
PE	6aa40000-6aa4c000	Deferred        usp10
PE	6ac80000-6ac8b000	Deferred        api-ms-win-core-fibers-l1-1-1
PE	6b300000-6b573000	Deferred        msvcr90
PE	6b7c0000-6b7cd000	Deferred        api-ms-win-crt-stdio-l1-1-0
PE	6bb00000-6bb6c000	Deferred        msvfw32
PE	6bc00000-6bca3000	Deferred        sechost
PE	6bcc0000-6bea4000	Deferred        setupapi
PE	6c9c0000-6cbaa000	Deferred        gdi32
PE	6cc40000-6d0b6000	Deferred        comctl32
PE	6d780000-6d7fe000	Deferred        ws2_32
PE	6dd00000-6dd1c000	Deferred        schannel
PE	6de80000-6de8c000	Deferred        api-ms-win-core-synch-l1-2-0
PE	6e4c0000-6e4fe000	Deferred        dnsapi
PE	6e8c0000-6eb6f000	Deferred        crypt32
PE	6ec40000-6ec5c000	Deferred        dwmapi
PE	6ed00000-6f4da000	Deferred        user32
PE	6f600000-6f60e000	Deferred        api-ms-win-crt-multibyte-l1-1-0
PE	6f700000-6fa8a000	Deferred        ieframe
PE	6fe40000-6fee0000	Deferred        rsaenh
PE	6ff00000-6ff0d000	Deferred        api-ms-win-crt-string-l1-1-0
PE	702c0000-702db000	Deferred        api-ms-win-crt-private-l1-1-0
PE	70940000-70996000	Deferred        mpr
PE	70b40000-70e11000	Deferred        ucrtbase
PE	70e80000-70e93000	Deferred        msimg32
PE	71200000-7124c000	Deferred        imm32
PE	71440000-71544000	Deferred        avifil32
PE	774e0000-7761d000	Deferred        ole32
PE	7a840000-7a844000	Deferred        opengl32
PE	7b000000-7b300000	Deferred        kernelbase
PE	7b600000-7b920000	Deferred        kernel32
PE	7bc00000-7be99000	Dwarf-4         ntdll
PE	7e1e0000-7e1e4000	Deferred        winex11
PE	f7a60000-f7a64000	Deferred        wined3d
Threads:
process  tid      prio (all id:s are in hex)
00000038 services.exe
	0000003c    0
	00000040    0
	0000004c    0
	0000006c    0
	000000a0    0
	000000b8    0
00000044 winedevice.exe
	00000048    0
	00000054    0
	00000058    0
	0000005c    0
	00000060    0
	000000c4    0
00000064 winedevice.exe
	00000068    0
	00000070    0
	00000074    0
	00000078    0
	00000084    0
	00000088    0
	0000008c    0
	0000009c    0
0000007c explorer.exe
	00000080    0
	00000090    0
00000094 plugplay.exe
	00000098    0
	000000a4    0
	000000a8    0
	000000ac    0
000000b0 svchost.exe
	000000b4    0
	000000bc    0
	000000c0    0
00000118 (D) Z:\home\storage\Giochi\Installazioni\Prova\1 - Da testare\Kronos time titan\0.906.0\ktt.exe
	0000011c    0 <==
	00000120    0
	00000124    0
	0000012c   15
	00000168   15
	0000016c    0
	00000178    0
	0000017c    0
	00000180    0
	00000184    0
	00000188    0
	0000018c    0
	00000190    0
	00000194    0
	00000198    0
	0000019c    0
	000001a0    0
	000001a4    0
	000001a8    0
	000001ac    0
	000001b0    0
	000001b4    0
	000001b8    0
	000001bc    0
	000001c0    0
	000001c4    0
	000001c8    0
	000001cc    0
	000001d0    0
	000001d4    0
	000001d8    0
	000001dc    0
	000001e0    0
	000001e4    0
	000001e8    0
	000001ec    0
	000001f0    0
	000001f4    0
	000001f8    0
	000001fc    0
	00000200    0
	00000204    0
	00000208    0
	0000020c    0
	00000210    0
	00000214    0
	00000218    0
	0000021c    0
	00000220    0
	00000224    0
	00000228    0
	0000022c   -1
	00000230   -1
	00000234    0
	00000238    0
	0000023c    0
	00000240    0
	00000244    0
	00000248    0
	0000024c    0
	00000250    0
	00000254    0
	00000258    0
	0000025c    0
	00000260    0
	00000264    0
	00000268    0
	0000026c    0
	00000270    0
	00000274    0
	00000278    0
	0000027c    0
	00000280    0
	00000284    0
	00000288    0
	0000028c    0
	00000290    0
	00000294    0
	00000298    0
	0000029c    0
	000002a0    0
	000002a4    0
	000002a8    0
	000002ac    0
	000002b0    0
	000002b4    0
	000002b8    0
	000002bc    0
	000002c0    0
	000002c4    0
	000002c8    0
	000002cc    0
	000002d0    0
	000002d4    0
	000002d8    0
	000002e4    0
	000002e8   15
	000002ec    0
	000002f0   15
	000002f8    0
	000002fc   15
	00000300    0
	0000030c    0
System information:
    Wine build: wine-7.0
    Platform: i386
    Version: Windows 7
    Host system: Linux
    Host version: 5.13.0-40-generic
My OS is Ubuntu MATE 20.04.
I also copied the terminal output, I just omitted a copy of the backtrace, since it's identical to the one above:

Code: Select all

0080:fixme:reg:RegOpenUserClassesRoot (00000098, 0x0, 0x2000000, 0031F094) semi-stub
0080:fixme:ole:NdrCorrelationInitialize (0031E384, 0031DE60, 1024, 0x0): semi-stub
0080:fixme:ole:NdrCorrelationFree (0031E384): stub
0024:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 0021EF64, 0021EF74 0021EF68
0024:fixme:nls:get_dummy_preferred_ui_language (0x38 0021EF64 0021EF74 0021EF68) returning a dummy value (current locale)
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:imm:ImeSetActiveContext (0x2c71e0, 1): stub
0024:fixme:imm:ImmReleaseContext (00010064, 002C71E0): stub
0024:fixme:reg:RegOpenUserClassesRoot (000000D0, 0x0, 0x2000000, 0021EBF8) semi-stub
0024:fixme:heap:RtlCompactHeap (00240000, 0x0) stub
0080:fixme:imm:ImeSetActiveContext (0x4b7b28, 0): stub
0080:fixme:imm:ImmReleaseContext (00010020, 004B7B28): stub
0024:fixme:win:RegisterTouchWindow (0002006C 00000000): stub
0024:fixme:win:RegisterTouchWindow (00010064 00000000): stub
0024:fixme:win:LockWindowUpdate (0002006C), partial stub!
0114:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:RegisterTouchWindow (0002006C 00000000): stub
0024:fixme:win:RegisterTouchWindow (00010064 00000000): stub
0024:fixme:win:LockWindowUpdate (0002006C), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:RegisterTouchWindow (0002006C 00000000): stub
0024:fixme:win:RegisterTouchWindow (00010064 00000000): stub
0024:fixme:win:LockWindowUpdate (0002006C), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:ver:GetCurrentPackageId (0021F6CC 00000000): stub
0024:fixme:ieframe:navigate_url Unsupported args (Flags 0021F298 {VT_I4: 0}; TargetFrameName (null))
011c:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 06AC9460, context 00D95FD8, init_notify 0, handle 0C4FFDA0): stub
0024:fixme:imm:ImmGetDescriptionW (08100810, 00000000, 0): semi stub
0024:fixme:imm:ImmGetDescriptionW (08100810, 14B44D30, 9): semi stub
0024:fixme:msctf:InputProcessorProfileMgr_GetActiveProfile (04565698)->({34745c63-b2f0-4784-8b67-5e12c8701a31} 0021BC94)
0024:fixme:ole:NdrCorrelationInitialize (0021AFD4, 0021AAB0, 1024, 0x0): semi-stub
0024:fixme:ole:NdrCorrelationFree (0021AFD4): stub
0024:fixme:file:NtLockFile I/O completion on lock not implemented yet
0024:fixme:ieframe:BrowserService_GetTravelLog 045671E8 0021CC70
0024:fixme:mshtml:on_change_dlcontrol unsupported dlcontrol 40006070
0024:fixme:ieframe:ClientSite_GetContainer (03660E18)->(0021CD6C)
0024:fixme:ieframe:ClientSite_GetContainer (03660E18)->(0021DD5C)
0024:fixme:font:freetype_set_outline_text_metrics failed to read full_nameW for font L"Ani"!
0024:fixme:wininet:query_global_option Stub for 6
0024:fixme:win:LockWindowUpdate (0002006C), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (0002007A), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (00040078), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (0001007C), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (0001007E), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (000100A0), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (000100A2), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (000100A4), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:win:LockWindowUpdate (000100CE), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:d3d9:Direct3DShaderValidatorCreate9 Returning stub validator 67C9E028.
0024:fixme:ieframe:DocHostUIHandler_GetDropTarget (03660E18)
0024:fixme:ntdll:create_logical_proc_info Improve CPU info reporting: system supports 36 logical cores, but only 32 supported!
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 33
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 34
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 35
0024:fixme:ntdll:create_logical_proc_info Improve CPU info reporting: system supports 36 logical cores, but only 32 supported!
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 33
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 34
0024:fixme:ntdll:create_logical_proc_info skipping logical processor 35
0058:fixme:mountmgr:query_property Faking StorageDeviceProperty data
0058:fixme:mountmgr:query_property Faking StorageDeviceProperty data
0058:fixme:mountmgr:query_property Faking StorageDeviceProperty data
0024:fixme:ntdll:EtwRegisterTraceGuidsW   register trace class {a3da04e0-57d7-482a-a1c1-61da5f95bacb}
0024:fixme:ntdll:EtwRegisterTraceGuidsW   register trace class {917b96b1-ecad-4dab-a760-8d49027748ae}
0024:fixme:ntdll:EtwRegisterTraceGuidsW   register trace class {26d1e091-0ae7-4f49-a554-4214445c505c}
0024:fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005
0024:fixme:ieframe:get_location_url semi-stub
0024:fixme:win:LockWindowUpdate (0001007C), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:wininet:query_global_option Stub for 6
0024:fixme:win:LockWindowUpdate (0001007E), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0270:fixme:secur32:get_cipher_algid unknown algorithm 23
0270:fixme:secur32:get_mac_algid unknown algorithm 200, cipher 23
0270:fixme:secur32:get_cipher_algid unknown algorithm 23
0270:fixme:secur32:get_mac_algid unknown algorithm 200, cipher 23
0024:fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT/DATA_SEND_TIMEOUT 5592405
0024:fixme:wininet:InternetSetOptionW INTERNET_OPTION_SEND/RECEIVE_TIMEOUT/DATA_SEND_TIMEOUT 5592405
0024:fixme:wininet:query_global_option Stub for 6
0024:fixme:win:LockWindowUpdate (000100D8), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
0024:fixme:wininet:query_global_option Stub for 6
0024:fixme:win:LockWindowUpdate (000100D8), partial stub!
0024:fixme:win:LockWindowUpdate (00000000), partial stub!
wine: Unhandled page fault on read access to 00000034 at address 7BC5AC55 (thread 0024), starting debugger...
02a8:fixme:imm:ImeSetActiveContext (0x590cb0, 1): stub
02a8:fixme:imm:ImmReleaseContext (000100F4, 00590CB0): stub
0110:fixme:win:GetWindowPlacement not fully supported on other process window 0002002E.
The main problem for me is to understand what to install next. I already tried installing "comdlg32ocx", "d3dx10", "dotnet35", "msvcrt40", "vcrun2008", but the error message remains the same, so I suppose they have no effect on the problem (or they will have an effect once I manage to get past this obstacle).
If you can help me, I'd be very grateful. If not, thanks for taking your time reading this topic anyway. :)

PS: I'd love to give a better title to this topic, but honestly I can't even understand where the problem is, so I can't be more specific.
Locked