Search Issue Tracker

Duplicate

Votes

1

Found in

2018.2.0b2

Issue ID

1030607

Regression

No

[iOS][.NET4.6] Exception in System.Reflection.MonoProperty::StaticGetterAdapterFrame when accessing properties using Reflection

iOS

-

To reproduce:
1. Open project
2. Make sure that Scripting runtime is set to .NET 4.6
3. Build and run on iOS device

Expected: project will run without any errors
Actual: exception is thrown:
ExecutionEngineException: Attempting to call method 'System.Reflection.MonoProperty::StaticGetterAdapterFrame' for which no ahead of time (AOT) code was generated.
at System.Reflection.MonoProperty+GetterAdapter.Invoke (System.Object _this) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <00000000000000000000000000000000>:0
at Repro.Start () [0x00000] in <00000000000000000000000000000000>:0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <00000000000000000000000000000000>:0
at Repro.Start () [0x00000] in <00000000000000000000000000000000>:0

Reproduced: 2017.1.3p4, 2017.2.2p4, 2017.3.2f1, 2017.4.3f1, 2018.1.0f2, 2018.2.0b3

Note: works properly when using .NET 3.5

Comments (2)

  1. 520a7bbe0121875e85e0c6a4fcb260da?d=mm

    EdwinLyons

    May 11, 2018 11:53

    I reported this issue initially - I've been informed by Unity that it's a duplicate of https://issuetracker.unity3d.com/issues/uwp-executionengineexception-is-thrown-on-system-dot-reflection-dot-monoproperty-getteradapterframe and that it'll be fixed in a 2018.1 patch release.

  2. 4823ed8fc702926f6d1470774b0bfd01?d=mm

    Gigaflops2017

    May 10, 2018 06:51

    Same thing.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.