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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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 });
}