[Bug 49634] VersionCheckerPlus (.NET 4.0 app) crashes with 'NorthwoodLib.OperatingSystem threw an exception. Could not load type System.Runtime.InteropServices.OSPlatform' since Wine 5.12

WineHQ Bugzilla wine-bugs at winehq.org
Fri Feb 4 21:07:05 CST 2022


https://bugs.winehq.org/show_bug.cgi?id=49634

nyanpasu64 at tuta.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nyanpasu64 at tuta.io

--- Comment #6 from nyanpasu64 at tuta.io ---
This bug is not fixed. On Wine 7.0 with .NET 4.7.2 (I think) installed, I get
an identical error:

Unhandled Exception: 0164:fixme:ver:GetCurrentPackageId (000000000011A440
0000000000000000): stub
Unhandled Exception: System.TypeInitializationException: The type initializer
for 'NorthwoodLib.OperatingSystem' threw an exception. --->
System.TypeLoadException: Could not load type
'System.Runtime.InteropServices.OSPlatform' from assembly 'mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at NorthwoodLib.OperatingSystem..cctor()
   --- End of inner exception stack trace ---
   at VersionTester.Program.Main(String[] args)
wine: Unhandled exception 0xe0434352 in thread 164 at address 000000007B0123AE
(thread 0164), starting debugger...
...
Backtrace:
=>0 0x000000007b0123ae AccessCheckByTypeAndAuditAlarmW+0x113ae() in kernelbase
(0x000000000011f000)
  1 0x0000000000fc043a EntryPoint+0x19a8da() in clr (0x000000000011f000)
  2 0x0000000000ff99db EntryPoint+0x1d3e7b() in clr (0x000000000011f000)
  3 0x0000000000ff9a34 EntryPoint+0x1d3ed4() in clr (0x000000000011f000)
  4 0x0000000001199675 EntryPoint+0x373b15() in clr (0x000000000011f000)
  5 0x0000000000fa0066 EntryPoint+0x17a506() in clr (0x000000000011f000)
0x000000007b0123ae kernelbase+0x123ae: nop

AccessCheckByTypeAndAuditAlarmW+0x113ae looks like a large enough offset that
the actual code causing the crash is unrelated to
AccessCheckByTypeAndAuditAlarmW.

----

This error message is also causing msbuild to crash on startup, also at
AccessCheckByTypeAndAuditAlarmW+0x113ae:

C:\Program Files (x86)\Microsoft Visual Studio\Installer>msbuild
MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
System.TypeLoadException: Could not load type
'System.Runtime.InteropServices.OSPlatform' from assembly 'mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
   at Microsoft.Build.Utilities.Traits.get_Instance()
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)

Unhandled Exception: System.TypeLoadException: Could not load type
'System.Runtime.InteropServices.OSPlatform' from assembly 'mscorlib,
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at Microsoft.Build.Shared.BuildEnvironmentHelper.get_Instance()
   at Microsoft.Build.Utilities.Traits.get_Instance()
   at Microsoft.Build.Shared.Debugging.DebugUtils..cctor()
Unhandled exception: 0xe0434352 in 64-bit code (0x000000007b0123ae).
...
Backtrace:
=>0 0x000000007b0123ae AccessCheckByTypeAndAuditAlarmW+0x113ae() in kernelbase
(0x000000000041ef00)
  1 0x0000000000f12105 EntryPoint+0x20665() in clr (0x000000000041ef00)
  2 0x000000000105d796 EntryPoint+0x16bcf6() in clr (0x000000000041ef00)
0x000000007b0123ae kernelbase+0x123ae: nop

A bug report is at https://github.com/paleozogt/MSVCDocker/issues/13, but it
doesn't mention the stack trace.

----

Sidenote: what's the recommended .NET version for running managed apps on Wine?
Wine Mono, .NET 4.{6,7,8}, or .NET Core?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list