x3 reunion crash

Questions about Wine on Linux
Locked
VoodooBeep
Level 1
Level 1
Posts: 5
Joined: Mon Sep 26, 2022 12:15 pm

x3 reunion crash

Post by VoodooBeep »

Hello,
I wanted to run X3 Reunion with wine-7.18 but it crashes at start. It ran with older versions of wine. Here is the register dump / backtrace:

Code: Select all

Unhandled exception: divide by zero in 32-bit code (0x1c401f2c).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:1c401f2c ESP:1375fce0 EBP:00000000 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:000001a1 EBX:00000000 ECX:000001a1 EDX:00000000
 ESI:01998a94 EDI:019989f0
Stack dump:
0x1375fce0:  019a83a8 019989f0 000001a1 00000000
0x1375fcf0:  00000000 019a83a8 01999058 6a2d8d26
0x1375fd00:  01999068 1375fd80 00000030 deadbabe
0x1375fd10:  00000216 7bc55f30 1375fd24 00000001
0x1375fd20:  00000000 0001002f 00000000 00000000
0x1375fd30:  00000000 00000000 00000000 01998fc0
Backtrace:
=>0 0x1c401f2c in l3codecx.ax (+0x1f2c) (0x00000000)
0x1c401f2c l3codecx.ax+0x1f2c: divl	%ebp,%eax
Modules:
Module	Address			Debug info	Name (58 modules)
PE	00400000-006f0000	Deferred        x3
PE	00930000-009f8000	Deferred        winmm
PE	00a00000-01336000	Deferred        shell32
PE	01340000-01353000	Deferred        zlib1
PE	01360000-015af000	Deferred        d3dx9_27
PE	01f30000-01faa000	Deferred        winex11
PE	03d30000-03d44000	Deferred        amstream
PE	10000000-100d6000	Deferred        imgdll
PE	10f10000-10f8d000	Deferred        wmspdmod
PE	1c400000-1c418000	Export          l3codecx.ax
PE	35680000-356a3000	Deferred        devenum
PE	51080000-510e1000	Deferred        dsound
PE	61500000-6152f000	Deferred        iphlpapi
PE	61740000-61783000	Deferred        advapi32
PE	61b80000-61bbc000	Deferred        qasf
PE	62680000-62697000	Deferred        wmvcore
PE	62e80000-62ec2000	Deferred        wbemprox
PE	62fc0000-6304e000	Deferred        rpcrt4
PE	63480000-6348d000	Deferred        version
PE	63bc0000-63bda000	Deferred        shcore
PE	64a40000-64a94000	Deferred        shlwapi
PE	64ec0000-64fea000	Deferred        oleaut32
PE	65bc0000-65bcc000	Deferred        midimap
PE	663c0000-66473000	Deferred        winspool
PE	666c0000-666cf000	Deferred        hid
PE	66b00000-66b3c000	Deferred        win32u
PE	67840000-678b7000	Deferred        winepulse
PE	67c80000-67e29000	Deferred        d3d9
PE	68500000-6855a000	Deferred        combase
PE	68700000-68735000	Deferred        uxtheme
PE	69540000-695ef000	Deferred        dinput8
PE	697c0000-69810000	Deferred        ddraw
PE	69880000-698f9000	Deferred        winegstreamer
PE	6a040000-6a062000	Deferred        msacm32
PE	6a280000-6a32e000	Deferred        msvcrt
PE	6a400000-6a536000	Deferred        ole32
PE	6adc0000-6ae02000	Deferred        dxgi
PE	6af80000-6afb8000	Deferred        dxdiagn
PE	6bc00000-6bc2c000	Deferred        sechost
PE	6bcc0000-6bd3d000	Deferred        setupapi
PE	6c0c0000-6c0c7000	Deferred        msdmo
PE	6c9c0000-6ca49000	Deferred        gdi32
PE	6cc40000-6cd9a000	Deferred        comctl32
PE	6d780000-6d7a9000	Deferred        ws2_32
PE	6e4c0000-6e4d6000	Deferred        dnsapi
PE	6ed00000-6eec2000	Deferred        user32
PE	6f480000-6f48b000	Deferred        nsi
PE	70040000-70065000	Deferred        msacm32
PE	70b40000-70c18000	Deferred        ucrtbase
PE	70d00000-70e05000	Deferred        comdlg32
PE	71080000-710fa000	Deferred        winealsa
PE	71200000-7121b000	Deferred        imm32
PE	71440000-716c5000	Deferred        wined3d
PE	76010000-76187000	Deferred        quartz
PE	7a840000-7a844000	Deferred        opengl32
PE	7b000000-7b29d000	Deferred        kernelbase
PE	7b600000-7b661000	Deferred        kernel32
PE	7bc00000-7bcaa000	Deferred        ntdll
Threads:
process  tid      prio    name (all IDs are in hex)
00000020 (D) C:\X3 Reunion\X3.EXE
	00000024    0     
	00000138    0     
	00000140    0     
	00000144    0     
	00000148    0     
	0000014c   15     
	00000168   15     
	0000016c   15     
	00000170    0     
	00000174   15     
	0000017c    0     
	00000180    0     
	00000184   15     
	00000188    0     
	0000018c    0     
	00000190    0     
	00000194   15     
	00000198    0     
	0000019c    0     
	000001a0   15     
	000001a4    0 <== 
	000001b0    0     
