https://bugs.winehq.org/show_bug.cgi?id=56122
Bug ID: 56122 Summary: LANCommander won't start, prints "error code 0x8007046C" (ERROR_MAPPED_ALIGNMENT) Product: Wine Version: 8.21 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: alexhenrie24@gmail.com Distribution: ---
Created attachment 75792 --> https://bugs.winehq.org/attachment.cgi?id=75792 Terminal output
On start, LANCommander.exe prints:
Failed to load System.Private.CoreLib.dll (error code 0x8007046C) Path: Z:\home\alex\Downloads\LANCommander-v0.4.0\System.Private.CoreLib.dll Error message: Failed to create CoreCLR, HRESULT: 0x8007046C
0x8007046C is HRESULT_FROM_WIN32(ERROR_MAPPED_ALIGNMENT). I've never seen that one before.
`winetricks dotnet48` does not help.
$ sha256sum LANCommander-v0.4.0.zip 00d9ca25c982c15a1934055805cba0a89be0400237d3273457ae523a5bba3359
https://bugs.winehq.org/show_bug.cgi?id=56122
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download, source URL| |https://github.com/LANComma | |nder/LANCommander/releases/ | |download/v0.4.0/LANCommande | |r-v0.4.0.zip
https://bugs.winehq.org/show_bug.cgi?id=56122
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru --- Created attachment 75835 --> https://bugs.winehq.org/attachment.cgi?id=75835 hack
Application creates a placeholder using VirtualAlloc2/VirtualFree/MapViewOfFile3 and probably by mistake passes not 64k aligned addresses and offsets to MapViewOfFile3. Probably Windows ignores address and offset in that case since a placeholder must exactly match previous allocation. Attached hack makes the application run.
P.S. Source code at https://github.com/LANCommander/LANCommander doesn't have any reference to VirtualAlloc2/MapViewOfFile3, it could use some external wrapper.
https://bugs.winehq.org/show_bug.cgi?id=56122
Felix jan.felix.muenchhalfen@rwth-aachen.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jan.felix.muenchhalfen@rwth | |-aachen.de
--- Comment #2 from Felix jan.felix.muenchhalfen@rwth-aachen.de --- Pull req here. Marking this as resolved.
https://gitlab.winehq.org/wine/wine/-/merge_requests/4822
https://bugs.winehq.org/show_bug.cgi?id=56122
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Fixed by SHA1| |2f88259a441208b668429a4ae0b | |610712783be03 Resolution|--- |FIXED
--- Comment #3 from Alex Henrie alexhenrie24@gmail.com --- Fixed by https://gitlab.winehq.org/wine/wine/-/commit/2f88259a441208b668429a4ae0b6107... - Thanks Felix!
https://bugs.winehq.org/show_bug.cgi?id=56122
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.2.
https://bugs.winehq.org/show_bug.cgi?id=56122
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xeno@x-s.com.pl
--- Comment #5 from Andrew Nguyen arethusa26@gmail.com --- *** Bug 56358 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=56122
--- Comment #6 from Andrew Nguyen arethusa26@gmail.com --- *** Bug 56161 has been marked as a duplicate of this bug. ***