https://bugs.winehq.org/show_bug.cgi?id=40032
Bug ID: 40032 Summary: Starcraft 2 crashes Product: Wine-staging Version: 1.9.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: krafczyk.matthew@gmail.com CC: erich.e.hoover@wine-staging.com, michael@fds-team.de, sebastian@fds-team.de Distribution: ---
StarCraft 2 now crashes with the error message
"An error occurred starting StarCraft II. Please try again. (Error 2: -2147483392)"
This happens for both the 32 bit and 64 bit versions of StartCraft 2 and happens with and without CSMT. Here is a pastebin from launching the 64bit version with CSMT: http://pastebin.com/ntk9kM4u
StarCraft 2 works just fine with plain 1.9.2
https://bugs.winehq.org/show_bug.cgi?id=40032
Matthew Krafczyk krafczyk.matthew@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Starcraft 2 crashes |Starcraft 2 crashes on wine | |1.9.2 staging
https://bugs.winehq.org/show_bug.cgi?id=40032
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #1 from super_man@post.com --- This seems to be the problem.
wine: Call from 0x7b83cf9c to unimplemented function shcore.dll.SetProcessDpiAwareness, aborting
https://bugs.winehq.org/show_bug.cgi?id=40032
--- Comment #2 from Sebastian Lackner sebastian@fds-team.de --- It seems the application now tries to use shcore, a stub dll which was newly added in the last release. Please try to disable shcore in winecfg (go the libraries tab, add "shcore", and then set it to disabled). Does that workaround the issue?
https://bugs.winehq.org/show_bug.cgi?id=40032
--- Comment #3 from super_man@post.com --- The function itself doesnt seem to be very complicated at all.
https://msdn.microsoft.com/en-us/library/windows/desktop/dn302122%28v=vs.85%...
HRESULT WINAPI SetProcessDpiAwareness( _In_ PROCESS_DPI_AWARENESS value );
Parameters
value [in]
The DPI awareness value to set. Possible values are from the PROCESS_DPI_AWARENESSenumeration.
and 3 different return values.
Is very likely that this gets fixed in next release version.
https://bugs.winehq.org/show_bug.cgi?id=40032
--- Comment #4 from Matthew Krafczyk krafczyk.matthew@gmail.com --- Searching for the function 'SetProcessDpiAwareness', I localized the issue to be in the 'api-ms-win-Stub_DLLs' patchset.
Setting shcore to 'disabled' in winecfg allows StarCraft 2 to start normally.
https://bugs.winehq.org/show_bug.cgi?id=40032
--- Comment #5 from Sebastian Lackner sebastian@fds-team.de --- I've committed a stub for the function as additional last patch of the api-ms-win-Stub_DLLs series. Could you please verify if this fixes the issue?
For reference, the commit is here: https://github.com/wine-compholio/wine-staging/commit/f2d347b8977b371f2568f4...
Before testing make sure to reenable shcore.dll in winecfg.
https://bugs.winehq.org/show_bug.cgi?id=40032
--- Comment #6 from Matthew Krafczyk krafczyk.matthew@gmail.com --- StarCraft 2 now launches normally after applying the new patch and re-enabling shcore.
Thanks a lot for your help!
https://bugs.winehq.org/show_bug.cgi?id=40032
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Summary|Starcraft 2 crashes on wine |Starcraft 2 crashes on wine |1.9.2 staging |1.9.2 staging (needs | |shcore.dll.SetProcessDpiAwa | |reness stub implementation | |or shcore disabled in | |winecfg)
--- Comment #7 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Matthew Krafczyk from comment #6)
StarCraft 2 now launches normally after applying the new patch and re-enabling shcore.
Thanks a lot for your help!
Thanks a lot for testing! Marking as fixed.
https://bugs.winehq.org/show_bug.cgi?id=40032
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing Fixed Staging 3.14