https://bugs.winehq.org/show_bug.cgi?id=39135
Bug ID: 39135 Summary: Star Wars Republic Commando launcher crashes when starting game Product: Wine Version: 1.7.50 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: mshtml Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 52145 --> https://bugs.winehq.org/attachment.cgi?id=52145 trace+mshtml,trace+urlmon
To reproduce this bug, open LaunchRC.exe and click START GAME. The game will start, but the launcher crashes instead of exiting cleanly. No other button has a problem.
`winetricks dlls ie8` avoids the crash. Further testing revealed that overriding mshtml.dll and urlmon.dll is sufficient.
For what it's worth, I've been able to figure out that the program crashes because This->site is null at the IActiveScriptSite_OnLeaveScript macro in exec_global_code in dlls/jscript/jscript.c.
https://bugs.winehq.org/show_bug.cgi?id=39135
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
https://bugs.winehq.org/show_bug.cgi?id=39135
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=29468
https://bugs.winehq.org/show_bug.cgi?id=39135
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|mshtml |jscript
https://bugs.winehq.org/show_bug.cgi?id=39135
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #1 from joaopa jeremielapuree@yahoo.fr --- Does the bug still occur with wine-6.19?
https://bugs.winehq.org/show_bug.cgi?id=39135
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- Yes, the launcher still crashes on exit in Wine 6.18.
https://bugs.winehq.org/show_bug.cgi?id=39135
Robert Wilhelm sloper42@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42@yahoo.com
--- Comment #3 from Robert Wilhelm sloper42@yahoo.com --- Can you please add new trace?
exec_global_code was removed from jscript.c in 33984c390df823b1d23890f2ed8b5223b067f7ea on 30 Jan 2020. .
https://bugs.winehq.org/show_bug.cgi?id=39135
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #52145|0 |1 is obsolete| |
--- Comment #4 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 72714 --> https://bugs.winehq.org/attachment.cgi?id=72714 WINEDEBUG=+mshtml,+urlmon,+jscript
As requested, here's a new trace from Wine 7.12. I just clicked the X in the top-right corner of the launcher, which is enough to make it crash without even starting the game.
https://bugs.winehq.org/show_bug.cgi?id=39135
--- Comment #5 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 72715 --> https://bugs.winehq.org/attachment.cgi?id=72715 Hack to avoid the crash
The X is actually a link to the URI "javascript:window.external.Quit();". navigate_javascript_proc calls window.external.Quit and window.external.Quit calls some other function that deletes window->browser and window->browser->doc, which navigate_javascript_proc expects to still be available.
I'm attaching a hack that prevents the crash by incrementing the reference count of window->browser->doc, but I still don't know what the correct solution is.
https://bugs.winehq.org/show_bug.cgi?id=39135
Neko-san nekoNexus@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch