Skip to content

Encountering BCL test failures in MonoTests.System.Reflection.MethodInfoTest on Android when Hybrid AOT + LLVM are enabled #1450

Description

@pjcollins

In addition to the test failures in both #1247 and #1449. MonoTests.System.Reflection.MethodInfoTest.GetMethodBody and MonoTests.System.Reflection.MethodInfoTest.TestLocalVariableTypes are consistently failing on Android when Hybrid AOT and LLVM are enabled.

Steps to Reproduce

  1. Download and run the attached prebuilt .apk file:

adb install 15-7-hybridaotllvm-Xamarin.Android.Bcl_Tests-Signed.apk
adb shell am instrument -w Xamarin.Android.Bcl_Tests/xamarin.android.bcltests.NUnitInstrumentation

  1. Alternatively, a smaller repro which just contains the relevant test source could likely be built and installed with Hybrid AOT+LLVM enabled.

Details

Link to .apk file - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EbyqYRYKfM1ErMMTq6w4dugBCr378Gn9JDw0e0XrBuRphw?e=binbA2
Link to obj output - https://microsoft-my.sharepoint.com/:u:/p/pecolli/EVP87hYi1kdLgt442SzN9ksBcnpcgQw0Nqjnec_rOWp7jw?e=VQw7l8

MonoTests.System.Reflection.MethodInfoTest.GetMethodBody

#1
Expected: True
But was: False
at MonoTests.System.Reflection.MethodInfoTest.GetMethodBody () <0x7633610d68 + 0x00077> in <8c83ea21a4bc40aba711be2fac79374d>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x76354aa8c0 + 0x00093> in <5512d6ac97c04306bbb12a1c80562914>:0

MonoTests.System.Reflection.MethodInfoTest.TestLocalVariableTypes

System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
Parameter name: index
at System.Array.InternalArray__get_Item[T] (System.Int32 index) <0x76350dbe50 + 0x00064> in <5512d6ac97c04306bbb12a1c80562914>:0 at System.Collections.ObjectModel.ReadOnlyCollection`1[T].System.Collections.Generic.IList<T>.get_Item (System.Int32 index) <0x763532e274 + 0x0003b> in <5512d6ac97c04306bbb12a1c80562914>:0 at MonoTests.System.Reflection.MethodInfoTest.TestLocalVariableTypes () <0x7633612af4 + 0x000fb> in <8c83ea21a4bc40aba711be2fac79374d>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x76354aa8c0 + 0x00093> in <5512d6ac97c04306bbb12a1c80562914>:0

Version Information

Windows 10 w/ VS 15.7
Xamarin.Android SDK 8.3.0.5 (HEAD/1a8ed5388)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions