https://bugs.winehq.org/show_bug.cgi?id=45897
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Summary|Magic The Gathering Arena |Magic The Gathering Arena |Launcher crashes on start |Launcher (.NET 4.5 app) | |crashes on start (broken | |WINEPREFIX) Version|unspecified |3.10 CC| |focht@gmx.net Resolution|--- |INVALID
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
vendor system requirements:
https://magic.wizards.com/de/content/download
--- quote --- Minimum
Operating System Windows 7 32-bit ... Other .NET Framework 4.5.1 --- quote ---
https://docs.microsoft.com/en-us/dotnet/api/system.net.http?view=netframewor...
You most likely broke your WINEPREFIX while "experimenting".
Always start with a new prefix, don't use '--force' on existing winetricks installs unless you know the implications and can handle it (even if they sometimes seem to work).
Works fine here with Wine 3.11 for Workgroups, .NET Framework 4.5.2 ('winetricks -q dotnet452') in clean 32-bit WINEPREFIX with Winver set to 'Windows 7':
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Wizards of the Coast/MTGA
$ WINEDEBUG=+seh,+loaddll,+process,+relay wine ./MtgaLauncher.exe >>log.txt 2>&1 ... 0009:fixme:shell:URL_ParseUrl failed to parse L"System.Net.Http" ... 0009:Call KERNEL32.CreateFileW(00188bb0 L"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll",80000000,00000001,00000000,00000003,00000080,00000000) ret=006ae5b2 ... 0009:Ret KERNEL32.CreateFileW() retval=00000134 ret=006ae5b2 ... --- snip ---
Simulating a broken prefix by manually moving the .NET assembly in GAC out of the way:
--- snip --- $ find .wine/drive_c/ -iname System.Net.Http.dll .wine/drive_c/windows/Microsoft.NET/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll .wine/drive_c/windows/Microsoft.NET/Framework/v4.0.30319/System.Net.Http.dll
$ mv .wine/drive_c/windows/Microsoft.NET/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll .wine/drive_c/windows/Microsoft.NET/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll.bak --- snip ---
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Wizards of the Coast/MTGA
$ wine ./MtgaLauncher.exe ... 0009:err:eventlog:ReportEventW L"Application: MtgaLauncher.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.IO.FileNotFoundException\nStack:\n at MtgaLauncher.Program.CheckUpdate()\n at MtgaLauncher.Program.Main(System.String[])\n" 0009:fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: 0009:trace:loaddll:load_native_dll Loaded L"C:\windows\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll" at 0x5e0d0000: native 0009:fixme:ver:GetCurrentPackageId (0x33b8a0 (nil)): stub System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File not found. at MtgaLauncher.Program.CheckUpdate() at MtgaLauncher.Program.Main(String[] args) ... --- snip ---
Resolving 'INVALID' here.
Regards