[Bug 16397] Megaman X4 (DirectX 5 game) crashes on startup

WineHQ Bugzilla wine-bugs at winehq.org
Sun Jun 7 16:47:52 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=16397

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|ABANDONED                   |FIXED
           Priority|P5                          |P2
          Component|-unknown                    |directx-d3d
           Keywords|                            |download
                 CC|                            |focht at gmx.net
           Severity|enhancement                 |normal
            Summary|Megaman X4 can't be played  |Megaman X4 (DirectX 5 game)
                   |                            |crashes on startup
                URL|                            |https://www.myabandonware.c
                   |                            |om/game/mega-man-x4-a4c#dow
                   |                            |nload

--- Comment #7 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

I've found a download for testing.

https://www.myabandonware.com/game/mega-man-x4-a4c#download

You need workaround for:

--- snip ---
0024:fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from
32 to 16
0024:fixme:ddraw:ddraw_surface7_Flip Ignoring flags 0x1.
--- snip ---

https://wiki.winehq.org/256_Color_Mode (actually 16bpp here)

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/CAPCOM/MEGAMANX4

$ Xephyr :1 -ac -screen 800x600x16 &

$ DISPLAY=:1 wine ./MMX4.exe
--- snip ---

Original backtrace with old Wine versions (since OP didn't deliver):

--- snip ---
wine: Unhandled page fault on read access to 0xffffffff at address 0x6b8c6a2f
(thread 0028), starting debugger...
Unhandled exception: page fault on read access to 0xffffffff in 32-bit code
(0x6b8c6a2f).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:6b8c6a2f ESP:0032ee1c EBP:000000b8 EFLAGS:00010246(  R- --  I  Z- -P- )
 EAX:00000000 EBX:00000000 ECX:6a27c470 EDX:00000000
 ESI:00000000 EDI:7c4c9260
...
Backtrace:
=>0 0x6b8c6a2f in i965_dri.so (+0x40ea2f) (0x000000b8)
  1 0x6b8afc39 in i965_dri.so (+0x3f7c38) (0x7c4a40b0)
  2 0x6b8af952 in i965_dri.so (+0x3f7951) (0x6be79aa0)
  3 0x6b8af9e6 in i965_dri.so (+0x3f79e5) (0x6be79aa0)
  4 0x6b8aff64 in i965_dri.so (+0x3f7f63) (0x6be79aa0)
  5 0x6b8c7adb in i965_dri.so (+0x40fada) (0x6be79aa0)
  6 0x6b8a144e in i965_dri.so (+0x3e944d) (0x7c4a9028)
  7 0x6b5123d9 in i965_dri.so (+0x5a3d8) (0x7c4a9028)
  8 0x6b8a429e in i965_dri.so (+0x3ec29d) (0x00000000)
  9 0x6b8621bb in i965_dri.so (+0x3aa1ba) (0x00000000)
  10 0x7c41c909 in libglx_mesa.so.0 (+0x17908) (0x00000000)
  11 0x7c41cb0a in libglx_mesa.so.0 (+0x17b09) (0x7d894f50)
  12 0x7d4b19a1 in libglx.so.0 (+0x29a0) (0x7d894f50)
  13 0x7d4b3038 in libglx.so.0 (+0x4037) (0x7d894f50)
  14 0x7dcec0d4 has_opengl.part+0x6d3() in winex11 (0x0032f354)
  15 0x7dcef8d5 X11DRV_wglGetProcAddress+0x124() in winex11 (0x0032f384)
  16 0x7e5a77e7 wglGetProcAddress+0x66() in gdi32 (0x0032f3c4)
  17 0x7df2f97b InitAdapters+0xfa() in wined3d (0x0032f804)
  18 0x7df46090 wined3d_init+0x2f() in wined3d (0x0032f814)
  19 0x7dfbcb70 wined3d_create+0x3f() in wined3d (0x0032f844)
  20 0x7e02d66c ddraw_init+0xcb() in ddraw (0x0032f894)
  21 0x7e03c12f DDRAW_Create+0x7e() in ddraw (0x0032f8d4)
  22 0x7e03c920 DirectDrawCreate+0x3f() in ddraw (0x0032f904)
  23 0x00491b28 in mmx4 (+0x91b27) (0x0032faf0)
  24 0x004964c3 in mmx4 (+0x964c2) (0x0032fb18)
  25 0x0048f87e in mmx4 (+0x8f87d) (0x0032fb30)
  26 0x00401a14 in mmx4 (+0x1a13) (0x0032fbb0)
  27 0x004022f4 in mmx4 (+0x22f3) (0x0032fe70)
  28 0x7ebfe1ec call_process_entry+0xb() in kernel32 (0x0032fe88)
  29 0x7ebff120 start_process+0x4f() in kernel32 (0x0032feb8)
  30 0x7efa108c call_thread_func_wrapper+0xb() in ntdll (0x0032fec8)
  31 0x7efa3a09 call_thread_func+0xa8() in ntdll (0x0032ffa8)
  32 0x7efa106a call_thread_entry_point+0x11() in ntdll (0x0032ffc8)
  33 0x7ef7e107 start_process+0x16() in ntdll (0x0032ffe8)
  34 0xf7db3c5d wine_call_on_stack+0x1c() in libwine.so.1 (0x00000000)
  35 0xf7db3dc0 wine_switch_to_stack+0x1f() in libwine.so.1 (0xffdb7738)
  36 0x7ef83083 LdrInitializeThunk+0x2f2() in ntdll (0xffdb7798)
  37 0x7ec049e1 __wine_kernel_init+0xb30() in kernel32 (0xffdb8678)
  38 0x7ef836ac __wine_process_init+0x1fb() in ntdll (0xffdb86d8)
  39 0xf7db2b78 wine_init+0x2a7() in libwine.so.1 (0xffdb8728)
  40 0x7bf00cea main+0x79() in <wine-loader> (0xffdb8b68)
  41 0xf7bbf0d1 __libc_start_main+0xf0() in libc.so.6 (0x00000000)
0x6b8c6a2f: (bad)    
Modules:
Module    Address            Debug info    Name (123 modules)
PE      400000-  61a000    Export          mmx4
ELF    6b4b8000-6bf00000    Dwarf           i965_dri.so
ELF    7bf00000-7bf04000    Dwarf           <wine-loader>
...
ELF    f7dac000-f7eee000    Dwarf           libwine.so.1
ELF    f7ef0000-f7f19000    Deferred        ld-linux.so.2
ELF    f7f1c000-f7f1d000    Deferred        [vdso].so
Threads:
process  tid      prio (all id:s are in hex)
...    
00000025 (D) C:\Program Files (x86)\CAPCOM\MEGAMANX4\MMX4.exe
    00000035    0
    0000001f   15
    00000033    0
    00000034    0
    00000029    0
    0000002a    0
    00000028    0 <==
--- snip ---

It was fixed in between Wine 1.5.0 and 1.6 release.

$ sha1sum Mega-Man-X4_Win_EN_ISO-Version.zip 
cabfa7d7573171510c8e36bc3e1ad610a95b1fb0  Mega-Man-X4_Win_EN_ISO-Version.zip

$ du -sh Mega-Man-X4_Win_EN_ISO-Version.zip 
353M    Mega-Man-X4_Win_EN_ISO-Version.zip

$ wine --version
wine-5.10

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list