https://bugs.winehq.org/show_bug.cgi?id=48611
Bug ID: 48611 Summary: Cairo Shell v0.3.x (.NET 4.7 app) crashes due to missing 'HKCU\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell' registry sub-key Product: Wine Version: 5.1 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: registry Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says. Some user tried to install it:
https://old.reddit.com/r/winehq/comments/e7f3rz/cairo_requires_microsoft_net...
So I tried as well. He likely suffers from broken .NET install/WINEPREFIX (not subject to this report).
Project site: https://cairoshell.com/
https://github.com/cairoshell/cairoshell/releases/tag/v0.3.6842
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files (x86)/Cairo Shell
$ WINEDEBUG=+seh,+relay wine ./CairoDesktop.exe >>log.txt 2>&1 ... 002c:Call advapi32.RegOpenKeyExW(80000001,016839bc L"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon",00000000,00020019,0032f428) ret=79b98089 002c:Call ntdll.RtlInitUnicodeString(0032f35c,016839bc L"SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon") ret=7b031b59 002c:Ret ntdll.RtlInitUnicodeString() retval=0000006c ret=7b031b59 002c:Call ntdll.NtOpenKeyEx(0032f428,00020019,0032f364,00000000) ret=7b031b7b 002c:Ret ntdll.NtOpenKeyEx() retval=c0000034 ret=7b031b7b 002c:Call ntdll.RtlNtStatusToDosError(c0000034) ret=7b031b82 002c:Ret ntdll.RtlNtStatusToDosError() retval=00000002 ret=7b031b82 002c:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=79b98089 002c:trace:seh:raise_exception code=c0000005 flags=0 addr=0x3d86e29 ip=03d86e29 tid=002c 002c:trace:seh:raise_exception info[0]=00000000 002c:trace:seh:raise_exception info[1]=00000000 002c:trace:seh:raise_exception eax=00000000 ebx=0032f544 ecx=00000000 edx=016838e0 esi=00000000 edi=0032f4c0 002c:trace:seh:raise_exception ebp=0032f490 esp=0032f48c cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00210246 002c:trace:seh:call_vectored_handlers calling handler at 0xbb4ec0 code=c0000005 flags=0 002c:Call KERNEL32.GetLastError() ret=00bb4eee 002c:Ret KERNEL32.GetLastError() retval=00000000 ret=00bb4eee 002c:trace:seh:call_vectored_handlers handler at 0xbb4ec0 returned 0 002c:trace:seh:call_stack_handlers calling handler at 0xbb7020 code=c0000005 flags=0 ... --- snip ---
Managed backtrace:
--- snip --- 0009:err:eventlog:ReportEventW L"Application: CairoDesktop.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.NullReferenceException\n at CairoDesktop.Interop.Shell.get_IsCairoUserShell()\n at CairoDesktop.Startup.Main(System.String[])\n\n" 0009:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: 0009:fixme:ver:GetCurrentPackageId (0x32cad0 (nil)): stub System.NullReferenceException: Object reference not set to an instance of an object. at CairoDesktop.Interop.Shell.get_IsCairoUserShell() at CairoDesktop.Startup.Main(String[] args) wine: Unhandled page fault on read access to 00000000 at address 03D86E29 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x03d86e29). --- snip ---
It can be worked around by adding the sub-key/data:
--- snip --- $ wine reg.exe add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\WinLogon" /v Shell /t REG_SZ /d "explorer.exe" /f --- snip ---
The app searches 'WinLogon' key first under HKCU. If not present, it will crash right away. If 'WinLogon' is present but no 'Shell' sub-key it will search HKLM.
$ sha1sum CairoSetup_32bit.exe ba4098fce86a2d63a9107c0c18b2f68eb9417039 CairoSetup_32bit.exe
$ du -sh CairoSetup_32bit.exe 2.2M CairoSetup_32bit.exe
$ wine --version wine-5.1-391-g7332de64a5
Regards
https://bugs.winehq.org/show_bug.cgi?id=48611
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |https://github.com/cairoshe | |ll/cairoshell/releases/down | |load/v0.3.6842/CairoSetup_3 | |2bit.exe
https://bugs.winehq.org/show_bug.cgi?id=48611
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
continuation is bug 31890 ("Multiple applications need IAudioEndpointVolume::GetMasterVolumeLevelScalar method implementation (Cisco IP Communicator, Cairo Shell v0.3.x)").
I'm not adding explicit dependency since bug 31890 is a collector = not all apps listed there require this bug as prerequisite.
Regards
https://bugs.winehq.org/show_bug.cgi?id=48611
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=48611
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED CC| |alexhenrie24@gmail.com Fixed by SHA1| |27d1ef75c4fd5d47b5566e365ca | |f0d3e5abc70ef
--- Comment #2 from Alex Henrie alexhenrie24@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commitdiff/27d1ef75c4fd5d47b5566e365c...
https://bugs.winehq.org/show_bug.cgi?id=48611
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.6.
https://bugs.winehq.org/show_bug.cgi?id=48611
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x
https://bugs.winehq.org/show_bug.cgi?id=48611
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 5.0.x milestone from bug fixes included in 5.0.2.
https://bugs.winehq.org/show_bug.cgi?id=48611
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://github.com/cairoshe |https://web.archive.org/web |ll/cairoshell/releases/down |/20210121152823/https://git |load/v0.3.6842/CairoSetup_3 |hub.com/cairoshell/cairoshe |2bit.exe |ll/releases/download/v0.3.6 | |842/CairoSetup_32bit.exe