Search Issue Tracker

Active

Under Consideration for 1.8.X

Votes

0

Found in [Package]

1.8.11

Issue ID

BUR-2595

Regression

No

Burst custom ISystem class throws the error "Burst.Compiler.IL.Helpers.MethodDecoderException: Unable to decode `_UnmanagedPostProcessorOutput2943707651, Test.Runtime" when two parameters are used

Package: Burst

-

Reproduction steps:
1. Create a new project in 2022.3.X
2. In the Package Manager install the Entities (com.unity.entities) package
3. Download and import the attached package “ReproPackage”
4. Observe the Console Window

Expected result: No errors in the Console Window
Actual result: The error “Burst internal compiler error: Burst.Compiler.IL.Helpers.MethodDecoderException: Unable to decode `__UnmanagedPostProcessorOutput2943707651, Test.Runtime, Version=0.0.0.0, Culture=neutral,_” is thrown

Reproducible with: 1.8.8, 1.8.10, 1.8.11 (2022.3.16f1, 2023.2.4f1, 2023.3.0a19)
Not reproducible with: 1.8.10, 1.8.11 (2023.3.0b1)
Couldn’t test with: 2021.3.33f1(The user’s package errors)

Reproducible on: macOS(Intel) 14.0 Sonoma
Not reproducible on: No other environment tested

Notes: Although the error is clearable in the Console Window it reappears every time a script is recompiled.

Full error:
Burst internal compiler error: Burst.Compiler.IL.Helpers.MethodDecoderException: Unable to decode `__UnmanagedPostProcessorOutput2943707651, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::codegenTest_Runtime_GraphSearchSystem_2_Test_Runtime_GraphComponent,Test_Runtime_GraphDataOnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)` ---> Burst.Compiler.IL.Helpers.MethodDecoderException: Unexpected char `,` while decoding start function arguments, expecting `(` instead of `,Test_Runtime_GraphData__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)`
at Burst.Compiler.IL.Helpers.CecilInterop+MethodParser.Expect (System.Char ec, System.String context) [0x0004d] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
at Burst.Compiler.IL.Helpers.CecilInterop+MethodParser.DecodeMethod () [0x0005d] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
at Burst.Compiler.IL.Helpers.CecilInterop.DecodeMethodFromString (System.String fullMethodName) [0x00017] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
— End of inner exception stack trace —
at Burst.Compiler.IL.Helpers.CecilInterop.DecodeMethodFromString (System.String fullMethodName) [0x00038] in <e7ce1913c76b45e18786ed3f1a11fde7>:0
at Burst.Compiler.IL.Server.LibraryCompiler.HashAndCompileMethodGroup (Burst.Compiler.IL.Server.CompilationJob request, System.Int32 methodGroupIndex, Burst.Compiler.IL.Server.SharedLibraryCompilationState sharedState, Burst.Compiler.IL.Aot.AotCompilerOptions defaultOptions, Burst.Compiler.IL.NativeCompiler& nativeCompiler, Burst.Compiler.IL.Aot.AotModuleGroup& aotModuleGroup) [0x00169] in <e7ce1913c76b45e18786ed3f1a11fde7>:0

While compiling job:
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[[Test.Runtime.GraphSearchSystem`2+GraphSearchSystemJob[[Test.Runtime.GraphComponent, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Test.Runtime.GraphData, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::Execute(Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[[Test.Runtime.GraphSearchSystem`2+GraphSearchSystemJob[[Test.Runtime.GraphComponent, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Test.Runtime.GraphData, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]&, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.Jobs.LowLevel.Unsafe.JobRanges&, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
__UnmanagedPostProcessorOutput2943707651, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::codegenTest_Runtime_GraphSearchSystem_2_Test_Runtime_GraphComponent,Test_Runtime_GraphData__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
__UnmanagedPostProcessorOutput2943707651, Test.Runtime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::codegenTest_Runtime_GraphSearchSystem_2_Test_Runtime_GraphComponent,Test_Runtime_GraphData__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.