http://bugs.winehq.org/show_bug.cgi?id=31730
Bug #: 31730 Summary: MOHAA Demo crash at startup Product: Wine Version: 1.5.13 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: fracting@gmail.com Classification: Unclassified
A Linux user report that Mohaa doesn't work to the forum of Deepin Linux, I forward his report here.
wine-1.5.13-63-gcaf6fe0
1. Download the Mahaa demo from http://compactiongames.about.com/od/demos/p/mohaa.htm
4a0c431ed52c4c340b9c883ef859f1d3e7e4ab2e mohaaspdemo.exe
2. Install the demo
While installing, there are lots of repeated output like below:
err:ole:marshal_object object doesn't expose interface {be6115a1-7de5-48dc-ad2a-25060e00fce2}, failing with error 0x80004002 err:ole:ClientIdentity_QueryMultipleInterfaces IRemUnknown_RemQueryInterface failed with error 0x80004002
3. Start MOHAADemo:
~/.wine/drive_c/Program Files/EA GAMES/MOHAADemo$ wine MOHAADemo.exe err:seh:setup_exception_record stack overflow 2176 bytes in thread 0009 eip 7bc3ef44 esp 013e0ab0 stack 0x13e0000-0x13e1000-0x1be0000 Segmentation fault
No other outputs.
http://bugs.winehq.org/show_bug.cgi?id=31730
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download URL| |http://compactiongames.abou | |t.com/od/demos/p/mohaa.htm
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2012-09-18 15:05:12 CDT --- I don't know if this is the specific issue you're having, but many Quake 3 based games don't handle long GL extension strings from modern drivers particularly well. On Mesa based drivers you can use the MESA_EXTENSION_MAX_YEAR environment variable to limit the reported GL extensions based on when they were introduced. E.g. MESA_EXTENSION_MAX_YEAR=2003 would limit the extension string to extensions created in or before 2003. The nvidia drivers have a somewhat similar environment variable __GL_ExtensionStringVersion, but based on a driver version instead. __GL_ExtensionStringVersion=17700 would limit the extension string to extensions present in the nvidia 177.x drivers.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #2 from Qian Hong fracting@gmail.com 2012-10-04 09:55:40 CDT --- Hi Henri,
Thanks for the tips, with MESA_EXTENSION_MAX_YEAR=2003 the app no longer crash, but it freeze the whole screen instead. Should I report a separate bug?
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #3 from Henri Verbeet hverbeet@gmail.com 2012-10-04 10:03:13 CDT --- (In reply to comment #2)
Thanks for the tips, with MESA_EXTENSION_MAX_YEAR=2003 the app no longer crash, but it freeze the whole screen instead. Should I report a separate bug?
Possibly. Is that a regression?
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #4 from Qian Hong fracting@gmail.com 2012-10-04 10:45:29 CDT --- (In reply to comment #3)
(In reply to comment #2)
Thanks for the tips, with MESA_EXTENSION_MAX_YEAR=2003 the app no longer crash, but it freeze the whole screen instead. Should I report a separate bug?
Possibly. Is that a regression?
I'm not sure, I tested with wine-1.5.1 and got the same result with wine-1.5.13.
Thanks ;-)
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #5 from Henri Verbeet hverbeet@gmail.com 2012-10-04 10:55:27 CDT --- (In reply to comment #4)
I'm not sure, I tested with wine-1.5.1 and got the same result with wine-1.5.13.
At least it's not a recent regression then. I was under the impression that MoHAA is supposed to work, but haven't tested it myself.
http://bugs.winehq.org/show_bug.cgi?id=31730
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |31885
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #6 from Qian Hong fracting@gmail.com 2012-10-04 11:33:13 CDT --- (In reply to comment #2)
Hi Henri,
Thanks for the tips, with MESA_EXTENSION_MAX_YEAR=2003 the app no longer crash, but it freeze the whole screen instead. Should I report a separate bug?
In fact the app does crash, here is a more accurate description: Bug 31885
Thanks!
http://bugs.winehq.org/show_bug.cgi?id=31730
Adam Bolte boltronics@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |boltronics@gmail.com
--- Comment #7 from Adam Bolte boltronics@gmail.com 2013-05-05 04:29:33 CDT --- I'm running the MOHAA from GOG, and also getting the error the original poster got:
err:seh:setup_exception_record stack overflow 1008 bytes in thread 003e eip 7bc41638 esp 01400f40 stack 0x1400000-0x1401000-0x1c00000
Wine 1.3.32 doesn't have this problem (a version someone mentioned on the appdb page) so it does seem like an old regression. I'll try to narrow this down.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #8 from Adam Bolte boltronics@gmail.com 2013-05-05 07:09:38 CDT ---
From git bisect:
b349aa676facb465c127ad33623c06038b4f666b is the first bad commit commit b349aa676facb465c127ad33623c06038b4f666b Author: Alexandre Julliard julliard@winehq.org Date: Tue Jun 26 16:12:06 2012 +0200
opengl32: Add a helper function to correctly compare extension strings.
:040000 040000 fcc658925e5bde13f0dd3c9490dae75441c340ce 76f5263f262d35e2084044830fcf42e45211b83e M dlls
I'm running an Nvidia GTX680 (nvidia 313.26), so I must also export __GL_ExtensionStringVersion=17700 first. Otherwise, the game fails to launch with
err:seh:setup_exception_record stack overflow 2120 bytes in thread 0009 eip 7bc40c58 esp 01400ae8 stack 0x1400000-0x1401000-0x1c00000
which looks suspiciously similar to what we all seem to be getting post-regression.
Hope this can be marked as confirmed now.
http://bugs.winehq.org/show_bug.cgi?id=31730
Qian Hong fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Status|UNCONFIRMED |NEW CC| |julliard@winehq.org Ever Confirmed|0 |1 Regression SHA1| |b349aa676facb465c127ad33623 | |c06038b4f666b
--- Comment #9 from Qian Hong fracting@gmail.com 2013-05-05 10:10:08 CDT --- Bisected, CC AJ.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #10 from Adam Bolte boltronics@gmail.com 2013-05-05 10:48:27 CDT --- One last thing I forgot to mention - I also need to apply the reg file mentioned in some of the appdb MOHAA versions to get the game to run.
http://bugs.winehq.org/attachment.cgi?id=8249
I imagine this is required by the demo as well on newer graphic drivers, but I've only tried the full game.
That's the only other change to my otherwise clean wineprefix, although I installed using 1.5.29 due to the GOG installer being broken in b349aa676facb465c127ad33623c06038b4f666b.
http://bugs.winehq.org/show_bug.cgi?id=31730
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|regression | Regression SHA1|b349aa676facb465c127ad33623 | |c06038b4f666b |
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2013-05-05 11:12:35 CDT --- The disabled extensions must be separated by spaces, just like the extension strings. It worked before the patch because we didn't really parse the string, we just looked for a matching substring, so a comma-separated list happened to work.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #12 from Adam Bolte boltronics@gmail.com 2013-05-07 09:28:03 CDT --- Created attachment 44390 --> http://bugs.winehq.org/attachment.cgi?id=44390 mohaa_disabled_extenstions-v2.reg
Updated the reg file to correctly disable OpenGL extensions using space separation instead of commas.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #13 from Adam Bolte boltronics@gmail.com 2013-05-07 09:34:12 CDT --- Thanks AJ - you nailed it. Using the modified .reg file attached, along with __GL_ExtensionStringVersion=17700, the game appears to work perfectly in v1.5.29.
Although I'm not the original reporter, I'd be happy to see this bug closed. Cheers.
http://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #14 from Qian Hong fracting@gmail.com 2013-05-07 15:19:34 CDT --- (In reply to comment #12)
Created attachment 44390 [details] mohaa_disabled_extenstions-v2.reg
Updated the reg file to correctly disable OpenGL extensions using space separation instead of commas.
Thanks Henry and AJ for the hints, also thanks Adam for testing.
I can confirm the workaround work for me on my two machines as well: Step 1: - on Intel vga card machine: $ export MESA_EXTENSION_MAX_YEAR=2003
- on Nvidia vga card machine: $ export __GL_ExtensionStringVersion=17700
Step 2: Import the reg file http://bugs.winehq.org/show_bug.cgi?id=31730#c12
Then mohaa demo start to work! Cheers!
However, I have no idea how to resolve this bug. Maybe it is a duplicate of some know bugs, or maybe it is invalid?
Could someone experienced resolve the bug? And also the related one: Bug 31885
Thanks a lot!
http://bugs.winehq.org/show_bug.cgi?id=31730
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID
--- Comment #15 from Henri Verbeet hverbeet@gmail.com --- (In reply to comment #14)
However, I have no idea how to resolve this bug. Maybe it is a duplicate of some know bugs, or maybe it is invalid?
It has probably come up before, but I don't remember a bug number offhand. This is INVALID because it's an application bug that in principle happens on Windows as well. The only reason it might not is that I expect most Windows drivers will ship with application specific workarounds by now, similar in function to the workarounds mentioned in this bug.
http://bugs.winehq.org/show_bug.cgi?id=31730
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |paulthetall@gmail.com
--- Comment #16 from Henri Verbeet hverbeet@gmail.com --- *** Bug 35453 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=31730
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Bruno Jesus 00cpxxx@gmail.com --- Closing invalid.
https://bugs.winehq.org/show_bug.cgi?id=31730
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Resolution|INVALID |DUPLICATE Summary|MOHAA Demo crash at startup |MOHAA Demo crash at startup | |(GL_EXTENSION string | |overflow)
--- Comment #18 from Anastasius Focht focht@gmx.net --- Hello folks,
resolving this as dupe of bug 25362 which serves as collector for this overflow.
Regards
*** This bug has been marked as a duplicate of bug 25362 ***
https://bugs.winehq.org/show_bug.cgi?id=31730
--- Comment #19 from Qian Hong fracting@gmail.com --- *** Bug 31885 has been marked as a duplicate of this bug. ***