https://bugs.winehq.org/show_bug.cgi?id=56291
Bug ID: 56291 Summary: Kodu game lab crashes:Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. Product: Wine Version: 9.1 Hardware: x86-64 URL: https://kodugamelab.blob.core.windows.net/blob/Builds/ KoduSetup_1.6.18.0.exe OS: Linux Status: NEW Keywords: dotnet, download Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
Created attachment 76010 --> https://bugs.winehq.org/attachment.cgi?id=76010 patch for 1st missing prop
A user reported crash on the forum: https://forum.winehq.org/viewtopic.php?t=38495
Steps to reproduce: install dotnet48 with winetricks and install https://kodugamelab.blob.core.windows.net/blob/Builds/KoduSetup_1.6.18.0.exe and https://kodugamelab.blob.core.windows.net/blob/xnafx40_redist.msi
It seemingly crashes besause of two missing properties in Win32_PnPEntity:
0024:trace:wbemprox:wbem_services_ExecQuery 0418C7C8, L"WQL", L"SELECT * FROM Win32_PnPEntity", 0x10, 00000000, 0012F1D8 . 0024:trace:wbemprox:class_object_Get 0418D000, L"Caption", 0, 0012F224, 0255B7C4, 0255B7C8 . 0024:err:eventlog:ReportEventW L"Exception Info: System.NullReferenceException\n" . Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Boku.Program2.Main(String[] args)
After adding previous property there is:
0024:trace:wbemprox:wbem_services_ExecQuery 041923E0, L"WQL", L"Select * From Win32_PnPEntity where ClassGuid = '{4d36e967-e325-11ce-bfc1-08002be10318}'", 0x10, 00000000, 0012F1D8 . 0024:err:eventlog:ReportEventW L"Description: The process was terminated due to an unhandled exception.\n" . Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Boku.Program2.Main(String[] args)
After adding something for that the program starts but crashes again, because it cannot find XnaNative.dll. That seems like another bug, don't know what goes wrong there. After putting xnanative.dll from ./drive_c/Program Files (x86)/Common Files/Microsoft Shared/XNA/Framework/v4.0/XnaNative.dll into a path (like in syswow64) the program starts and seems to work fine.
Attached patch for the 1st missing prop