Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2018.3.X, 2018.4.X, 2019.1.X, 2019.2.X
Votes
0
Found in
2018.3.0a1
2018.3.0f2
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1143749
Regression
No
[IL2CPP] Passing 'this' to a method as an 'in' parameter causes IndexOutOfRangeException when building Player
Steps to reproduce:
1. Download attached project
2. Build project for Standalone with IL2CPP backend
Results: Build fails with when passing 'this' to a method as an 'in' parameter
Reproduced with: 2019.3.0a1, 2019.2.0a12, 2019.1.0f2, 2018.3.13f1
stdout:
IL2CPP error for method 'System.Single Repro::GetNextRotation(System.Single)' in C:\Users\USER_NAME\Downloads\case_1143749-il2cpp-repro\Assets\Repro.cs:19
Additional information: Index was outside the bounds of the array.
il2cpp.exe didn't catch exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.
<...>
Example code:
void Update()
{
Test(this);
}
void Test(in ClassName script) { }
Note:
- Not reproducible in 2017.4 as this feature is not supported in C# 6.
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
- Text render issues and various exceptions in TextCore when using TextSettings option "Match Material Presets"
- NullReferenceException error is thrown when unpacking multiple instances of the same UI Document
- URP Decal Projectors don't render when they are hidden in the Hierarchy, unlike other GameObjects
- Reflection Probe “adjusting number of stops to over or under expose the texture” setting does not update in Scene realtime
- UI Toolkit rendered text breaks when toggling FontWeight styles through code
Resolution Note (fix version 2019.3):
Fixed in: 2019.3.0a5, 2019.2.0b6, 2019.1.6f1, 2018.4.2f1