Search Issue Tracker

Fixed in 2018.4.3f1

Fixed in 2018.4.X, 2019.1.X, 2019.2.X

Votes

0

Found in

2019.1.0a3

2019.1.3f1

2019.2

2019.3

Issue ID

1155344

Regression

Yes

[IL2CPP][WebGL] Build fails when multidimensional arrays are present in project

IL2CPP

-

Reproduction steps:

1. Open "BoolMatrix3DTest.zip" project
2. Build for WebGL
3. Notice error: "IL2CPP error for type 'Test' in assembly; Attempting for create a new sz array of invalid rank."

Expected Result: Build succeeds
Actual Result: Build fails

Fixed in: 2019.3.0a8, 2019.2.0b8, 2019.1.9f1, 2018.4.3f1

Reproduced with: 2019.3.0a4, 2019.2.0b4, 2019.1.4f1, 2019.1.0b1, 2019.1.0a10, 2019.1.0a4, 2019.1.0a3
Did not reproduce on: 2019.1.0a2, 2019.1.0a1, 2018.4.1f1

Comments (1)

  1. Arlorean

    Mar 16, 2023 18:49

    Arrays with non-zero upper and lower bounds also seem to break WebGL builds. I was using a two dimensional array created with this method:

    static T[,] CreateArray<T>(int minX, int minY, int width, int height) {
    return (T[,])Array.CreateInstance(typeof(T), new[] { width, height }, new[] { minX, minY });
    }

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.