Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2019.2
2019.2.9f1
2019.3
2020.1
Issue ID
1191419
Regression
No
[IL2CPP] Application crashes when accessing structure property by delegate
To reproduce:
1. Open attached project
2. Make sure backend is set to IL2CPP
3. Build and run the project
4. Press the "ClickMe" button
Actual result: Application crashes
Expected result: Application should not crash
Reproduced with:2019.2.12f1; 2020.1.0a12
Can't check on 2017.4 and 2018.4 due to errors.
Tested and reproduced with:
VLNQA00290, Samsung Galaxy S10 5G (SM-G977U), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00099, Google Pixel XL (Pixel XL), Android 9, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530
iPhone X iOS 11.3.1
Standalone
Note:
Does not reproduce with Mono backend
Code:
void Test()
{
var structPropertyDelegate = (StructPropertyGetterDelegate<TestStruct,int>)Delegate.CreateDelegate(typeof(StructPropertyGetterDelegate<TestStruct,int>),
typeof(TestStruct).GetProperty("X").GetMethod);
Text.text = structPropertyDelegate(new TestStruct(){X=10}).ToString();
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Add comment