http://bugs.winehq.org/show_bug.cgi?id=21361
Summary: Segmentation fault (NULL dereference) while trying to run Tony Hawk 2 Product: Wine Version: 1.1.36 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: lmage11@twcny.rr.com
Created an attachment (id=25722) --> (http://bugs.winehq.org/attachment.cgi?id=25722) Messages and backtrace that wine produces
I'm trying to relive my prepubescent life by playing Tony Hawk 2, and wine is not making it easy. :)
At first I got this, and nothing else happened (I got a black screen):
fixme:mixer:ALSA_MixerInit No master control found on VirMIDI, disabling mixer fixme:ddraw:DirectDrawEnumerateExA flags 0x00000007 not handled fixme:d3d_caps:init_driver_info Unhandled vendor 8086. fixme:win:EnumDisplayDevicesW ((null),0,0x32ea78,0x00000000), stub! fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 16 fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x13a618,0x1cd290): stub err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 58 err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 64
I then changed X11's screen depth to 16, and got some different errors and a segfault. This bug is about the segfault, even though I suspect that the segfault wouldn't happen if the previous errors were resolved. Backtraces from wine and gdb are attached.
I pretty much know how the segfault happens on a low level, but I don't know what the correct resolution is because I don't know anything about D3D or 3D in general, let alone how wine implements that stuff. Here's the "flow" of code which causes the segfault to happen:
IDirectDrawImpl_CreateSurface is called IDirectDrawImpl_AttachD3DDevice is called IWineD3DDevice_Init3D is called IWineD3DDeviceParent_CreateSwapChain call fails Jumps to err_out label, This->swapchains is never allocated Error handling causes stuff to return until we're in IDirectDrawImpl_CreateSurface again ... and you can see the rest from the backtraces
http://bugs.winehq.org/show_bug.cgi?id=21361
--- Comment #1 from Ari Entlich lmage11@twcny.rr.com 2010-01-13 19:00:44 --- Created an attachment (id=25723) --> (http://bugs.winehq.org/attachment.cgi?id=25723) Backtrace (bt full) that gdb produces
http://bugs.winehq.org/show_bug.cgi?id=21361
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #25722|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=21361
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #25723|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=21361
Raymond superquad.vortex2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |superquad.vortex2@gmail.com
--- Comment #2 from Raymond superquad.vortex2@gmail.com 2010-07-28 06:56:45 --- (In reply to comment #0)
Created an attachment (id=25722)
--> (http://bugs.winehq.org/attachment.cgi?id=25722) [details]
Messages and backtrace that wine produces
fixme:mixer:ALSA_MixerInit No master control found on VirMIDI, disabling mixer
snd-virmidi is RAWMIDI not sound card,
wine should skip snd_mixer_open() in winealsa.drv/mixer.c when snd_ctl_card_info_get_mixername(info) is NULL
http://bugs.winehq.org/show_bug.cgi?id=21361
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr 2011-06-17 13:31:31 CDT --- Is it still a bug in current wine?
If yes, does the bug occur with the demo http://www.jeuxvideo.com/telecharger/jeux-et-demos/00002065-tony-hawk-s-pro-...
http://bugs.winehq.org/show_bug.cgi?id=21361
--- Comment #4 from joaopa jeremielapuree@yahoo.fr 2011-07-30 04:09:56 CDT --- No answer since 1 year. This bug could be closed as ABANDONED
http://bugs.winehq.org/show_bug.cgi?id=21361
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |ABANDONED
--- Comment #5 from Austin English austinenglish@gmail.com 2011-08-01 14:20:26 CDT --- (In reply to comment #4)
No answer since 1 year. This bug could be closed as ABANDONED
Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=21361
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Austin English austinenglish@gmail.com 2011-08-02 11:02:31 CDT --- Closing.