https://bugs.winehq.org/show_bug.cgi?id=54952
Bug ID: 54952 Summary: Attempting to install an .exe file throws .NET application failed Product: Wine Version: 8.0.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jakubkwadrans15@gmail.com Distribution: ---
Created attachment 74477 --> https://bugs.winehq.org/attachment.cgi?id=74477 The result of executing the file.
Whenever I try to run this .exe file, it throws a .NET error, even though, I have it installed through winetricks.
https://bugs.winehq.org/show_bug.cgi?id=54952
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #1 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
Is this the application? https://landofheroes.eu/?lang=en
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54952
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |normal Keywords| |Installer
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #2 from jakubkwadrans15@gmail.com --- (In reply to Olivier F. R. Dierick from comment #1)
Hello,
Is this the application? https://landofheroes.eu/?lang=en
Regards.
Yes, that is the application.
Would you know what would be the cause of the issue? Because I don't wanna set up a windows VM just to play a single game.
https://bugs.winehq.org/show_bug.cgi?id=54952
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 74479 --> https://bugs.winehq.org/attachment.cgi?id=74479 Hack Hide Virtuallloc2 + Paul Gofman patch for bug 52396
A +relay debug-log shows it's apparently coming from:
00e4:Call KERNEL32.GetProcAddress(174000000,1406cdff0 "VirtualAlloc2") ret=1404f0604 00e4:Ret KERNEL32.GetProcAddress() retval=17400c39c ret=1404f0604 00e4:Call KERNEL32.GetProcAddress(174000000,1406cdfe0 "MapViewOfFile3") ret=1404f061b . . kernelbase.VirtualAlloc2(ffffffffffffffff,00000000,00b1a000,00042000,00000001,00000000,00000000) ret=1404f06ea 00e4:Call ntdll.NtAllocateVirtualMemoryEx(ffffffffffffffff,0029de38,0029de60,00042000,100000001,00000000,00000000) ret=174044c17 00e4:Ret ntdll.NtAllocateVirtualMemoryEx() retval=c000000d ret=174044c17 00e4:Call ntdll.RtlNtStatusToDosError(c000000d) ret=174044c36 00e4:Ret ntdll.RtlNtStatusToDosError() retval=00000057 ret=174044c36 00e4:Ret kernelbase.VirtualAlloc2() retval=00000000 ret=1404f06ea 00e4:Call KERNEL32.GetLastError() ret=1402c8dea 00e4:Ret KERNEL32.GetLastError() retval=00000057 ret=1402c8dea
With stupid hack, just hiding the VirtualAlloc2 export the initial window comes up, there's another errorwindow that i didn't look at, just clicked away, and than it starts downloading stuff.
Important: it also suffers from bug https://bugs.winehq.org/show_bug.cgi?id=52396 so I also included Pauls staging-patch for that in the hack. That should allow you to at least start the application against vanilla wine
Maybe Paul could shed a light on this bug as he seems to have worked quite a bit on these Virtual* api's
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #4 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #3)
Created attachment 74479 [details] Hack Hide Virtuallloc2 + Paul Gofman patch for bug 52396
A +relay debug-log shows it's apparently coming from:
00e4:Call KERNEL32.GetProcAddress(174000000,1406cdff0 "VirtualAlloc2") ret=1404f0604 00e4:Ret KERNEL32.GetProcAddress() retval=17400c39c ret=1404f0604 00e4:Call KERNEL32.GetProcAddress(174000000,1406cdfe0 "MapViewOfFile3") ret=1404f061b . . kernelbase.VirtualAlloc2(ffffffffffffffff,00000000,00b1a000,00042000, 00000001,00000000,00000000) ret=1404f06ea 00e4:Call ntdll.NtAllocateVirtualMemoryEx(ffffffffffffffff,0029de38,0029de60,00042000, 100000001,00000000,00000000) ret=174044c17 00e4:Ret ntdll.NtAllocateVirtualMemoryEx() retval=c000000d ret=174044c17 00e4:Call ntdll.RtlNtStatusToDosError(c000000d) ret=174044c36 00e4:Ret ntdll.RtlNtStatusToDosError() retval=00000057 ret=174044c36 00e4:Ret kernelbase.VirtualAlloc2() retval=00000000 ret=1404f06ea 00e4:Call KERNEL32.GetLastError() ret=1402c8dea 00e4:Ret KERNEL32.GetLastError() retval=00000057 ret=1402c8dea
With stupid hack, just hiding the VirtualAlloc2 export the initial window comes up, there's another errorwindow that i didn't look at, just clicked away, and than it starts downloading stuff.
Important: it also suffers from bug https://bugs.winehq.org/show_bug.cgi?id=52396 so I also included Pauls staging-patch for that in the hack. That should allow you to at least start the application against vanilla wine
Maybe Paul could shed a light on this bug as he seems to have worked quite a bit on these Virtual* api's
Thanks a lot for the reply, however, I'm kind of inexperienced with Linux, as I'm fairly new to it. What do I do with the hack? Just run it in cmd, or are there specifics steps to it? Thanks in advance.
Kind regards.
https://bugs.winehq.org/show_bug.cgi?id=54952
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jakubkwadrans15 from comment #4)
Thanks a lot for the reply, however, I'm kind of inexperienced with Linux, as I'm fairly new to it. What do I do with the hack? Just run it in cmd, or are there specifics steps to it? Thanks in advance.
Kind regards.
Well, you'd have to recompile wine with that patch applied but I guess if you never did that , that will cost you many hours of setting up a build environment.
If you don't mind playing dirty tricks here's very quick way to get it started:
Just replace the string "VirtualAlloc2" in the installer with another string so the installer cannot find the export anymore in wine:
sed 's/VirtualAlloc2/QirtualAlloc2/g' LandOfHeroes_Install.exe
hackedinstaller.exe
Then just do 'wine hackedinstaller.exe' ; Important: use wine-staging otherwise you will run into bug 52396.
Last remark: the error window might come from missing webview2 installation (not 100% sure) but I wasn't able to install this, needs more investigation
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #6 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #5)
(In reply to jakubkwadrans15 from comment #4)
Thanks a lot for the reply, however, I'm kind of inexperienced with Linux, as I'm fairly new to it. What do I do with the hack? Just run it in cmd, or are there specifics steps to it? Thanks in advance.
Kind regards.
Well, you'd have to recompile wine with that patch applied but I guess if you never did that , that will cost you many hours of setting up a build environment.
If you don't mind playing dirty tricks here's very quick way to get it started:
Just replace the string "VirtualAlloc2" in the installer with another string so the installer cannot find the export anymore in wine:
sed 's/VirtualAlloc2/QirtualAlloc2/g' LandOfHeroes_Install.exe
hackedinstaller.exe
Then just do 'wine hackedinstaller.exe' ; Important: use wine-staging otherwise you will run into bug 52396.
Last remark: the error window might come from missing webview2 installation (not 100% sure) but I wasn't able to install this, needs more investigation
After installing wine-staging 8.8, I can run the hacked installer via sudo wine hackedinstaller.exe, however, after doing so, and when I click past the error, I get an alert that I don't have VC++ 2022 installed, and if I want to install it now. No matter if I say yes or no, the application does nothing.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #7 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jakubkwadrans15 from comment #6)
(In reply to Louis Lenders from comment #5)
(In reply to jakubkwadrans15 from comment #4)
After installing wine-staging 8.8, I can run the hacked installer via sudo wine hackedinstaller.exe, however, after doing so, and when I click past the error, I get an alert that I don't have VC++ 2022 installed, and if I want to install it now. No matter if I say yes or no, the application does nothing.
Hi Jakub, First: Never run wine as root (sudo), it's bad and completely unsupported here!!!
To answer your question: if you click yes it should open your browser to the downloadpage, not sure why that doesnt work for you. You might wanna try downloading it manually:
wget https://aka.ms/vs/17/release/vc_redist.x64.exe
wine vc_redist.x64.exe
Last remark: that error window really seems to come from missing webview2 installation. I was able to install webview2 with vanilla wine and then that error windows is gone
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #8 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #7)
(In reply to jakubkwadrans15 from comment #6)
(In reply to Louis Lenders from comment #5)
(In reply to jakubkwadrans15 from comment #4)
After installing wine-staging 8.8, I can run the hacked installer via sudo wine hackedinstaller.exe, however, after doing so, and when I click past the error, I get an alert that I don't have VC++ 2022 installed, and if I want to install it now. No matter if I say yes or no, the application does nothing.
Hi Jakub, First: Never run wine as root (sudo), it's bad and completely unsupported here!!!
To answer your question: if you click yes it should open your browser to the downloadpage, not sure why that doesnt work for you. You might wanna try downloading it manually:
wget https://aka.ms/vs/17/release/vc_redist.x64.exe
wine vc_redist.x64.exe
Last remark: that error window really seems to come from missing webview2 installation. I was able to install webview2 with vanilla wine and then that error windows is gone
Whenever I try to launch it without sudo, it just throws the same error. I'll attach it, but I'm pretty sure it's the same.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #9 from jakubkwadrans15@gmail.com --- Created attachment 74480 --> https://bugs.winehq.org/attachment.cgi?id=74480 Error with wine 8.8(staging)
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #10 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jakubkwadrans15 from comment #9)
Created attachment 74480 [details] Error with wine 8.8(staging)
Well, I don't get that error and it might really come from mixing running wine as root and as regular user(!)
My advise would be to start completely from scratch running wine as a regular user only (so create new prefix and also redownload installer in a different location and start allover again)
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #11 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #10)
(In reply to jakubkwadrans15 from comment #9)
Created attachment 74480 [details] Error with wine 8.8(staging)
Well, I don't get that error and it might really come from mixing running wine as root and as regular user(!)
My advise would be to start completely from scratch running wine as a regular user only (so create new prefix and also redownload installer in a different location and start allover again)
After creating a new prefix, installing .NET, and running the hacked installer, the issue still persists.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #12 from Louis Lenders xerox.xerox2000x@gmail.com --- Well it fails to create a really strange directory z:/home/kone/desktop/LOH/home/kone/.cache/ etcetera, which doesnt really look good. s did you also remove that LOH directory?
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #13 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #12)
Well it fails to create a really strange directory z:/home/kone/desktop/LOH/home/kone/.cache/ etcetera, which doesnt really look good. s did you also remove that LOH directory?
Yes, I created a different directory and ran the file from there.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #14 from Louis Lenders xerox.xerox2000x@gmail.com --- Does this error happen behore the download of the game starts? And anither not, i did not install dotnet, the installer seems to Come with it bundled. As a last thing Thatcher directory /home/kone/.cache/dotnetbundled, does Thatcher already exist?
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #15 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #14)
Does this error happen behore the download of the game starts? And anither not, i did not install dotnet, the installer seems to Come with it bundled. As a last thing Thatcher directory /home/kone/.cache/dotnetbundled, does Thatcher already exist?
The installer doesn't even open, it just throws the error. And I've never heard of "Thatcher" before. I tried creating those directories manually, but it didn't seem to fix the issue.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #16 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jakubkwadrans15 from comment #15)
(In reply to Louis Lenders from comment #14)
The installer doesn't even open, it just throws the error. I tried creating those directories manually, but it didn't seem to fix the issue.
But first you said it asked you to install vcruntime 2022 so it did start, right?. Or did it start only one time? Or was that running as root?
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #17 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #16)
(In reply to jakubkwadrans15 from comment #15)
(In reply to Louis Lenders from comment #14)
The installer doesn't even open, it just throws the error. I tried creating those directories manually, but it didn't seem to fix the issue.
But first you said it asked you to install vcruntime 2022 so it did start, right?. Or did it start only one time? Or was that running as root?
It started only when I was running as root.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #18 from Louis Lenders xerox.xerox2000x@gmail.com --- I'm starting to wonder if we are talking about the same file/installer. Could you check sha1sum? I downloaded the installer today :
sha1sum ./LandOfHeroes_Install.exe
18502c103e49183eb5fb5c50e45e66253a6250b8 ./LandOfHeroes_Install.exe
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #19 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #18)
I'm starting to wonder if we are talking about the same file/installer. Could you check sha1sum? I downloaded the installer today :
sha1sum ./LandOfHeroes_Install.exe
18502c103e49183eb5fb5c50e45e66253a6250b8 ./LandOfHeroes_Install.exe
It appears to be the same
18502c103e49183eb5fb5c50e45e66253a6250b8 ./LandOfHeroes_Install.exe
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #20 from Louis Lenders xerox.xerox2000x@gmail.com --- Ok, I only now discovered that even your first run from comment 1 is different from the bug I ran into. For me the original installer failed with
0128:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0128:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001,0x00000000,000000000029FCA0,0000000000000000): stub 0128:err:eventlog:ReportEventW L"Description: A .NET application failed.\n" 0128:err:eventlog:ReportEventW L"Application: LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Path: Z:\home\louis\Downloads\LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Message: Failed to create CoreCLR, HRESULT: 0x80004005\n"
So there must be something wrong with your setup, maybe directories with wrong permissions or I really wouldn't know. If you can reproduce the above crash with the original installer then we are talking about the same thing.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #21 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #20)
Ok, I only now discovered that even your first run from comment 1 is different from the bug I ran into. For me the original installer failed with
0128:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0128:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001, 0x00000000,000000000029FCA0,0000000000000000): stub 0128:err:eventlog:ReportEventW L"Description: A .NET application failed.\n" 0128:err:eventlog:ReportEventW L"Application: LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Path: Z:\home\louis\Downloads\LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Message: Failed to create CoreCLR, HRESULT: 0x80004005\n"
So there must be something wrong with your setup, maybe directories with wrong permissions or I really wouldn't know. If you can reproduce the above crash with the original installer then we are talking about the same thing.
I've tried running it in another directory, but the error message still says the same thing.
Failed to create directory [Z:\home\kone\Downloads/home/kone/.cache/dotnet_bund le_extract] for extracting bundled files. 0130:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0130:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001,0x00000000,000000000029FCA0,0000000000000000): stub 0130:err:eventlog:ReportEventW L"Description: A .NET application failed.\n" 0130:err:eventlog:ReportEventW L"Application: LandOfHeroes_Install.exe\n" 0130:err:eventlog:ReportEventW L"Path: Z:\home\kone\Downloads\LandOfHeroes_Install.exe\n" 0130:err:eventlog:ReportEventW L"Message: Failure processing application bundle.\n" 0130:err:eventlog:ReportEventW L"Failed to create directory [Z:\home\kone\Downloads\/home/kone/.cache/dotnet_bundle_extract\] for extracting bundled files.\n" 0130:err:eventlog:ReportEventW L"\n" 0130:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
I'm at a loss here, no idea what could be causing this issue.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #22 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to jakubkwadrans15 from comment #21)
(In reply to Louis Lenders from comment #20)
I'm at a loss here, no idea what could be causing this issue.
I'm at a loss too here. Maybe someone else could try reproduce your crash, or if you still want to try things, create another user account and login as that user and try run the program as you then have a clean setup but also could be more wasted time :(
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #23 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #22)
(In reply to jakubkwadrans15 from comment #21)
(In reply to Louis Lenders from comment #20)
I'm at a loss here, no idea what could be causing this issue.
I'm at a loss too here. Maybe someone else could try reproduce your crash, or if you still want to try things, create another user account and login as that user and try run the program as you then have a clean setup but also could be more wasted time :(
I'll try I guess, but if this doesn't work, I guess I'll play on a windows VM for a while until maybe someone finds a fix. Thanks a lot for trying tho, have a great rest of your day/night/evening :)
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #24 from jakubkwadrans15@gmail.com --- (In reply to Louis Lenders from comment #22)
(In reply to jakubkwadrans15 from comment #21)
(In reply to Louis Lenders from comment #20)
I'm at a loss here, no idea what could be causing this issue.
I'm at a loss too here. Maybe someone else could try reproduce your crash, or if you still want to try things, create another user account and login as that user and try run the program as you then have a clean setup but also could be more wasted time :(
After creating a new user, clean installing wine, and trying again, this hasn't fixed it. I'll be setting up a windows VM in a bit then I guess.
https://bugs.winehq.org/show_bug.cgi?id=54952
minrosa9 tw0ali@tutanota.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tw0ali@tutanota.com
--- Comment #25 from minrosa9 tw0ali@tutanota.com --- (In reply to Louis Lenders from comment #20)
Ok, I only now discovered that even your first run from comment 1 is different from the bug I ran into. For me the original installer failed with
0128:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 0128:fixme:advapi:ReportEventW (00000000CAFE4242,0x0001,0x0000,0x000003ff,0000000000000000,0x0001, 0x00000000,000000000029FCA0,0000000000000000): stub 0128:err:eventlog:ReportEventW L"Description: A .NET application failed.\n" 0128:err:eventlog:ReportEventW L"Application: LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Path: Z:\home\louis\Downloads\LandOfHeroes_Install.exe\n" 0128:err:eventlog:ReportEventW L"Message: Failed to create CoreCLR, HRESULT: 0x80004005\n"
So there must be something wrong with your setup, maybe directories with wrong permissions or I really wouldn't know. If you can reproduce the above crash with the original installer then we are talking about the same thing.
I am having the exact same problem with another tool called PKHeX which needs .NET Desktop Runtime 7. No matter where I put the executable, it will throw the same error. And the strange thing is that this started to happen randomly, as yesterday it was working fine.
00d8:err:eventlog:ReportEventW L"Description: A .NET application failed.\n" 00d8:err:eventlog:ReportEventW L"Application: PKHeX.exe\n" 00d8:err:eventlog:ReportEventW L"Path: Z:\home\lorenzo\Programs\Pok\00e9mon\Tools\PKHeX\PKHeX.exe\n" 00d8:err:eventlog:ReportEventW L"Message: Failure processing application bundle.\n" 00d8:err:eventlog:ReportEventW L"Failed to create directory [Z:\home\lorenzo\Programs\Pok\00e9mon\Tools\PKHeX\/home/lorenzo/.cache/dotnet_bundle_extract\] for extracting bundled files.\n" 00d8:err:eventlog:ReportEventW L"\n" 00d8:fixme:advapi:DeregisterEventSource (00000000CAFE4242) stub
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #26 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
I must say that it looks like a wrong TEMP directory path construction.
The failing path is a mix of a windows-style ('\' separated) root directory path concatenated to what looks like a linux-style ('/' separated) XDG CACHE directory. Both paths are absolute.
I could create a valid 2-level directory hierarchy manually with 'mkdir -p this/that'.
I wonder if '\/' is an allowed path separator for the function used?
Does a WINEDEBUG=+relay log show how that path is constructed?
Regards.
https://bugs.winehq.org/show_bug.cgi?id=54952
--- Comment #27 from minrosa9 tw0ali@tutanota.com --- (In reply to Olivier F. R. Dierick from comment #26)
Hello,
I must say that it looks like a wrong TEMP directory path construction.
The failing path is a mix of a windows-style ('\' separated) root directory path concatenated to what looks like a linux-style ('/' separated) XDG CACHE directory. Both paths are absolute.
I could create a valid 2-level directory hierarchy manually with 'mkdir -p this/that'.
I wonder if '\/' is an allowed path separator for the function used?
Does a WINEDEBUG=+relay log show how that path is constructed?
Regards.
Hello Olivier, thanks for your reply. As I'm not really familiar to where I should look I've uploaded the complete log file with WINEDEBUG=+relay (https://0x0.st/HLmT.log) since it's too big to attach here.
https://bugs.winehq.org/show_bug.cgi?id=54952
jacobbrett+winehqbugs@jacobbrett.id.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacobbrett+winehqbugs@jacob | |brett.id.au