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

GeoSpatial and Cesium not working together #219

Open
VisnevschiV opened this issue Oct 31, 2024 · 0 comments
Open

GeoSpatial and Cesium not working together #219

VisnevschiV opened this issue Oct 31, 2024 · 0 comments

Comments

@VisnevschiV
Copy link

Hi, i am trying to set GeoSpatial and Cesium to work together, by repeating the youtube tutorial, i have got the latest versions of everything, including Unity, but i keep getting the same errors and i don't seem to get to the end of it.

InvalidCastException: Specified cast is not valid.
Google.XR.ARCoreExtensions.ARCoreExtensions.OnEnable () (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions/Runtime/Scripts/ARCoreExtensions.cs:201)

ArgumentException: GCHandle value belongs to a different domain
System.Runtime.InteropServices.GCHandle.op_Explicit (System.IntPtr value) (at <321eb2db7c6d43ea8fc39b54eaca3452>:0)
System.Runtime.InteropServices.GCHandle.FromIntPtr (System.IntPtr value) (at <321eb2db7c6d43ea8fc39b54eaca3452>:0)
Reinterop.ObjectHandleUtility.GetObjectFromHandle (System.IntPtr handle) (at ./Library/PackageCache/com.cesium.unity/Runtime/generated/Reinterop.RoslynSourceGenerator/ObjectHandleUtility.cs:301)

NullReferenceException: Object reference not set to an instance of an object
Google.XR.ARCoreExtensions.Internal.ARCoreHandleExtensions.SessionHandle (UnityEngine.XR.ARFoundation.ARSession session) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions/Runtime/Scripts/Internal/ARCoreHandles/ARCoreHandleExtensions.cs:38)

NullReferenceException: Object reference not set to an instance of an object
Google.XR.ARCoreExtensions.Internal.ARCoreHandleExtensions.SessionHandle (UnityEngine.XR.ARFoundation.ARSession session) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions/Runtime/Scripts/Internal/ARCoreHandles/ARCoreHandleExtensions.cs:38)

NullReferenceException: Object reference not set to an instance of an object
Google.XR.ARCoreExtensions.Internal.ARCoreHandleExtensions.SessionHandle (UnityEngine.XR.ARFoundation.ARSession session) (at ./Library/PackageCache/com.google.ar.core.arfoundation.extensions/Runtime/Scripts/Internal/ARCoreHandles/ARCoreHandleExtensions.cs:38)

ArgumentException: GCHandle value belongs to a different domain
System.Runtime.InteropServices.GCHandle.op_Explicit (System.IntPtr value) (at <321eb2db7c6d43ea8fc39b54eaca3452>:0)
System.Runtime.InteropServices.GCHandle.FromIntPtr (System.IntPtr value) (at <321eb2db7c6d43ea8fc39b54eaca3452>:0)
Reinterop.ObjectHandleUtility.GetObjectFromHandle (System.IntPtr handle) (at ./Library/PackageCache/com.cesium.unity/Runtime/generated/Reinterop.RoslynSourceGenerator/ObjectHandleUtility.cs:301)

i also seem to have the CameraConfigFilter missing from ARCoreExtentions, and i don't understand how can i create one manually, if this is the problem. Thank you!

@VisnevschiV VisnevschiV changed the title GeoSpatial and Cesium nto working together GeoSpatial and Cesium not working together Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant