http://bugs.winehq.org/show_bug.cgi?id=15768
Summary: lego star wars II crashes with joystick plugged in Product: Wine Version: 1.1.6 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: usp10 AssignedTo: wine-bugs@winehq.org ReportedBy: ajw1980@gmail.com CC: hans@meelstraat.net
Created an attachment (id=16865) --> (http://bugs.winehq.org/attachment.cgi?id=16865) crash on start
This is a regression from 1.1.5. I'll attach the console output. I did a regression test and got this:
addcf866cbb42309ccafa41e8424c3b80a00a7ba is first bad commit commit addcf866cbb42309ccafa41e8424c3b80a00a7ba Author: Hans Leidekker hans@codeweavers.com Date: Thu Oct 9 15:17:29 2008 +0200
usp10: Store glyph mappings and widths in the script cache.
:040000 040000 cde3af8be4df698c3c7f34595e989823f47f1702 6ec2dfbd7d086d4f4c3790dbcff71a3cfa7d418b M dlls
Reverting that patch on 1.1.7 makes it work ok.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #1 from Hans Leidekker hans@meelstraat.net 2008-10-25 08:22:03 --- Please attach a WINEDEBUG=+uniscribe,+relay,+tid,+seh trace.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #2 from Andy Wettstein ajw1980@gmail.com 2008-10-25 09:27:13 --- Created an attachment (id=16867) --> (http://bugs.winehq.org/attachment.cgi?id=16867) +uniscribe,+relay,+tid,+seh trace
http://bugs.winehq.org/show_bug.cgi?id=15768
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2008-10-25 13:49:30 --- Could be a stack/heap corruption. Can you also add +dinput to the last debug trace?
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #4 from Hans Leidekker hans@meelstraat.net 2008-10-25 14:22:19 --- Another helpful diagnostic is to run the app with native usp10 and see if that changes anything. And perhaps do the same with native dinput.
http://bugs.winehq.org/show_bug.cgi?id=15768
Andy Wettstein ajw1980@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #16867|0 |1 is obsolete| |
--- Comment #5 from Andy Wettstein ajw1980@gmail.com 2008-10-25 19:20:22 --- Created an attachment (id=16882) --> (http://bugs.winehq.org/attachment.cgi?id=16882) +uniscribe,+relay,+tid,+seh,+dinput trace
added +dinput to trace
http://bugs.winehq.org/show_bug.cgi?id=15768
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=15768
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|regression |
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2008-10-25 21:04:26 --- (In reply to comment #4) Native dinput doesn't work with joysticks. It won't be a viable test.
Is there a demo of this game and if so, does it have the same problem?
http://bugs.winehq.org/show_bug.cgi?id=15768
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #7 from Andy Wettstein ajw1980@gmail.com 2008-10-26 10:11:42 --- (In reply to comment #4)
Another helpful diagnostic is to run the app with native usp10 and see if that changes anything. And perhaps do the same with native dinput.
native usp10 ends with this: wine: Unhandled page fault on read access to 0x000000dc at address 0x7bc438d1 (thread 0009), starting debugger...
But seems to just hang at a black screen instead of starting the debugger like the builtin.
I narrowed it down a little more, too. It only happens when 2 joysticks are plugged in. My original testing was with a usb -> playstation adapter which always has 2 joystick devices. Just as a guess I tried with a single usb logitech joystick (wingman cordless) and it worked ok. I then plugged in a second logitech joystick and it crashed again.
This game does have a demo, but it doesn't seem to be affected by this bug.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #8 from Vitaliy Margolen vitaliy@kievinfo.com 2008-10-26 12:19:08 --- I don't see anything obviously wrong with dinput. The part that fails just tries to print an error. The fact itself it fails kind of suspicious. But that's about it. Really looks like a case of memory corruption.
Can you try to run Wine under valgrind? It's a long shot at best. Even latest valgind having problems with Wine.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #9 from Andy Wettstein ajw1980@gmail.com 2008-11-08 08:36:00 --- Created an attachment (id=17141) --> (http://bugs.winehq.org/attachment.cgi?id=17141) +uniscribe,+relay,+tid,+seh,+dinput trace on 1.1.8
I wasn't able to get this to run under valgrind, but I did test with 1.1.8 and there is at least some different behavior, now. Instead of crashing it hangs on a black screen with this: wine: Unhandled stack overflow at address 0x7e38d353 (thread 0021), starting debugger... err:seh:setup_exception_record stack overflow 908 bytes in thread 0021 eip 7bc534b9 esp 04360fa4 stack 0x4360000-0x4361000-0x4560000 Terminated
I'm attaching the trace output, too.
http://bugs.winehq.org/show_bug.cgi?id=15768
Andy Wettstein ajw1980@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|lego star wars II crashes |lego star wars II crashes |with joystick plugged in |with 2 joysticks plugged in
--- Comment #10 from Andy Wettstein ajw1980@gmail.com 2008-11-09 11:11:16 --- I am tested the demo again on 1.1.8 and it did crash when I plugged in 2 joysticks, now.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #11 from Andy Wettstein ajw1980@gmail.com 2008-11-13 07:42:03 --- Created an attachment (id=17258) --> (http://bugs.winehq.org/attachment.cgi?id=17258) grand theft auto 3 crash
I did some more testing. The original lego star wars also crashes with 2 joysticks. I was able to crash grand theft auto 3 with 4 joysticks. I'm attaching the output. Grand theft auto 3 didn't work when I tried 1.1.5, though.
http://bugs.winehq.org/show_bug.cgi?id=15768
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vitaliy@kievinfo.com AssignedTo|wine-bugs@winehq.org |vitaliy@kievinfo.com Status|UNCONFIRMED |NEW Component|usp10 |directx-dinput Ever Confirmed|0 |1 Keywords| |download
--- Comment #12 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-20 19:45:03 --- It was more obvious then I thought. Patch sent: http://www.winehq.org/pipermail/wine-patches/2008-December/066513.html
It fixes demo for me.
http://bugs.winehq.org/show_bug.cgi?id=15768
--- Comment #13 from Andy Wettstein ajw1980@gmail.com 2008-12-21 00:48:24 --- Lego star wars II seems to be working fine with that patch applied to 1.1.11 for me as well.
http://bugs.winehq.org/show_bug.cgi?id=15768
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #14 from Vitaliy Margolen vitaliy@kievinfo.com 2008-12-29 11:02:41 --- Patch committed. Will be available in the next release or current GIT.
http://bugs.winehq.org/show_bug.cgi?id=15768
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org 2009-01-02 10:34:12 --- Closing bugs fixed in 1.1.12.