https://bugs.winehq.org/show_bug.cgi?id=51017
Bug ID: 51017 Summary: Microsoft PowerToys installer crashes Product: Wine Version: 6.6 Hardware: x86-64 URL: https://web.archive.org/web/20210403201453/https://git hub.com/microsoft/PowerToys/releases/download/v0.35.0/ PowerToysSetup-0.35.0-x64.exe OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: the.ideals@gmail.com Distribution: ---
Created attachment 69864 --> https://bugs.winehq.org/attachment.cgi?id=69864 log
https://github.com/microsoft/PowerToys/
.NET Core 3.1.13 is used with Release v0.35.0.
0114:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000136FE10 0110:fixme:combase:RoGetActivationFactory (L"", {44a9796f-723e-4fdf-a218-033e75b0c084}, 000000000011E720): semi-stub wine: Unhandled page fault on read access to 0000001600000001 at address 000000007B0524B1 (thread 0110), starting debugger... Unhandled exception: page fault on read access to 0x1600000001 in 64-bit code (0x000000007b0524b1).
https://bugs.winehq.org/show_bug.cgi?id=51017
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Keywords| |download Summary|Microsoft PowerToys |Microsoft PowerToys |installer crashes |installer crash inside | |RegOpenKeyExW CC| |xerox.xerox2000x@gmail.com Status|UNCONFIRMED |NEW
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- Hi,
Confirming. This looks to be same bug as I opened a few months ago (https://bugs.winehq.org/show_bug.cgi?id=49858)
I will resolve my bug as duplicate though, as this has a better download/way to install
Somehow it looks as if the stringpointer passed to RoGetActivationFactory is invalid and causes a crash. I don`t know where that invalid string comes from
I put a hack like at the end of this writing in roapi.c, and that allowed me to get it installed, but it doesn't start either.
A relay log showed it was trying to load Windows.Data.dll and Windows.dll, i don`t know what those dlls are, they are not provided by wine in any case.
Hack to get it installed:
diff --git a/dlls/combase/roapi.c b/dlls/combase/roapi.c index 53da979d681..6f3c7fa40d4 100644 --- a/dlls/combase/roapi.c +++ b/dlls/combase/roapi.c @@ -45,7 +45,8 @@ static HRESULT get_library_for_classid(const WCHAR *classid, WCHAR **out) WCHAR *buf = NULL;
*out = NULL; - + FIXME(" %s \n", debugstr_w(classid)); + if (IsBadStringPtrW(classid,MAX_PATH)) return E_INVALIDARG; /* load class registry key */ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\Microsoft\WindowsRuntime\ActivatableClassId", 0, KEY_READ, &hkey_root))
https://bugs.winehq.org/show_bug.cgi?id=51017
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 49858 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=51017
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Microsoft PowerToys |Multiple programs |installer crash inside |(Microsoft PowerToys, MS |RegOpenKeyExW |Windows terminal) crash | |inside RegOpenKeyExW
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Adjust title
Windows terminal: https://github.com/microsoft/terminal/releases/download/v1.2.2381.0/Microsof...
https://bugs.winehq.org/show_bug.cgi?id=51017
Bernhard Kölbl besentv@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |besentv@gmail.com
--- Comment #4 from Bernhard Kölbl besentv@gmail.com --- Had a similar issue when trying to use WinRT libraries. Some debugging showed that the HSTRING data structure is wrongfully implemented in wine. I'm working on a fix for this.
So far this is what I get with my WIP code:
./wine ~/Downloads/PowerToysSetup-0.35.0-x64.exe 0104:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 0000000000AFFE10 0100:fixme:combase:RoGetActivationFactory (L"Windows.Foundation.Uri", {44a9796f-723e-4fdf-a218-033e75b0c084}, 000000000011E720): semi-stub 0100:err:combase:RoGetActivationFactory Failed to find library for L"Windows.Foundation.Uri" 0100:fixme:combase:RoOriginateLanguageException (80040154 L"" 0000000000000000) stub
https://bugs.winehq.org/show_bug.cgi?id=51017
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Bernhard Kölbl from comment #4)
I'm working on > a fix for this.
Cool!, if patch is finished I`d be happy to do some testing with it.
https://bugs.winehq.org/show_bug.cgi?id=51017
--- Comment #6 from Bernhard Kölbl besentv@gmail.com --- There it is: https://www.winehq.org/pipermail/wine-devel/2021-December/203715.html
https://bugs.winehq.org/show_bug.cgi?id=51017
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ba9737ba827bd25c4e8d7d8dd1c | |15440c90dcddf Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #7 from Gijs Vermeulen gijsvrm@gmail.com --- Both applications seem to crash/fail on other missing pieces now. So it seems this one is FIXED. Thanks Bernhard for the patches.
https://bugs.winehq.org/show_bug.cgi?id=51017
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 7.5.