00000038 services.exe
	0000003c    0     
	00000040    0     
	00000054    0     
	00000098    0     
	000000bc    0     
	000000d4    0     
	0000010c    0     
00000044 winedevice.exe
	00000048    0     
	0000005c    0     
	00000060    0     
	00000064    0     
	00000068    0     
	0000006c    0     
	000000e0    0     
0000004c explorer.exe
	00000050    0     
	00000104    0     
	00000108    0     
	00000118    0     
00000090 winedevice.exe
	00000094    0     
	0000009c    0     
	000000a0    0     
	000000a4    0     
	000000a8    0     
	000000ac    0     
	000000b0    0     
000000b4 plugplay.exe
	000000b8    0     
	000000c0    0     
	000000c4    0     
	000000c8    0     
000000cc svchost.exe
	000000d0    0     
	000000d8    0     
	000000dc    0     
000000e4 conhost.exe
	000000e8    0     
000000fc rpcss.exe
	00000100    0     
	00000110    0     
	00000114    0     
	0000011c    0     
	00000120    0     
	00000128    0     
System information:
    Wine build: wine-7.18
    Platform: i386
    Version: Windows XP
    Host system: Linux
    Host version: 5.19.12-arch1-1
Here is what gets printed to stdout / stderr:

Code: Select all

