http://bugs.winehq.org/show_bug.cgi?id=22032
Summary: Steam in-game overlay does not work outside winedbg Product: Wine Version: 1.1.40 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: Enrico_m@gmx.de CC: stefandoesinger@gmx.at
Thanks to the amazing work of Stefan Dösinger (my wine hero), the Steam in-game overlay is finally working - but only if I run Steam in winedbg. Outside winedbg i get the following error, if I try to run the game with in-game overlay enabled:
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x7ede1bf5
Tested with "Supreme Commander 2", "Mirror's Edge" and "Team Fortress 2"
I'm happy to provide logs, if someone could point me to the right trace channel(s).
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #1 from Enrico Enrico_m@gmx.de 2010-03-18 19:15:15 --- Created an attachment (id=26883) --> (http://bugs.winehq.org/attachment.cgi?id=26883) workaround to prevent the unhandled exception
some more infos:
1. If the first start of a steam app fails, it will always fail until steam is restarted. 2. If the game start succeeds (rare case), all starts will succeed until steam is restarted. 3. The unhandled exception does not occur if steam is started in winedbg, but it will occur if winedbg is attached later. I guess the real problem is during steam startup and not the app startup. 4. winedbg pointed to - GetConsoleInputExeNameA (dlls/kernel32/console.c) - GetConsoleTitleA (dlls/kernel32/console.c) - attach_process_dlls (dlls/ntdll/loader.c) after changing GetConsoleInputExeNameA and GetConsoleTitleA to simple stubs, attach_process_dlls kept popping up. Deleting the call to pthread_sigmask in attach_process_dlls fixed the unhandled exception (even if reverting GetConsoleInputExeNameA and GetConsoleTitleA).
I don't know how to really fix this bug, but I hope this maybe helps a real wine developer to investigate.
btw: many other steam user have had the unhandled exception too, but they fixed it by disabling the steam in-game overlay. This was not a big issue, because the in-game overlay did not work until know (you just need a gcc newer than 4.4.3, I just build one from svn).
http://bugs.winehq.org/show_bug.cgi?id=22032
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |-unknown
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-03-19 08:47:06 --- Can you try the patch from bug 20380?
http://bugs.winehq.org/show_bug.cgi?id=22032
Enrico Enrico_m@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntdll
--- Comment #3 from Enrico Enrico_m@gmx.de 2010-03-19 15:16:07 --- (In reply to comment #2)
Can you try the patch from bug 20380?
"The patch" is a little bit vague, if it comes to bug 20380. I tried "patch for linux kernel 2.6.33" and "block SIGSEGV in sigusr1 handler". Both patches applied and build fine, but had no effect.
Did I try the wrong one?
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #4 from Vitaliy Margolen vitaliy@kievinfo.com 2010-03-19 21:34:21 --- Yes, the kernel patch. Also I'm assuming you compiling newest gcc yourself?
http://bugs.winehq.org/show_bug.cgi?id=22032
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |-unknown
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #5 from Enrico Enrico_m@gmx.de 2010-03-20 08:42:11 --- Yes, I build gcc myself (from 4.5 branch), but I also had this issue with gcc 4.3.4 an 4.4.3 supplied by Gentoo.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #6 from edward savage epssyis@gmail.com 2010-05-06 20:03:34 --- Created an attachment (id=27787) --> (http://bugs.winehq.org/attachment.cgi?id=27787) game overlay ui crash log
This is the Game Overlay Renderer log for a failed attempt to call it from within TF2.
I am forwarding this bug to the new Steam UI as it deals with the same issue in the separate GameOverlayUI.exe.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #7 from Stefan Dösinger stefandoesinger@gmx.at 2010-06-06 04:21:57 --- Edward, you don't have the right gcc to build a Wine that Steam likes.
First, you need binutils 2.20 Then compile gcc from SVN(maybe 4.5 works too), make sure it's using the new binutils Afterwards, re-run wine's configure with the new gcc *and* the new binutils. It should print that support for "ms_hook_prologue" is found.
Then recompile wine and the overlay dll should attach successfully and you'll run into the problem described in this bug. It used to work when I made the gcc changes - dunno what broke it.
http://bugs.winehq.org/show_bug.cgi?id=22032
Mike Ellery mellery@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mellery@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=22032
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #8 from Vitaliy Margolen vitaliy@kievinfo.com 2010-07-08 18:20:34 --- Duplicate
*** This bug has been marked as a duplicate of bug 17497 ***
http://bugs.winehq.org/show_bug.cgi?id=22032
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Vitaliy Margolen vitaliy@kievinfo.com 2010-07-08 18:20:42 --- Closing
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #10 from Enrico Enrico_m@gmx.de 2010-07-15 17:43:50 --- Hi Vitaly, could you please explain why do you think this is a duplicate of bug 17497?
As stated above, this bug report is NOT about crashes/problems with ms_hook_prologue disabled. This crash occurs with wine build with newest binutils and gcc 4.5.0 - configure states: ms_hook_prologue "yes".
The crash should occur in winedbg too, if this bug is similar to bug 17497.
http://bugs.winehq.org/show_bug.cgi?id=22032
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #11 from Eric Pouech eric.pouech@orange.fr 2010-07-16 01:06:56 --- just to be sure, does running the program in wineconsole (instead of wine) help ? (without winedbg) ?
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #12 from el elton@schiert.net 2010-08-07 09:07:29 --- Yes, I seem to be able to start games with the ingame community overlay working when I run Steam through wineconsole, but not when running Steam normally.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #13 from el elton@schiert.net 2010-09-23 18:19:16 CDT --- I don't seem to be affected by this when running a 2.6.35 kernel (was using 2.6.32 before).
I want to add that this bug is not a duplicate of bug 17497. It is an independent issue that persists even after Stefan's patches were in (I did compile Wine using gcc-4.5.1). However, there is a similar bug report, which is in fact a duplicate of 17497. That is bug 22053, which should be closed.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #14 from Stefan Dösinger stefandoesinger@gmx.at 2010-09-24 05:35:18 CDT --- I don't know if this is related, but Steam accidentally forwarded GetMessageW to GetMessageA. Combined with our GetMessageA->GetMessageW calls it lead to an infinite recursion in all games that call any GetMessage* function. Valve has fixed this bug a few days ago(somewhen in early September).
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #15 from el elton@schiert.net 2010-09-28 08:37:45 CDT --- (In reply to comment #14) To me, this sound more like it could have been the cause of bug 24064.
http://bugs.winehq.org/show_bug.cgi?id=22032
Kfir Itzhak mastertheknife@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever Confirmed|0 |1
--- Comment #16 from Kfir Itzhak mastertheknife@gmail.com 2010-11-19 08:47:45 CST --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=22032
Kfir Itzhak mastertheknife@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mastertheknife@gmail.com
--- Comment #17 from Kfir Itzhak mastertheknife@gmail.com 2010-11-19 08:58:57 CST --- Hi everyone,
Stefan, thanks for your hard work about investigating whats needed to make game overlay work and even created a patch for gcc to add a the ms_hook_prologue feature, thats a lot someone would be willing to do just for a small feature like the game overlay. thank you very much for your time and effort spent!
Unfourtunately, I have the same problem as Enrico. I compiled GCC 4.5.1, ensured i have binutils 2.20 or newer and re-compiled wine from git. Game overlay only works if running steam from winedbg, outside winedbg, i receive the same exception error message (although with a slightly different address), log will be attached after this post.
I'm running Gentoo x86-64 on kernel linux-2.6.34-gentoo-r12, using nvidia graphics card with driver 260.19.21 and wine from git (wine-1.3.7-172-g8925024) If you need any more info let me know.
Why is this bug closed? I viewed bug 17497 but it seems like a similar but unrelated bug. Xfire's bug was solved by installing latest gcc and other required things for the ms_hook_prologue to work, but we already have gcc 4.5.1 and the required binutils version. Please re-open this bug, it needs to be open for progress to be made with this issue.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #18 from Kfir Itzhak mastertheknife@gmail.com 2010-11-19 09:01:49 CST --- Created an attachment (id=32025) --> (http://bugs.winehq.org/attachment.cgi?id=32025) This is wine's output when starting steam and firing up CS 1.6
This is wine's output when starting steam and firing up CS 1.6. The line of error is the last one in this file.
http://bugs.winehq.org/show_bug.cgi?id=22032
Kfir Itzhak mastertheknife@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #32025|application/octet-stream |text/plain mime type| | Attachment #32025|errorlog |errorlog.txt filename| |
http://bugs.winehq.org/show_bug.cgi?id=22032
Kfir Itzhak mastertheknife@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #32025|This is wine's output when |wine's output when starting description|starting steam and firing |steam and firing up CS 1.6 |up CS 1.6 |
http://bugs.winehq.org/show_bug.cgi?id=22032
Enrico Enrico_m@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|DUPLICATE |
--- Comment #19 from Enrico Enrico_m@gmx.de 2010-11-20 06:46:47 CST --- This bug is not fixed and not related to bug 17497
http://bugs.winehq.org/show_bug.cgi?id=22032
Jeff Cook jeff@deserettechnology.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeff@deserettechnology.com
--- Comment #20 from Jeff Cook jeff@deserettechnology.com 2010-12-27 21:43:47 CST --- For the record, the overlay works fine for me in TF2 using release and git versions of WINE. I use GCC 4.5.1 and binutils 2.20.1 and compile WINE from source.
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #21 from el elton@schiert.net 2011-06-02 19:16:11 CDT --- I can no longer reproduce this bug with current versions of Linux/Wine/Steam.
http://bugs.winehq.org/show_bug.cgi?id=22032
Wylda wylda@volny.cz changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED CC| |wylda@volny.cz Resolution| |FIXED
--- Comment #22 from Wylda wylda@volny.cz 2011-06-21 04:19:43 CDT ---
Reported OK - twice.
http://bugs.winehq.org/show_bug.cgi?id=22032
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #23 from Alexandre Julliard julliard@winehq.org 2011-06-24 17:43:24 CDT --- Closing bugs fixed in 1.3.23.
http://bugs.winehq.org/show_bug.cgi?id=22032
Nicolás Delgado nicolasdelgado@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nicolasdelgado@gmail.com
--- Comment #24 from Nicolás Delgado nicolasdelgado@gmail.com 2011-08-20 23:56:18 CDT --- I have this problem with 1.3.26, i think it was por the Bug 22053 but i compile wine with gcc 4.5.0 and the problem still here, then i try open steam with winedbg and work just fine :/
I use Gentoo.
http://bugs.winehq.org/show_bug.cgi?id=22032
James epsilon72@cox.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |epsilon72@cox.net
--- Comment #25 from James epsilon72@cox.net 2011-10-04 12:15:05 CDT --- This is not working for me either. gcc-4.5.3-r1
http://bugs.winehq.org/show_bug.cgi?id=22032
--- Comment #26 from James epsilon72@cox.net 2011-10-04 13:00:33 CDT --- (In reply to comment #25)
This is not working for me either. gcc-4.5.3-r1
Correction to comment above - it *does* work for me with wine 1.3.29.