[Bug 39135] New: Star Wars Republic Commando launcher crashes when starting game
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(a)winehq.org Reporter: alexhenrie24(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Alex Henrie <alexhenrie24(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek(a)codeweavers.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Alex Henrie <alexhenrie24(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=29468 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Jacek Caban <jacek(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|mshtml |jscript -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 joaopa <jeremielapuree(a)yahoo.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree(a)yahoo.fr --- Comment #1 from joaopa <jeremielapuree(a)yahoo.fr> --- Does the bug still occur with wine-6.19? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 --- Comment #2 from Alex Henrie <alexhenrie24(a)gmail.com> --- Yes, the launcher still crashes on exit in Wine 6.18. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Robert Wilhelm <sloper42(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sloper42(a)yahoo.com --- Comment #3 from Robert Wilhelm <sloper42(a)yahoo.com> --- Can you please add new trace? exec_global_code was removed from jscript.c in 33984c390df823b1d23890f2ed8b5223b067f7ea on 30 Jan 2020. . -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Alex Henrie <alexhenrie24(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #52145|0 |1 is obsolete| | --- Comment #4 from Alex Henrie <alexhenrie24(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 --- Comment #5 from Alex Henrie <alexhenrie24(a)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. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=39135 Neko-san <nekoNexus(a)protonmail.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus(a)protonmail.ch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla