Search Issue Tracker

Won't Fix



Found in [Package]


Issue ID




[DOTS] Compiler error "System.InvalidOperationException: Method Cloner ILPP" when using multidimensional arrays

Package: Entity Component System - Bugs


FixBranch: dots/release-0.51

How to reproduce:
1. Open the user's project ""
2. Observe the Console window

Expected result: No error occurs
Actual result: Error "(0,0): error System.InvalidOperationException: Method Cloner ILPP..." occurs

Reproducible with: 0.17.0-preview.42, 0.50.0-preview.24, 0.50.1-preview.2 (2020.3.34f1)
Could not test with: 2021.3.2f1 (due to "JobsUtility' does not contain a definition for '...'" errors)

Reproduced on: macOS (Intel) Monterey 12.3.1, Windows 10

- Full error message: "(0,0): error System.InvalidOperationException: Method Cloner ILPP: Cannot find method TestMethod_System.Int32[,] in TestSystem. Method candidates are OnUpdate, TestMethod_System.Int32[0...,0...], TestSystem_LambdaJob_0_Execute, OnCreateForCompiler, .ctor"
- If the error doesn't occur, enable Burst compiler or re-import "TestSystem.cs"
- Workaround: Store the argument in a field on the system and remove it from the parameters.
public partial class TestSystem : SystemBase{
int[,] arr;
protected override void OnUpdate() \{ }
private void TestMethod() {
Entities .ForEach(() => \{ }).Run();
// Also issue can be reproduced with Job.WithCode
// Job.WithCode(() => \{ }).Run();

  1. Resolution Note:

    There are no fixes planned for this Bug

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.