Cpp2IL icon indicating copy to clipboard operation
Cpp2IL copied to clipboard

--output-as diffable-cs Crash on latest Preview Milestone

Open Mukul1127 opened this issue 1 year ago • 0 comments

===Cpp2IL by Samboy063===
A Tool to Reverse Unity's "il2cpp" Build Process.
Version 2022.1.0-pre-release.17+fa86c0910de2e852a320bbc6b897293ced9ff3f2

[Info] [Program] Running on Win32NT
[Info] [Plugins] Loading plugins from C:\Users\Mukul\Downloads\Plugins...
[Info] [Plugins] Using Plugin: Cpp2IL Built-In
[Info] [Program] Determined game's unity version to be 2021.3.16a0
[Info] [Library] Initializing Metadata...
[Info] [Library]        Using actual IL2CPP Metadata version 29
[Info] [Library] Initialized Metadata in 271ms
[Info] [Library] Using binary type Portable Executable (from LibCpp2IL)
[Info] [Library] Searching Binary for Required Data...
[Info] [Library] Got Binary codereg: 0x184DF7D00, metareg: 0x18555FC60 in 110ms.
[Info] [Library] Initializing Binary...
[Info] [Library] Initialized Binary in 102ms
[Info] [Library] Mapping pointers to Il2CppMethodDefinitions...Processed 208559 OK (187ms)
[Info] [Program] Creating application model...
[Info] [Program] Application model created in 1794.3573ms
[Info] [Program] Pre-processing processing layers...
[Info] [Program]     Attribute Injector...
[Info] [Program]     Attribute Injector finished in 0.1552ms
[Info] [Program] Invoking processing layers...
[Info] [Program]     Attribute Injector...
[Info] [Program]     Attribute Injector finished in 405.3503ms
[Info] [Program] Outputting as Diffable C# to C:\Users\Mukul\Downloads\cpp2il_out...
[Info] [DiffableCsOutputFormat] Building C# files and directory structure...
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
   at Cpp2IL.Core.Model.Contexts.ParameterAnalysisContext.ToString() in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Model\Contexts\ParameterAnalysisContext.cs:line 105
   at System.Text.StringBuilder.Append(Object )
   at Cpp2IL.Core.Utils.CsFileUtils.GetMethodParameterString(MethodAnalysisContext) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\Utils\CsFileUtils.cs:line 30
   at Cpp2IL.Core.OutputFormats.DiffableCsOutputFormat.AppendMethod(StringBuilder, MethodAnalysisContext, Int32) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\OutputFormats\DiffableCsOutputFormat.cs:line 303
   at Cpp2IL.Core.OutputFormats.DiffableCsOutputFormat.AppendType(StringBuilder, TypeAnalysisContext, Int32 ) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\OutputFormats\DiffableCsOutputFormat.cs:line 154
   at Cpp2IL.Core.OutputFormats.DiffableCsOutputFormat.BuildOutput(ApplicationAnalysisContext, String) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\OutputFormats\DiffableCsOutputFormat.cs:line 74
   at Cpp2IL.Core.OutputFormats.DiffableCsOutputFormat.DoOutput(ApplicationAnalysisContext, String) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL.Core\OutputFormats\DiffableCsOutputFormat.cs:line 40
   at Cpp2IL.Program.MainWithArgs(Cpp2IlRuntimeArgs runtimeArgs) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:line 614
   at Cpp2IL.Program.Main(String[] args) in C:\Users\Sam\RiderProjects\Cpp2IL\Cpp2IL\Program.cs:line 526

Mukul1127 avatar Aug 25 '24 00:08 Mukul1127