Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
02159 Crash/Freeze Critical (emulator) Always Aug 24, 2008, 17:51 Aug 26, 2008, 04:39
Tester john_iv View Status Public Platform MAME (Official Binary)
Assigned To aaron Resolution Fixed OS
Status [?] Resolved Driver
Version 0.127 Fixed in Version 0.127u1 Build Normal
Fixed in Git Commit Github Pull Request #
Summary 02159: cubeqst: Cubequest crashes on ATI hardware w/ prescale > 1
Description It appears that with our without the CHD running cubequest in baseline Mame x86 or x64 on ATI video hardware causes a av crash.

I tried this on my main machine Vista x64, NVIDIA 8800GTS [G92] and it works without a problem. Also my work machines which have NVIDIA GPUs worked too.

It fails on: ATI Radeon x1950 Pro, ATI x800XT, and ATI 1200 onboard graphics. Catalyst 8.8 and 8.7.

Doesn't seem to care if its baseline x64 or x86 or MameUI32 or MameUI64.

Vista is the common OS though and it only crashes if prescale is set to greater than 1.

C:\Games\Classics\MAME>vmame64

-----------------------------------------------------
Exception at EIP=0000000140B890C9: ACCESS VIOLATION
While attempting to read memory at 00000030
-----------------------------------------------------
RAX=0000000000000000 RBX=0000000000000000 RCX=0000000000000001 RDX=0000000007BB6
E70
RSI=0000000008116180 RDI=0000000008132B50 RBP=000000000803E790 RSP=000000000293F
9F0
 R8=0000006001320022 R9=00000061012A0023 R10=000000000000002F R11=000000000293F
9C0
R12=0000000000030192 R13=0000000000000402 R14=0000000000000000 R15=0000000000030
192
Steps To Reproduce 1. Set prescale to 2 or 3 and use D3D v.9 w/ bilinear filtering.
2. Launch cubeqst.
3. 'MAME cubeqst -norc -prescale 2'
4. Crash
Additional Information Backtrace:
C:\Games\Classics\MAME>gdb mamed
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
welcome to change it and/or distribute copies of it under certain conditi
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for detail
This GDB was configured as "i686-pc-mingw32"...
(gdb) run cubeqst -window
Starting program: C:\Games\Classics\MAME/mamed.exe cubeqst -window
Error: dll starting at 0x77051000 not found.
Error: dll starting at 0x76a31000 not found.
Error: dll starting at 0x77051000 not found.
Error: dll starting at 0x76f81000 not found.
Loaded symbols for C:\Windows\system32\ntdll.dll
Loaded symbols for C:\Windows\syswow64\kernel32.dll
Loaded symbols for C:\Windows\syswow64\advapi32.dll
Loaded symbols for C:\Windows\syswow64\rpcrt4.dll
Loaded symbols for C:\Windows\syswow64\secur32.dll
Loaded symbols for C:\Windows\WinSxS\x86_microsoft.windows.common-control
64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll
Loaded symbols for C:\Windows\syswow64\msvcrt.dll
Loaded symbols for C:\Windows\syswow64\gdi32.dll
Loaded symbols for C:\Windows\syswow64\user32.dll
Loaded symbols for C:\Windows\syswow64\shlwapi.dll
Loaded symbols for C:\Windows\SysWOW64\dinput.dll
Loaded symbols for C:\Windows\SysWOW64\winmm.dll
Loaded symbols for C:\Windows\syswow64\ole32.dll
Loaded symbols for C:\Windows\syswow64\oleaut32.dll
Loaded symbols for C:\Windows\SysWOW64\oleacc.dll
Loaded symbols for C:\Windows\SysWOW64\dsound.dll
Loaded symbols for C:\Windows\SysWOW64\powrprof.dll

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 3808.0xd70]
0x009f4d7a in texture_update (d3d=0xc3b1f44, prim=0x13821f98)
    at src/osd/windows/drawd3d.c:2467
2467            if (texture->texinfo.seqid != prim->texture.seqid)
(gdb) bt
#0  0x009f4d7a in texture_update (d3d=0xc3b1f44, prim=0x13821f98)
    at src/osd/windows/drawd3d.c:2467
