Skip to content
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

[xcode12] ARKit marshalling failures on simulator #9531

Closed
spouliot opened this issue Aug 27, 2020 · 2 comments
Closed

[xcode12] ARKit marshalling failures on simulator #9531

spouliot opened this issue Aug 27, 2020 · 2 comments
Labels
iOS Issues affecting iOS test-only-issue The issue only affects tests
Milestone

Comments

@spouliot
Copy link
Contributor

Steps to Reproduce

  1. Apply patch
  2. Run monotouch-tests

Expected Behavior

No errors.

Actual Behavior

AREnvironmentProbeAnchorTest
	[FAIL] AREnvironmentProbeAnchorTest.MarshallingTest :   Extent
  Expected: (1, 1, 1)
  But was:  (0, 0, 0)

		  at MonoTouchFixtures.ARKit.AREnvironmentProbeAnchorTest.MarshallingTest () [0x00040] in /Users/poupou/git/xcode12/xamarin-macios/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs:40 
		  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
		  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 
	[FAIL] AREnvironmentProbeAnchorTest.MarshallingTest2 :   Extent
  Expected: (1, 1, 1)
  But was:  (0, 0, 0)

		  at MonoTouchFixtures.ARKit.AREnvironmentProbeAnchorTest.MarshallingTest2 () [0x00045] in /Users/poupou/git/xcode12/xamarin-macios/tests/monotouch-test/ARKit/AREnvironmentProbeAnchorTest.cs:50 
		  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
		  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 

and

ARReferenceObjectTest
	[FAIL] ARReferenceObjectTest.MarshallingTest : System.Exception : Could not initialize an instance of the type 'ARKit.ARReferenceObject': the native 'initWithArchiveURL:error:' method returned nil.
It is possible to ignore this condition by setting ObjCRuntime.Class.ThrowOnInitFailure to false.
		  at Foundation.NSObject.InitializeHandle (System.IntPtr handle, System.String initSelector) [0x000a8] in /Users/poupou/git/xcode12/xamarin-macios/src/Foundation/NSObject2.cs:449 
		  at ARKit.ARReferenceObject..ctor (Foundation.NSUrl archiveUrl, Foundation.NSError& error) [0x0002d] in /Users/poupou/git/xcode12/xamarin-macios/src/build/ios/native/ARKit/ARReferenceObject.g.cs:111 
		  at MonoTouchFixtures.ARKit.ARReferenceObjectTest.MarshallingTest () [0x00001] in /Users/poupou/git/xcode12/xamarin-macios/tests/monotouch-test/ARKit/ARReferenceObjectTest.cs:38 
		  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
		  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 
ARReferenceObjectTest : 7 ms

Environment

xcode12 branch, on simulators only (works fine on devices)

@spouliot spouliot added iOS Issues affecting iOS test-only-issue The issue only affects tests labels Aug 27, 2020
@spouliot spouliot added this to the xcode12 milestone Aug 27, 2020
@spouliot
Copy link
Contributor Author

c.c. @rolfbjarne who was curious on the last PR about this

@rolfbjarne
Copy link
Member

It would be interesting to see what happens with the same code in Xcode.

rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Oct 6, 2022
…amarin#9531.

Looks like these tests are working in the simulator now.

Fixes xamarin#9531.
rolfbjarne added a commit to rolfbjarne/xamarin-macios that referenced this issue Oct 10, 2022
…amarin#9531.

Looks like some of these tests are working in the simulator now.

I also confirmed that ARReferenceObjectTest.MarshallingTest test should be
ignored in the simulator by verifying that Xcode gets the same behavior we do
(i.e. it doesn't work).

Fixes xamarin#9531.
@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS Issues affecting iOS test-only-issue The issue only affects tests
Projects
None yet
2 participants