http://bugs.winehq.org/show_bug.cgi?id=18608
Summary: Trickstyle does not start anymore Product: Wine Version: 1.1.22 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: mailme667@yahoo.co.uk
Created an attachment (id=21289) --> (http://bugs.winehq.org/attachment.cgi?id=21289) terminal output
When I try to start Trickstyle, I just get an unhandled exception. This is the culprit from the terminal output:
wine: Unhandled page fault on read access to 0x00000000 at address 0x7d6d2556 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x7d6d2556).
I'm pretty sure the game was still working on wine 1.1.2 and was broken shortly after (this bug was already present in 1.1.7 IIRC and possibly before), but I've upgraded my Ubuntu a while ago so I can't go back to that version (well not without compiling stuff).
Both the demo and the full version are affected. I can't seem to figure out how to connect this bug to Trickstyle in the appdb or mark this bug as a regression so I hope that happens automatically or something. :-P
Demo download: http://download.cnet.com/TrickStyle/3000-7418_4-917835.html
http://bugs.winehq.org/show_bug.cgi?id=18608
W3ird_N3rd mailme667@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
http://bugs.winehq.org/show_bug.cgi?id=18608
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://download.cnet.com/Tr | |ickStyle/3000-7418_4-917835 | |.html
--- Comment #1 from Ken Sharp kennybobs@o2.co.uk 2009-05-24 12:09:56 --- Bugzilla does state that a regression test should be completed BEFORE submitting a bug.
Regression test needed. http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #2 from W3ird_N3rd mailme667@yahoo.co.uk 2009-05-24 19:46:20 --- I was kind of hoping that with this information somebody would say "Aaah, there's your problem".. Maybe I shouldn't have mentioned at all that it used to work.
I'll look into the regression test tomorrow, need sleep now..
http://bugs.winehq.org/show_bug.cgi?id=18608
W3ird_N3rd mailme667@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexd4@inbox.lv
--- Comment #3 from W3ird_N3rd mailme667@yahoo.co.uk 2009-06-14 14:25:33 --- Finally!
Regression testing was, as I feared, quite difficult. With help from the IRC channel I figured it out eventually and fixed the wiki. Removing and re-applying the freetype patch before and after every bisect is a bit of a pain. The price (in terms of sleep) was high.
But here we are.
03ae71dad9dd8fad886c7b818b46de2c4287ec40 is first bad commit commit 03ae71dad9dd8fad886c7b818b46de2c4287ec40 Author: Alexander Dorofeyev alexd4@inbox.lv Date: Wed Aug 20 21:51:41 2008 +0300
wined3d: Set D3DPTEXTURECAPS_TRANSPARENCY.
It indicates support of colorkey transparency on textures, so set it because wined3d supports it. Fixes transparency problems in Forsaken.
:040000 040000 399b30a598674f708003dbf4c692caad0eadafca 3563d1ecab4b3b7d9b7c4eaaf9b2d65abdf6af3e M dlls
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #4 from W3ird_N3rd mailme667@yahoo.co.uk 2009-06-18 14:10:52 --- I thought about this a bit, and I suspect that not directly the patch the regression test gave causes the error, but a bug in the implementation for textures with transparency (which was enabled by that patch). TrickStyle does use textures with transparency, and it seems there would be a bug somewhere that causes TrickStyle to crash when wine is allowed to use them.
So fixing this bug would probably also make TrickStyle look a lot better!
It also probably means that somebody else needs to be in the CC for this bug, but I do not know who wrote the code for textures with transparency, or how to figure out who did.
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #5 from W3ird_N3rd mailme667@yahoo.co.uk 2009-06-20 15:54:36 --- Will let you know my progress.
Dorofeyev's patch is just one line:
+ WINED3DPTEXTURECAPS_TRANSPARENCY |
So I took a wine 1.1.24 and removed that line. And guess what, Trickstyle starts. Not only that, the Velodrome looks absolutely brilliant. In 1.1.2 most stuff too far away was black, well, that's fixed.
In the Velodrome, life is good. The game starts with these errors though:
err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 19 err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 64 err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 70
But the Velodrome appears unaffected. When I start a race though, I get lots of these:
err:ddraw:PixelFormat_DD2WineD3D Unknown Pixelformat! err:ddraw:IDirectDrawImpl_CreateNewSurface Unsupported / Unknown pixelformat err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 88760091
I can race, but textures have only one color and no detail. In 1.1.2, textures *did* have detail in races!
So it seems some pixelformat is not supported, that's the idea I'm getting. Maybe this is a known bug, maybe I can somehow help (try to hack, donate money, whatever) to help supporting them?
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #6 from W3ird_N3rd mailme667@yahoo.co.uk 2009-07-04 15:32:34 --- I was able to fix pixelformat 19/64/70 with the patch from Andrew Church in bug #16559.
It looks like when TEXTURECAPS_TRANSPARENCY is enabled everything is about three times this error:
err:ddraw:PixelFormat_DD2WineD3D Unknown Pixelformat! err:ddraw:IDirectDrawImpl_CreateNewSurface Unsupported / Unknown pixelformat err:ddraw:IDirectDrawImpl_CreateSurface IDirectDrawImpl_CreateNewSurface failed with 88760091
I very much suspect that when this unknown pixelformat would be supported the unhandled exception would leave.
But I do not know how to find out what format it requires and how to support that. You can see I've been trying a bit in bug #16559 but have not really been able to get anywhere so far.
This bug is possibly related to bug #5897.
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #7 from W3ird_N3rd mailme667@yahoo.co.uk 2009-09-17 14:31:02 --- Created an attachment (id=23637) --> (http://bugs.winehq.org/attachment.cgi?id=23637) Patch for textureformats 19-64-70
Based on comment #36 from bug #16559 I made a complete textureformats 19-64-70 patch and tried to run Trickstyle with that, with D3DPTEXTURECAPS_TRANSPARENCY enabled again. It didn't really work, but the error has changed. Before I got a load of ddraw errors followed by an Unhandled page fault/exception, this time I get *no* errors followed by "*** glibc detected *** /media/sdb1/Games/TrickStyle/TS_D3D.exe: malloc(): memory corruption: 0x7db0cb58 ***".
According to some forum, it is possible wine or the program is writing beyond the end of an allocated memory block. I don't know if that's the case. I can't be 100% sure the patch is correct so the problem could be in there. Any help is appreciated.
http://bugs.winehq.org/show_bug.cgi?id=18608
--- Comment #8 from W3ird_N3rd mailme667@yahoo.co.uk 2009-09-17 14:37:54 --- Created an attachment (id=23638) --> (http://bugs.winehq.org/attachment.cgi?id=23638) Terminal output with 19-64-70 patch
Complete terminal output with the 19-64-70 patch which can be found in the comment above.
http://bugs.winehq.org/show_bug.cgi?id=18608
W3ird_N3rd mailme667@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #23638|application/octet-stream |text/plain mime type| |
http://bugs.winehq.org/show_bug.cgi?id=18608
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=18608
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #9 from joaopa jeremielapuree@yahoo.fr 2011-05-15 18:21:52 CDT --- Bug still there in current git
http://bugs.winehq.org/show_bug.cgi?id=18608
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Regression SHA1| |03ae71dad9dd8fad886c7b818b4 | |6de2c4287ec40
http://bugs.winehq.org/show_bug.cgi?id=18608
sacrediou sacrediou@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sacrediou@yahoo.fr
http://bugs.winehq.org/show_bug.cgi?id=18608
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED URL|http://download.cnet.com/Tr |http://download.cnet.com/Tr |ickStyle/3000-7418_4-917835 |ickStyle/3000-2117_4-100335 |.html |65.html Resolution| |FIXED
--- Comment #10 from Austin English austinenglish@gmail.com 2011-10-27 15:52:33 CDT --- Works in wine-1.3.31-147-gfe1f692. Fails for me in 1.3.21 (newest version I had installed on this machine).
http://bugs.winehq.org/show_bug.cgi?id=18608
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2011-11-04 14:15:45 CDT --- Closing bugs fixed in 1.3.32.