-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLR] Enable more p/invokes #9956
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c7a8651
to
db4eeb4
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
521c76a
to
5f2c2bd
Compare
ivanpovazan
reviewed
Mar 26, 2025
jonathanpeppers
approved these changes
Mar 26, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the changes here, Mono.Android-Tests
runs successfully and some of the tests pass:
Then it crashes at:
03-26 16:21:04.376 12587 12610 I NUnit : JavaCast_InterfaceCast
...
03-26 16:21:04.381 12587 12610 I monodroid-assembly: typemap: unable to find mapping to a managed type from Java type 'net/dot/android/test/Example$1' (hash 6d58b30e6a5f46be)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: typemap: called from
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at Java.Interop.TypeManager.GetJavaToManagedType(String)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at Java.Interop.TypeManager.CreateInstance(IntPtr, JniHandleOwnership, Type)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at Android.Runtime.AndroidValueManager.CreatePeer(JniObjectReference&, JniObjectReferenceOptions, Type )
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at Java.Lang.Object._GetObject[T](IntPtr, JniHandleOwnership)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at Java.InteropTests.JavaObjectExtensionsTests.JavaCast_InterfaceCast()
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack, Void**, ObjectHandleOnStack, BOOL, ObjectHandleOnStack)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack, Void**, ObjectHandleOnStack, BOOL, ObjectHandleOnStack)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at System.RuntimeMethodHandle.InvokeMethod(Object, Void**, Signature, Boolean)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
03-26 16:21:04.381 12587 12610 W monodroid-assembly: at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object, BindingFlags)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at System.Reflection.RuntimeMethodInfo.Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.Reflect.InvokeMethod(MethodInfo, Object, Object[] )
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.Commands.TestMethodCommand.RunNonAsyncTestMethod(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.Execute(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.SimpleWorkItem.PerformWork()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.Execute(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.RunChildren()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.PerformWork()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.Execute(TestExecutionContext)
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.RunChildren()
03-26 16:21:04.382 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.CompositeWorkItem.PerformWork()
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.RunTest()
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.WorkItems.WorkItem.Execute(TestExecutionContext)
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at NUnit.Framework.Internal.NUnitLiteTestAssemblyRunner.Run(ITestListener, ITestFilter)
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at Xamarin.Android.UnitTests.NUnit.NUnitTestRunner.Run(IList`1)
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at Xamarin.Android.UnitTests.TestInstrumentation`1.RunTests(Bundle&)
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at Xamarin.Android.UnitTests.TestInstrumentation`1.OnStart()
03-26 16:21:04.383 12587 12610 W monodroid-assembly: at Android.App.Instrumentation.n_OnStart(IntPtr jnienv, IntPtr native__this)
Which seems like a new issue to investigate.
5f2c2bd
to
194ca27
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enables more p/invokes in our native runtime CLR host.