#1  0x009f4d7a in texture_update (d3d=0xc1b1e90, prim=0x6701094c)
    at src/osd/windows/drawd3d.c:2467
#2  0x009f4d7a in texture_update (d3d=0xc1b1e90, prim=0x6701094c)
    at src/osd/windows/drawd3d.c:2467
#3  0x009f4d7a in texture_update (d3d=0x6024e, prim=0x402)
    at src/osd/windows/drawd3d.c:2467
#4  0x009f4d7a in texture_update (d3d=0x9ad600, prim=0x6024e)
    at src/osd/windows/drawd3d.c:2467
#5  0x009f4d7a in texture_update (d3d=0x0, prim=0x9ad600)
    at src/osd/windows/drawd3d.c:2467
#6  0x009f4d7a in texture_update (d3d=0x9ad600, prim=0x1)
    at src/osd/windows/drawd3d.c:2467
#7  0x009f4d7a in texture_update (d3d=0xc15ff24, prim=0x0)
    at src/osd/windows/drawd3d.c:2467
#8  0x009f4d7a in texture_update (d3d=0x0, prim=0x8837bad1)
    at src/osd/windows/drawd3d.c:2467
#9  0x009f4d7a in texture_update (d3d=0xc15ff94, prim=0x76abe3f3)
    at src/osd/windows/drawd3d.c:2467
#10 0x009f4d7a in texture_update (d3d=0x71a27e8, prim=0xc15ffd4)
    at src/osd/windows/drawd3d.c:2467
#11 0x009f4d7a in texture_update (d3d=0x71a27e8, prim=0x7971d0ea)
    at src/osd/windows/drawd3d.c:2467
#12 0x009f4d7a in texture_update (d3d=0x757d2da8, prim=0x71a27e8)
    at src/osd/windows/drawd3d.c:2467
#13 0x009f4d7a in texture_update (d3d=0x757d2da8, prim=0x71a27e8)
    at src/osd/windows/drawd3d.c:2467
#14 0x009f4d7a in texture_update (d3d=Cannot access memory at address 0x8
) at src/osd/windows/drawd3d.c:2467
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
Github Commit
Flags
Regression Version
Affected Sets / Systems cubeqst
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
6
User avatar
No.02204
john_iv
Senior Tester
Aug 24, 2008, 18:45
edited on: Aug 24, 2008, 23:17
Backtrace Added.
User avatar
No.02205
Firewave
Senior Tester
Aug 24, 2008, 18:57
I had no problems running the 32-bit version on Windows XP x64 with a ATI Radeon 9600 using Direct3D 9 with the CHD. I am still using the CATALYST 8.7 drivers.

And it's not an assertion, it's an actual crash - an access violation.
User avatar
No.02207
john_iv
Senior Tester
Aug 24, 2008, 19:37
edited on: Aug 24, 2008, 19:43
Hmm, wonder if it's Vista + ATI specific. Gridle also didn't see the issue on his XP box w/ ATI hardware.

My remaining XP holdout in the house is a Dell Inspiron 1100 notebook. I'll go try it there.

Crashes in XP SP3 x86 with an Intel 82845G integrated video.
User avatar
No.02208
john_iv
Senior Tester
Aug 24, 2008, 19:44
Ah ok, it looks like it crashes if prescale is set to anything but 1 on those configurations.

It works w/ prescale at 3 on my NVIDIA.
User avatar
No.02209
Firewave
Senior Tester
Aug 24, 2008, 19:51
edited on: Aug 24, 2008, 19:54
I can confirm, that it does crash with "-prescale 2".

Update: It also appears to be laserdisc-specific as it also crashes with the two games I tried lgp and maddog2.
User avatar
No.02211
Tafoid
Administrator
Aug 24, 2008, 23:16
edited on: Aug 24, 2008, 23:16
MAME cubeqst -prescale 2 -video d3d -filter Windows 32-bit crashes here. Confirmed. Radeon 9600 All-In-Wonder on Windows 2000.