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
- UI Toolkit Slider value defaults to min value when the initial value is set in the UXML file
- The Player hangs when unloading a scene using the UnloadUnusedAssets() method
- [iOS] Too many texture parameters error is thrown when running on devices that support the number of parameters
- [MacOS] Trying to pick a Colour from full-screen window breaks Colour Picker Tool functionality
- WebGL Player hangs on first frame when "Autoconnect Profiler" is enabled and large amount of Profiler data is buffered before the first frame
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 });
}