Deweh / CyberCAT-SimpleGUI

A simplified offshoot of SirBitesalot's CyberCAT.
MIT License
233 stars 45 forks source link

I Got an Error on v0.10a-r1 #77

Closed GaneJ closed 3 years ago

GaneJ commented 3 years ago

Faulting application name: CP2077SaveEditor.exe, version: 1.0.0.0, time stamp: 0x609308e7 Faulting module name: KERNELBASE.dll, version: 6.1.7601.24545, time stamp: 0x5e0eb6bd Exception code: 0xe0434352 Fault offset: 0x000000000000b87d Faulting process id: 0x1090 Faulting application start time: 0x01d7abba3d57a473 Faulting application path: G:\Documents\Cyberpunk 2077\CyberCAT-SimpleGUI\CP2077SaveEditor.exe Faulting module path: C:\Windows\system32\KERNELBASE.dll Report Id: 7dd0ad86-17ad-11ec-9bbe-74d02b7ef100

Application: CP2077SaveEditor.exe CoreCLR Version: 5.0.220.61120 .NET Version: 5.0.2 Description: The process was terminated due to an unhandled exception. Exception Info: System.NotSupportedException: Cannot read resources that depend on serialization. at System.Resources.Extensions.DeserializingResourceReader.FindType(Int32 typeIndex) at System.Resources.Extensions.DeserializingResourceReader.DeserializeObject(Int32 typeIndex) at System.Resources.Extensions.DeserializingResourceReader._LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.Extensions.DeserializingResourceReader.LoadObjectV2(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.Extensions.DeserializingResourceReader.LoadObject(Int32 pos, ResourceTypeCode& typeCode) at System.Resources.Extensions.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase, Boolean isString) at System.Resources.Extensions.RuntimeResourceSet.GetObject(String key, Boolean ignoreCase) at System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) at System.Resources.ResourceManager.GetObject(String name) at CP2077SaveEditor.Form1.InitializeComponent() at CP2077SaveEditor.Form1..ctor() at CP2077SaveEditor.Program.Main()

Using .NET Framework 5.0.2 on Windows 7. Please fix.

Deweh commented 3 years ago

According to dotnet/winforms#4556 this occurs due to mismatched assembly versions. However, if that is the case, I'm not sure why it wouldn't occur on every system. Are you using the self-contained build of v0.10a-r1, or the one that requires .NET to be pre-installed?

If the latter, please try the self-contained build instead and let me know if the issue still occurs.

GaneJ commented 3 years ago

I used "the one that requires .NET to be pre-installed". With "self-contained build of v0.10a-r1", it works. No error.

File version clrjit.dll, coreclr.dll and mscordaccore.dll in your "self-contained build of v0.10a-r1" zip is 5.0.721.25508, mine 5.0.220.61120. Weird. Did you just use .NET v5.0.7? I replaced it with 5.0.220.61120, I got this error: Application: CP2077SaveEditor.exe CoreCLR Version: 5.0.220.61120 .NET Version: 5.0.2 Description: The process was terminated due to an unhandled exception. Exception Info: System.IO.FileNotFoundException: The system cannot find the file specified. (0x80070002) at System.Reflection.RuntimeModule.GetFullyQualifiedName() at System.Reflection.RuntimeModule.get_Name() at System.Windows.Forms.Application.EnableVisualStyles() at CP2077SaveEditor.Program.Main()

I replaced clrjit.dll, coreclr.dll and mscordaccore.dll in your zip with files from windowsdesktop-runtime-5.0.7-win-x64.exe, it works. No error. Did this mean you used .NET v5.0.7?

I replaced clrjit.dll, coreclr.dll and mscordaccore.dll in your zip with files from windowsdesktop-runtime-5.0.10-win-x64.exe, it works. No error. With .NET v5.0.10 running ok.

I used your "the one that requires .NET to be pre-installed" with .NET v5.0.10 installed in my system, it works. No error. Finally, it work with .NET 5.0 latest version. For now its v5.0.10.

Thank you @Deweh.

PS: You should change .NET 5 link from "https://dotnet.microsoft.com/download/dotnet/thank-you/runtime-desktop-5.0.2-windows-x64-installer" into "https://dotnet.microsoft.com/download/dotnet/5.0".

Deweh commented 3 years ago

Ah, that explains it. I don't keep track of the exact .NET version (it's just set as .NET 5.0 in the project settings), so I figured it was still using 5.0.2, but I guess the SDK on my machine got updated at some point.

I'll change that link on the release page, thanks for letting me know!