LavaGang / MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
https://discord.gg/2Wn3N2P
Apache License 2.0
2.38k stars 472 forks source link

[Bug]: Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException ---> System.IO.EndOfStreamException #474

Closed XenonAesir closed 3 days ago

XenonAesir commented 1 year ago

All of the following criteria must be met

All of the following are optional to answer

Describe the issue.

[11:39:39.220] ------------------------------ [11:39:39.221] MelonLoader v0.5.7 Open-Beta [11:39:39.222] OS: Windows 10 [11:39:39.222] Hash Code: 49999848531024954985654485098975250521005157544948501005510199495356 [11:39:39.223] ------------------------------ [11:39:39.224] Game Type: Il2Cpp [11:39:39.225] Game Arch: x64 [11:39:39.225] ------------------------------ [11:39:39.226] Core::BasePath = F:\CCACG\2023\AVStudio [11:39:39.228] Game::BasePath = F:\CCACG\2023\AVStudio [11:39:39.228] Game::DataPath = F:\CCACG\2023\AVStudio\MyAVstudio_Data [11:39:39.229] Game::ApplicationPath = F:\CCACG\2023\AVStudio\MyAVstudio.exe

[11:39:39.883] ------------------------------ [11:39:39.892] Game Name: MyAVstudio [11:39:39.892] Game Developer: DefaultCompany [11:39:39.897] Unity Version: 2019.3.7f1 [11:39:39.897] Game Version: 1.0 [11:39:39.897] ------------------------------

[11:39:40.309] Preferences Loaded! [11:39:40.319] [Il2CppUnityTls] Patching mono_unity_get_unitytls_interface... [11:39:40.321] [Il2CppUnityTls] Patching il2cpp_unity_install_unitytls_interface... [11:39:40.592] [Il2CppUnityTls] Calling Il2CppInstallUnityTlsInterface...

[11:39:40.673] Loading Plugins from 'F:\CCACG\2023\AVStudio\Plugins'... [11:39:40.676] 0 Plugins loaded.