007c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000142
003c:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 1114
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:d3d:wined3d_check_device_format_conversion output 00714518, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G5R5X1_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0024:fixme:d3d:wined3d_check_device_format_conversion output 00714518, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B5G6R5_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0024:fixme:d3d:wined3d_check_device_format_conversion output 00714518, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8X8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0024:fixme:d3d:wined3d_check_device_format_conversion output 00714518, device_type WINED3D_DEVICE_TYPE_HAL, src_format WINED3DFMT_B8G8R8A8_UNORM, dst_format WINED3DFMT_B8G8R8X8_UNORM stub!
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:d3d9:wined3dformat_from_d3dformat Unhandled D3DFORMAT 0x64.
0024:fixme:wbemprox:wbem_services_CreateInstanceEnum unsupported flags 0x30
0024:fixme:wbemprox:enum_class_object_Next timeout not supported
0024:fixme:ddraw:ddraw7_Initialize Ignoring guid {aeb2cdd4-6e41-43ea-941c-8361cc760781}.
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\devenum.dll"
0024:err:ole:com_get_class_object no class object {da4e3da0-d07d-11d0-bd50-00a0c911ce86} could be created for context 0x1
0024:fixme:ntdll:NtQuerySystemInformation (0x00000007,0x72e578,0x00000018,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation (0x00000050,0x72e578,0x00000054,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_CACHE_INFORMATION
0024:fixme:ntdll:NtQuerySystemInformation (0x00000021,0x72e6e0,0x00000010,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation (0x0000002d,0x72e6e0,0x00000020,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation (0x0000003d,0x72e6f8,0x00000a90,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation (0x00000012,0x72e6f8,0x00000a90,0x21ed28) stub
0024:fixme:ntdll:NtQuerySystemInformation (0x0000002a,0x72e710,0x00000a78,0x21ed28) stub
0024:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0024:err:ole:com_get_class_object no class object {71985f4b-1ca1-11d3-9cc8-00c04f7971e0} could be created for context 0x1
0024:err:ole:com_get_class_object no class object {a2e3074f-6c3d-11d3-b653-00c04f79498e} could be created for context 0x1
0024:err:ole:com_get_class_object class {cc7bfb41-f175-11d1-a392-00e0291f3959} not registered
0024:err:ole:com_get_class_object no class object {cc7bfb41-f175-11d1-a392-00e0291f3959} could be created for context 0x1
0024:err:ole:com_get_class_object class {cc7bfb46-f175-11d1-a392-00e0291f3959} not registered
0024:err:ole:com_get_class_object no class object {cc7bfb46-f175-11d1-a392-00e0291f3959} could be created for context 0x1
0024:fixme:imm:ImeSetActiveContext (0001006A, 1): stub
0024:fixme:imm:ImmReleaseContext (00010072, 0001006A): stub
0050:fixme:imm:ImeSetActiveContext (0001002C, 0): stub
0050:fixme:imm:ImmReleaseContext (00010020, 0001002C): stub
0024:fixme:rawinput:NtUserRegisterRawInputDevices Unhandled flags 0x230 for device 0.
0024:err:ole:com_get_class_object class {ca503b60-b176-11d4-a094-d0c0bf3a560c} not registered
0024:err:ole:com_get_class_object no class object {ca503b60-b176-11d4-a094-d0c0bf3a560c} could be created for context 0x1
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
winegstreamer error: decodebin0: Your GStreamer installation is missing a plug-in.
winegstreamer error: decodebin0: ../gstreamer/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c(4701): gst_decode_bin_expose (): /GstBin:bin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: Windows Media Speech (audio/x-wms, bitrate=(int)20000, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)1, block_align=(int)1088, codec_data=(buffer)10000400000000000000000000001000000005fa9a0005c92d48805a600000000000000000000000000000000000)

0024:err:wmvcore:init_stream Failed to connect parser, hr 0x80004005.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb86-524f-11ce-9f53-0020af0ba770}.
0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\devenum.dll"
0024:err:ole:com_get_class_object no class object {da4e3da0-d07d-11d0-bd50-00a0c911ce86} could be created for context 0x1
0024:err:ole:com_get_class_object no class object {71985f4b-1ca1-11d3-9cc8-00c04f7971e0} could be created for context 0x1
0024:err:ole:com_get_class_object no class object {a2e3074f-6c3d-11d3-b653-00c04f79498e} could be created for context 0x1
0024:fixme:quartz:amt_to_wg_format_video Unknown format type {00000000-0000-0000-0000-000000000000}.
winegstreamer warning: videoconvert1: not negotiated
winegstreamer warning: videoconvert1: ../gstreamer/subprojects/gstreamer/libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstBin:bin1/GstVideoConvert:videoconvert1:
not negotiated
0024:fixme:d3d:wined3d_query_gl_create Unhandled query type 0x4.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:reg:RegQueryInfoKeyW security argument not supported.
0024:fixme:quartz:mpeg_splitter_sink_query_accept Unsupported subtype {e436eb84-524f-11ce-9f53-0020af0ba770}.
0024:fixme:quartz:amt_to_wg_format_video Unknown format type {00000000-0000-0000-0000-000000000000}.
winegstreamer warning: videoconvert3: not negotiated
winegstreamer warning: videoconvert3: ../gstreamer/subprojects/gstreamer/libs/gst/base/gstbasetransform.c(1431): gst_base_transform_reconfigure_unlocked (): /GstBin:bin2/GstVideoConvert:videoconvert3:
not negotiated
wine: Unhandled division by zero at address 1C401F2C (thread 01a0), starting debugger...
01a8:fixme:imm:ImeSetActiveContext (000100B6, 1): stub
01a8:fixme:imm:ImmReleaseContext (000100C4, 000100B6): stub
0164:fixme:win:NtUserGetWindowPlacement not fully supported on other process window 0x200c0.
wine client error:13c: wine client error:17c: write: Bad file descriptor
write: Bad file descriptor
wine client error:18c: write: Bad file descriptor
wine client error:198: write: Bad file descriptor
Does anyone have any suggestions what I could try to make it run?
NewtSoup
Level 1
Level 1
Posts: 9
Joined: Sun Aug 13, 2017 11:40 am

Re: x3 reunion crash

Post by NewtSoup »

Taking into account you may be trying to run X3R in Wine as an academic exercise, I would just like to point out that X3 Reunion has a native Linux client if installed via steam for Linux.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: x3 reunion crash

Post by jkfloris »

Code: Select all

winegstreamer error: decodebin0: Your GStreamer installation is missing a plug-in.
winegstreamer error: decodebin0: ../gstreamer/subprojects/gst-plugins-base/gst/playback/gstdecodebin2.c(4701): gst_decode_bin_expose (): /GstBin:bin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: Windows Media Speech (audio/x-wms, bitrate=(int)20000, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)1, block_align=(int)1088, codec_data=(buffer)10000400000000000000000000001000000005fa9a0005c92d48805a600000000000000000000000000000000000)
Whether this is the cause of the crash, I am not sure, but the lib32-gst-plugins-good package is missing.
VoodooBeep
Level 1
Level 1
Posts: 5
Joined: Mon Sep 26, 2022 12:15 pm

Re: x3 reunion crash

Post by VoodooBeep »

Thanks for figuring this out, jkfloris. That is strange, I am on Arch Linux and pacman lists the lib32-gst-plugins-good package as installed

Code: Select all

$ pacman -Q | grep  "lib32-gst-plugins"
lib32-gst-plugins-bad 1.18.5-2
lib32-gst-plugins-base 1.20.3-2
lib32-gst-plugins-base-libs 1.20.3-2
lib32-gst-plugins-good 1.20.3-2
lib32-gst-plugins-ugly 1.20.3-2
I take it the decoder for Windows Media Speech should be part of it?
Last edited by VoodooBeep on Sat Oct 08, 2022 11:07 am, edited 1 time in total.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: x3 reunion crash

Post by jkfloris »

I keep getting those gstreamer plugins mixed up. I think audio/x-wms is part of lib32-gst-libav
VoodooBeep
Level 1
Level 1
Posts: 5
Joined: Mon Sep 26, 2022 12:15 pm

Re: x3 reunion crash

Post by VoodooBeep »

Thanks again, jkfloris. I installed the lib32-gst-libav package and the "Missing decoder" message is gone. But the crash still occurs :(
Any more ideas, anyone?
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: x3 reunion crash

Post by jkfloris »

Code: Select all

0024:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111 for dll L"C:\\windows\\system32\\devenum.dll"
Did you use winetricks to install devenum or something from DirectX9?
VoodooBeep
Level 1
Level 1
Posts: 5
Joined: Mon Sep 26, 2022 12:15 pm

Re: x3 reunion crash

Post by VoodooBeep »

I do not know to be honest. I installed x3 reunion years ago (using a now outdated Play on Linux's X3 terran conflict script) and just copied the prefix when I switched Computers / hard disk drives . Your question inspired me to install x3 reunion in a clean prefix and the crash at startup is gone! Thank you, jkfloris. Problem solved, :D !

Unfortunately there is another. When I try to start a new game it terminates with a messagebox "File not found". Here are the last few lines of output ("out of memory" and "triangle with zero area" warnings repeat):

Code: Select all

0024:fixme:quartz:amt_to_wg_format_video Unknown format type {00000000-0000-0000-0000-000000000000}.
0024:fixme:quartz:MediaPosition_CanSeekForward (01CFA13C)->(007EF810) stub!
0024:fixme:quartz:media_seeking_SetPositions iface 01CB7060, current 30434.843, current_flags 0x9, stop 0.0, stop_flags 0 stub!
0024:fixme:quartz:media_seeking_ChangeCurrent iface 01CB7060 stub!
----
Warning!  Some triangles have zero area!
0024:err:d3d:wined3d_resource_allocate_sysmem Failed to allocate system memory.
0024:err:d3d:wined3d_resource_allocate_sysmem Failed to allocate system memory.
0024:err:d3d:wined3d_resource_allocate_sysmem Failed to allocate system memory.
Out of memory.
Further information can be found in the manual!
0024:fixme:quartz:media_seeking_SetPositions iface 01CB7060, current 30434.843, current_flags 0x9, stop 0.0, stop_flags 0 stub!
0024:fixme:quartz:media_seeking_ChangeCurrent iface 01CB7060 stub!
0024:err:sync:RtlLeaveCriticalSection section 008F0074 is not acquired
0024:err:sync:RtlLeaveCriticalSection section 008F0074 is not acquired
0158:err:virtual:virtual_setup_exception stack overflow 68 bytes in thread 0158 addr 0x7bc55d1d stack 0x3680fbc (0x3680000-0x3681000-0x3780000)
0158:err:virtual:virtual_setup_exception nested exception on signal stack in thread 0158 addr 0x4 stack 0x7ff9ed8c
zsh: killed     wine X3.EXE
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: x3 reunion crash

Post by jkfloris »

The game seems to start with the following winetricks:

Code: Select all

winetricks -q l3codecx directshow wmp10
VoodooBeep
Level 1
Level 1
Posts: 5
Joined: Mon Sep 26, 2022 12:15 pm

Re: x3 reunion crash

Post by VoodooBeep »

That is right, thank you so much. As mentioned in an appdb entry for x3 reunion if one lets the intro video run for a few seconds most of the sound works (in game speech does not, but I never got that one working). Thanks again for all your help.
Locked