-
Notifications
You must be signed in to change notification settings - Fork 564
Description
Steps to Reproduce
- Install the bcl-test suite on device and run the NUnit instrumentation as shown below:
adb shell am instrument -w Xamarin.Android.Bcl_Tests/xamarin.android.bcltests.NUnitInstrumentation
Expected Behavior
Suite runs to completion.
Actual Behavior
I'm seeing the following unhandled exception when executing this suite on many devices against the mono-2018-02 branch, however I don't believe it to be directly related to mono changes based on the JNI related stack trace:
04-13 17:22:13.032 E/mono-rt ( 2310): [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Types' threw an exception. ---> System.DllNotFoundException: jvm.dll
04-13 17:22:13.032 E/mono-rt ( 2310): at (wrapper managed-to-native) Java.Interop.NativeMethods.JNI_GetCreatedJavaVMs(intptr[],int,int&)
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniRuntime.GetAvailableInvocationPointers () [0x00000] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniRuntime.get_CurrentRuntime () [0x0007b] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniEnvironmentInfo..ctor () [0x00006] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniEnvironment+<>c.<.cctor>b__35_0 () [0x00000] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.ThreadLocal`1[T].GetValueSlow () [0x00031] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.ThreadLocal`1[T].get_Value () [0x0003e] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniEnvironment.get_CurrentInfo () [0x00000] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00026] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniEnvironment+Types..cctor () [0x000d2] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): --- End of inner exception stack trace ---
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniType.GetCachedJniType (Java.Interop.JniType& cachedType, System.String classname) [0x00018] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniPeerMembers.get_JniPeerType () [0x0000c] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniPeerMembers+JniStaticMethods.GetMethodInfo (System.String encodedMember) [0x0002b] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x00000] in <24e668a472b84815ba42576d196fd0e0>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at Android.OS.Looper.get_MainLooper () [0x00000] in /Users/builder/data/lanes/5930/9aa1f0c7/source/monodroid/external/xamarin-android/src/Mono.Android/obj/Release/android-27/mcw/Android.OS.Looper.cs:68
04-13 17:22:13.032 E/mono-rt ( 2310): at Android.Runtime.AndroidEnvironment.GetDefaultSyncContext () [0x00000] in /Users/builder/data/lanes/5930/9aa1f0c7/source/monodroid/external/xamarin-android/src/Mono.Android/Android.Runtime/AndroidEnvironment.cs:259
04-13 17:22:13.032 E/mono-rt ( 2310): at System.AndroidPlatform.GetDefaultSyncContext () [0x00000] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.SynchronizationContext.GetThreadLocalContext () [0x00005] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.SynchronizationContext.get_Current () [0x00016] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.WaitHandle.WaitOneNative (System.Runtime.InteropServices.SafeHandle waitableSafeHandle, System.UInt32 millisecondsTimeout, System.Boolean hasThreadAffinity, System.Boolean exitContext) [0x00002] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.WaitHandle.InternalWaitOne (System.Runtime.InteropServices.SafeHandle waitableSafeHandle, System.Int64 millisecondsTimeout, System.Boolean hasThreadAffinity, System.Boolean exitContext) [0x00014] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.WaitHandle.WaitOne (System.Int64 timeout, System.Boolean exitContext) [0x00000] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.WaitHandle.WaitOne (System.Int32 millisecondsTimeout, System.Boolean exitContext) [0x00019] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.WaitHandle.WaitOne (System.Int32 millisecondsTimeout) [0x00000] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.Timer+Scheduler.SchedulerThread () [0x0020b] in <4775dd050ce546a9814a2d17717c9d37>:0
04-13 17:22:13.032 E/mono-rt ( 2310): at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <4775dd050ce546a9814a2d17717c9d37>:0
Version Information
Operating System: Mac OS X 10.12.3
Product Name: Xamarin.Android
Branch Name: mono-2018-02
Build Revision: 998d3039edf500b71ccc2a2e0aac076aa62516eb
[Device] Manufacturer: Google, Model: Pixel XL, Version: 8.0.0, ABI: arm64-v8a
[Device] Manufacturer: HUAWEI, Model: VTR-L29, Version: 7.0, ABI: arm64-v8a
[Device] Manufacturer: LENOVO, Model: Lenovo K900_ROW, Version: 4.2.1, ABI: x86
Log File
http://xqa.blob.core.windows.net/gist/log-e9dea303ade84275a91249d678efb5d5.txt
http://xqa.blob.core.windows.net/gist/log-0331d118f1e047a39556bdc81129fd60.txt
http://xqa.blob.core.windows.net/gist/log-73af3bd7f90c4806bc618b515cd5be9e.txt