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
- Crash on WriteParticleLineVertex when the "Generate Lighting Data" property is enabled in the Particle System
- UI overlay becomes visible in ray-traced reflections when HDR Color output is enabled
- Crash on EditorOnlyPlayerSettings::GetDefaultTextureCompressionFormat when switching or opening a specific project with Android or IOS Platform
- [Mobile] Player silently crashes on a mobile device when using a lot of "Camera" GameObjects (40 and more) in the Scene
- Scene is modified after exiting Play Mode when Graphics Compositor is enabled in HD RP
Add comment