https://bugs.winehq.org/show_bug.cgi?id=40047
Bug ID: 40047 Summary: Prison Architect fails to launch -- unimplemented function shcore.dll.GetDpiForMonitor Product: Wine Version: 1.9.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: aapmak@gmail.com Distribution: ---
Prison Architect (all versions) ran almost flawlessly in Wine, up to and including Wine version 1.9.1. However, since the 1.9.2 update, it fails to launch; throwing this exception:
"wine: Call from 0x7b83ba9c to unimplemented function shcore.dll.GetDpiForMonitor, aborting wine: Unimplemented function shcore.dll.GetDpiForMonitor called at address 0x7b83ba9c (thread 0009), starting debugger... Unhandled exception: unimplemented function shcore.dll.GetDpiForMonitor called in 32-bit code (0x7b83ba9c)."
And then obviously a lot of debugger information, stacktrace and all.
Research into shcore.dll showed it being used in Windows 8.1+. However, even with winecfg set to Windows XP, Prison Architect used to run fine. Versions of Prison Architect I have played extensively using Wine no longer work, at all. I did make sure to try a specific version of which I know it have worked (GOG 2.1.0.3).
https://bugs.winehq.org/show_bug.cgi?id=40047
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression CC| |erich.e.hoover@wine-staging | |.com, michael@fds-team.de, | |sebastian@fds-team.de Component|-unknown |-unknown Product|Wine |Wine-staging
--- Comment #1 from Sebastian Lackner sebastian@fds-team.de --- This issue is Wine Staging specific, the stub dll has not been added in the development branch yet. As a workaround you can disable "shcore" in the winecfg libraries tab in the meantime. I'll take care of implementing a stub.
https://bugs.winehq.org/show_bug.cgi?id=40047
--- Comment #2 from Armin Altorffer aapmak@gmail.com --- (In reply to Sebastian Lackner from comment #1)
This issue is Wine Staging specific, the stub dll has not been added in the development branch yet. As a workaround you can disable "shcore" in the winecfg libraries tab in the meantime. I'll take care of implementing a stub.
Then I find it kind of weird that in previous versions of Wine Staging it did not crash like this either. Still, I'll try the workaround, see if it'll launch properly then. Should that provide something worth mentioning, I'll report back.
https://bugs.winehq.org/show_bug.cgi?id=40047
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Armin Altorffer from comment #2)
Then I find it kind of weird that in previous versions of Wine Staging it did not crash like this either. Still, I'll try the workaround, see if it'll launch properly then. Should that provide something worth mentioning, I'll report back.
Shcore.dll was added to Wine Staging in the last release (1.9.2). The application most likely tries to load it at runtime, and uses a different code path now because it assumes to be running under a more modern operating system.
The issue should be fixed with https://github.com/wine-compholio/wine-staging/commit/8d7e0791fefa968d41e3b1... which implements the missing function.
Please retest, if there are more issues (for example, additional unimplemented functions) please open a new bug report for them.
https://bugs.winehq.org/show_bug.cgi?id=40047
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joachim.backes@rhrk.uni-kl. | |de
--- Comment #4 from Sebastian Lackner sebastian@fds-team.de --- *** Bug 40084 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=40047
--- Comment #5 from Armin Altorffer aapmak@gmail.com --- 1.9.4 no longer causes Prison Architect to crash; the patch did indeed fix it, no additional functionality of ShCore.dll seems required for Prison Architect to run smoothly.
https://bugs.winehq.org/show_bug.cgi?id=40047
kutajydam-5795@yopmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from kutajydam-5795@yopmail.com --- As per https://bugs.winehq.org/show_bug.cgi?id=40047#c5, this issue has been resolved.