[11:39:42.508] [MelonStartScreen] Initializing... [11:39:42.553] [MelonStartScreen] Using Start Screen Theme: "Default" [11:39:44.090] Loading Il2CppAssemblyGenerator... [11:39:44.153] [Il2CppAssemblyGenerator] Contacting RemoteAPI... [11:39:45.216] [Il2CppAssemblyGenerator] Game Not Found on RemoteAPI Host (https://api.melonloader.com/api/v1/game/myavstudio) [11:39:45.217] [Il2CppAssemblyGenerator] RemoteAPI.DumperVersion = null [11:39:45.219] [Il2CppAssemblyGenerator] RemoteAPI.UnhollowerVersion = null [11:39:45.220] [Il2CppAssemblyGenerator] RemoteAPI.ObfuscationRegex = null [11:39:45.221] [Il2CppAssemblyGenerator] RemoteAPI.MappingURL = null [11:39:45.222] [Il2CppAssemblyGenerator] RemoteAPI.MappingFileSHA512 = null [11:39:45.225] [Il2CppAssemblyGenerator] Using Dumper Version: 2022.1.0-pre-release.8 [11:39:45.226] [Il2CppAssemblyGenerator] Using Il2CppAssemblyUnhollower Version = 0.4.18.0 [11:39:45.228] [Il2CppAssemblyGenerator] Using Unity Dependencies Version = 2019.3.7 [11:39:45.230] [Il2CppAssemblyGenerator] Using Deobfuscation Regex = null [11:39:45.235] [Il2CppAssemblyGenerator] Downloading Cpp2IL... [11:39:45.238] [Il2CppAssemblyGenerator] Downloading https://github.com/SamboyCoding/Cpp2IL/releases/download/2022.1.0-pre-release.8/Cpp2IL-2022.1.0-pre-release.8-Windows-Netframework472.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL_2022.1.0-pre-release.8.zip [11:39:47.174] [Il2CppAssemblyGenerator] Processing Cpp2IL... [11:39:47.178] [Il2CppAssemblyGenerator] Creating Directory F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL [11:39:47.181] [Il2CppAssemblyGenerator] Extracting F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL_2022.1.0-pre-release.8.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL [11:39:47.288] [Il2CppAssemblyGenerator] Downloading Il2CppAssemblyUnhollower... [11:39:47.289] [Il2CppAssemblyGenerator] Downloading https://github.com/knah/Il2CppAssemblyUnhollower/releases/download/v0.4.18.0/Il2CppAssemblyUnhollower.0.4.18.0.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower_0.4.18.0.zip [11:39:48.219] [Il2CppAssemblyGenerator] Processing Il2CppAssemblyUnhollower... [11:39:48.221] [Il2CppAssemblyGenerator] Creating Directory F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower [11:39:48.223] [Il2CppAssemblyGenerator] Extracting F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower_0.4.18.0.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Il2CppAssemblyUnhollower [11:39:48.257] [Il2CppAssemblyGenerator] Downloading UnityDependencies... [11:39:48.259] [Il2CppAssemblyGenerator] Downloading https://github.com/LavaGang/Unity-Runtime-Libraries/raw/master/2019.3.7.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies_2019.3.7.zip [11:39:49.700] [Il2CppAssemblyGenerator] Processing UnityDependencies... [11:39:49.702] [Il2CppAssemblyGenerator] Creating Directory F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies [11:39:49.712] [Il2CppAssemblyGenerator] Extracting F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies_2019.3.7.zip to F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\UnityDependencies [11:39:49.830] [Il2CppAssemblyGenerator] Checking GameAssembly... [11:39:50.203] [Il2CppAssemblyGenerator] Assembly Generation Needed! [11:39:50.212] [Il2CppAssemblyGenerator] Executing Cpp2IL... [11:39:50.217] [Il2CppAssemblyGenerator] "F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Cpp2IL.exe" --game-path "F:\CCACG\2023\AVStudio" --exe-name "MyAVstudio" --use-processor attributeinjector --output-as dummydll [11:39:50.459] [Il2CppAssemblyGenerator] ===Cpp2IL by Samboy063=== [11:39:50.460] [Il2CppAssemblyGenerator] A Tool to Reverse Unity's "il2cpp" Build Process. [11:39:50.462] [Il2CppAssemblyGenerator] Version 2022.1.0-pre-release.8 [11:39:50.463] [Il2CppAssemblyGenerator] [11:39:50.538] [Il2CppAssemblyGenerator] [Warn] [Program] NO_COLOR set, disabling ANSI color codes as you requested. [11:39:50.551] [Il2CppAssemblyGenerator] [Info] [Program] Running on Win32NT [11:39:50.904] [Il2CppAssemblyGenerator] [Info] [Plugins] Loading plugins from F:\CCACG\2023\AVStudio\MelonLoader\Dependencies\Il2CppAssemblyGenerator\Cpp2IL\Plugins... [11:39:50.961] [Il2CppAssemblyGenerator] [Info] [Plugins] Using Plugin: Cpp2IL Built-In [11:39:51.016] [Il2CppAssemblyGenerator] [Info] [Program] Determined game's unity version to be 2018.3.7a0 [11:39:51.276] [Il2CppAssemblyGenerator] [Info] [Library] Initializing Metadata... [11:39:51.278] [Il2CppAssemblyGenerator] [Info] [Library] Using actual IL2CPP Metadata version 24.1 [11:39:51.593] [Il2CppAssemblyGenerator] [Fail] [Program] [11:39:51.595] [Il2CppAssemblyGenerator] [11:39:51.596] [Il2CppAssemblyGenerator] Cpp2IL.Core.Exceptions.LibCpp2ILInitializationException: Fatal Exception initializing LibCpp2IL! ---> System.IO.EndOfStreamException: 无法在流的结尾之外进行读取。 [11:39:51.597] [Il2CppAssemblyGenerator] 在 System.IO.__Error.EndOfFile() [11:39:51.598] [Il2CppAssemblyGenerator] 在 System.IO.BinaryReader.ReadByte() [11:39:51.600] [Il2CppAssemblyGenerator] 在 LibCpp2IL.ClassReadingBinaryReader.ReadStringToNullNoLock(Int64 offset) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\ClassReadingBinaryReader.cs:行号 277 [11:39:51.601] [Il2CppAssemblyGenerator] 在 LibCpp2IL.Metadata.Il2CppMetadata.ReadStringFromIndexNoReadLock(Int32 index) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\Metadata\Il2CppMetadata.cs:行号 390 [11:39:51.604] [Il2CppAssemblyGenerator] 在 LibCpp2IL.Metadata.Il2CppMethodDefinition.Read(ClassReadingBinaryReader reader) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\Metadata\Il2CppMethodDefinition.cs:行号 152 [11:39:51.607] [Il2CppAssemblyGenerator] 在 LibCpp2IL.ClassReadingBinaryReader.InternalReadReadableClass[T]() 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\ClassReadingBinaryReader.cs:行号 184 [11:39:51.608] [Il2CppAssemblyGenerator] 在 LibCpp2IL.ClassReadingBinaryReader.ReadReadableArrayAtRawAddr[T](Int64 offset, Int64 count) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\ClassReadingBinaryReader.cs:行号 467 [11:39:51.611] [Il2CppAssemblyGenerator] 在 LibCpp2IL.Metadata.Il2CppMetadata..ctor(MemoryStream stream) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\Metadata\Il2CppMetadata.cs:行号 156 [11:39:51.613] [Il2CppAssemblyGenerator] 在 LibCpp2IL.Metadata.Il2CppMetadata.ReadFrom(Byte[] bytes, UnityVersion unityVersion) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\Metadata\Il2CppMetadata.cs:行号 120 [11:39:51.625] [Il2CppAssemblyGenerator] 在 LibCpp2IL.LibCpp2IlMain.Initialize(Byte[] binaryBytes, Byte[] metadataBytes, UnityVersion unityVersion) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\LibCpp2IlMain.cs:行号 150 [11:39:51.626] [Il2CppAssemblyGenerator] 在 LibCpp2IL.LibCpp2IlMain.LoadFromFile(String pePath, String metadataPath, UnityVersion unityVersion) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\LibCpp2IL\LibCpp2IlMain.cs:行号 202 [11:39:51.628] [Il2CppAssemblyGenerator] 在 Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Cpp2IlApi.cs:行号 54 [11:39:51.629] [Il2CppAssemblyGenerator] --- 内部异常堆栈跟踪的结尾 --- [11:39:51.631] [Il2CppAssemblyGenerator] 在 Cpp2IL.Core.Cpp2IlApi.InitializeLibCpp2Il(String assemblyPath, String metadataPath, UnityVersion unityVersion, Boolean allowUserToInputAddresses) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Cpp2IlApi.cs:行号 66 [11:39:51.632] [Il2CppAssemblyGenerator] 在 Cpp2IL.Program.MainWithArgs(Cpp2IlRuntimeArgs runtimeArgs) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:行号 417 [11:39:51.634] [Il2CppAssemblyGenerator] 在 Cpp2IL.Program.Main(String[] args) 位置 C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:行号 359 [11:39:51.636] [Il2CppAssemblyGenerator] [11:39:51.637] [Il2CppAssemblyGenerator] Waiting for you to press enter - feel free to copy the error...

Did you attach your log file?