http://bugs.winehq.org/show_bug.cgi?id=14779
Summary: Painkiller regression - Make game crash Product: Wine Version: CVS/GIT Platform: PC URL: http://www.painkillergame.com/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: tlarhices@gmail.com
Created an attachment (id=15316) --> (http://bugs.winehq.org/attachment.cgi?id=15316) Output in the terminal when crashing
In latest version of wine, painkiller doesn't start anymore. It output some lines in the terminal (see attached log) and exit.
I did a regression test, and the problem comes from this patch :
54ae3ebfd4bc6fab1e322b92fe84909535f9f26e is first bad commit commit 54ae3ebfd4bc6fab1e322b92fe84909535f9f26e Author: H. Verbeet hverbeet@gmail.com Date: Wed Jul 9 17:59:39 2008 +0200
wined3d: Destroy depth_blt resources in the backend's destructor.
No need to expose this in the interface.
:040000 040000 b94c1412e2d815f4abda0a5a013d9470975c12ec dad8c29b5afcb77f83d1b6b1f34ab9e3567deb94 M dlls
To reproduce the bug, simply start painkiller and it will crash before displaying the introduction screen.
http://bugs.winehq.org/show_bug.cgi?id=14779
Clerc Mathias tlarhices@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hverbeet@gmail.com
--- Comment #1 from Clerc Mathias tlarhices@gmail.com 2008-08-06 07:58:18 --- Adding patch author to the CC list.
http://bugs.winehq.org/show_bug.cgi?id=14779
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Summary|Painkiller regression - Make|Painkiller doesn't start |game crash |anymore
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #2 from Damjan Jovanovic damjan.jov@gmail.com 2008-08-07 00:43:04 --- Created an attachment (id=15330) --> (http://bugs.winehq.org/attachment.cgi?id=15330) Proposed patch
Try this patch.
http://bugs.winehq.org/show_bug.cgi?id=14779
Damjan Jovanovic damjan.jov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |damjan.jov@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #3 from H. Verbeet hverbeet@gmail.com 2008-08-07 02:50:19 ---
err:d3d:CreateContext SetPixelFormat failed on HDC=0x370 for iPixelFormat=3 err:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain Failed to create a new context fixme:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain (0x138680) Something's still holding the front buffer fixme:d3d9:IDirect3DDevice9Impl_CreateAdditionalSwapChain (0x1349b0) call to IWineD3DDevice_CreateAdditionalSwapChain failed wine: Unhandled page fault on read access to 0x00000008 at address 0x7cd84503 (thread 0009), starting debugger...
The crash is caused by the shader backend getting freed before it's allocated, due to CreateAdditionalSwapChain() failing. That's indeed a bug, and I'll create a patch for that. Figuring out why CreateContext()/SetPixelFormat() fails in the first place is probably more interesting though.
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #4 from Clerc Mathias tlarhices@gmail.com 2008-08-07 07:09:47 --- The patch did not do much to the problem. It made a change in the log file but doesn't make the game start.
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #5 from Clerc Mathias tlarhices@gmail.com 2008-08-07 07:10:54 --- Created an attachment (id=15332) --> (http://bugs.winehq.org/attachment.cgi?id=15332) Errors in the terminal when using the patch
Errors in the terminal when using the patch
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #6 from H. Verbeet hverbeet@gmail.com 2008-08-07 11:22:17 --- Created an attachment (id=15335) --> (http://bugs.winehq.org/attachment.cgi?id=15335) patch
Try this.
http://bugs.winehq.org/show_bug.cgi?id=14779
Clerc Mathias tlarhices@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #7 from Clerc Mathias tlarhices@gmail.com 2008-08-07 18:25:19 --- Thank you for your fast patch. It works perfectly.
http://bugs.winehq.org/show_bug.cgi?id=14779
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Keywords| |patch Resolution|FIXED |
--- Comment #8 from Lei Zhang thestig@google.com 2008-08-07 19:41:36 --- It's not fixed until the patch has been committed.
http://bugs.winehq.org/show_bug.cgi?id=14779
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #9 from joaopa jeremielapuree@yahoo.fr 2008-08-28 10:30:27 --- Is this bug fixed with the current git now?
Joaopa
http://bugs.winehq.org/show_bug.cgi?id=14779
--- Comment #10 from Clerc Mathias tlarhices@gmail.com 2008-08-30 10:05:06 --- I just tested it, it's fixed in current git.
http://bugs.winehq.org/show_bug.cgi?id=14779
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #11 from Austin English austinenglish@gmail.com 2008-08-31 00:14:45 --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=14779
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Alexandre Julliard julliard@winehq.org 2008-09-05 10:39:36 --- Closing bugs fixed in 1.1.4.
http://bugs.winehq.org/show_bug.cgi?id=14779
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified