MixedRealityToolkit-Unity icon indicating copy to clipboard operation
MixedRealityToolkit-Unity copied to clipboard

"Physics.ClosestPoint can only be used with a BoxCollider" - Continiously printed in the Log File

Open arunrajselvaraj opened this issue 3 years ago • 5 comments

Describe the bug

After starting the application, the below exception fills the log file continuously

To reproduce

Always reproducible

Expected behavior

Not to print this

Screenshots

`` Physics.ClosestPoint can only be used with a BoxCollider, SphereCollider, CapsuleCollider and a convex MeshCollider. UnityEngine.Collider:ClosestPoint(Vector3) Microsoft.MixedReality.Toolkit.Input.SpherePointerQueryInfo:TryUpdateQueryBufferForLayerMask(LayerMask, Vector3, Vector3, QueryTriggerInteraction, Boolean) Microsoft.MixedReality.Toolkit.Input.SpherePointer:OnPreSceneQuery() Microsoft.MixedReality.Toolkit.Input.FocusProvider:UpdatePointer(PointerData) Microsoft.MixedReality.Toolkit.Input.FocusProvider:UpdatePointers() Microsoft.MixedReality.Toolkit.Input.FocusProvider:Update() Microsoft.MixedReality.Toolkit.<>c:<UpdateAllServices>b__67_0(IMixedRealityService) System.Action1:Invoke(T) Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action1) Microsoft.MixedReality.Toolkit.MixedRealityToolkit:UpdateAllServices() Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Update()

Your setup

  • Unity Version - 2019.4.12f1
  • MRTK Version - v2.5

Target platform

  • HoloLens 2

Thanks

arunrajselvaraj avatar Nov 06 '20 09:11 arunrajselvaraj

@arunrajselvaraj I have this problem. If you don't mind me asking, what was the internal problem with your project?

JPhilC avatar May 20 '21 08:05 JPhilC

@JPhilC I closed this bug by mistake. Still we are facing this issue.

arunrajselvaraj avatar May 20 '21 18:05 arunrajselvaraj

Funnily enough this started happening for me when I changed the Managed Stripping Level from Low to Medium. I changed it back and the problem went away.

JPhilC avatar May 20 '21 19:05 JPhilC

This issue has been marked as stale by an automated process because it has not had any recent activity. It will be automatically closed in 30 days if no further activity occurs. If this is still an issue please add a new comment with more recent details and repro steps.

stale[bot] avatar Apr 18 '22 07:04 stale[bot]

This is occurring for me using the latest MKT3. It fills up my logs! I have spline shaped meshes (road, wire, etc...) that need selecting thus have 'concave' Mesh Colliders. The error is coming from the called to Physics.ClosestPoint inside "InteractorVisuals/ReticleMagnetism.cs:15" Even though the error happens, everything seems to work fine (even the Reticle on the spline mesh seems correct). Is there a way to turn off the Reticle Magnetism for certain Interactables? Not sure how/where it gets enable? As is, it makes my logs useless

Happens in the Unity Editor or on Oculus: com.microsoft.mixedreality.openxr: 1.4.0 com.microsoft.mrtk.core: 3.0.0-development com.microsoft.mrtk.extendedassets: 3.0.0-development com.microsoft.mrtk.graphicstools.unity: 0.3.15 com.microsoft.mrtk.input: 3.0.0-development com.microsoft.mrtk.spatialmanipulation: 3.0.0-development com.microsoft.mrtk.standardassets: 3.0.0-development com.microsoft.mrtk.uxcomponents: 3.0.0-development com.microsoft.mrtk.uxcore: 3.0.0-development

derekdominoes avatar Jun 26 '22 02:06 derekdominoes

@derekdominoes thanks for bumping this. Sorry this fell in between the "couch cushions" so to speak. We'll take a look.

Zee2 avatar Aug 31 '22 17:08 Zee2

This is almost certainly related to cursor magnetism.

Zee2 avatar Aug 31 '22 18:08 Zee2

Not sure what it means to be added to a 6 week old milestone in your process? The BUG still exists in the latest release so why mark as Closed?

com.microsoft.mixedreality.openxr: 1.5.1 com.microsoft.mrtk.core: 3.0.0-pre.11 com.microsoft.mrtk.extendedassets: 3.0.0-pre.11 com.microsoft.mrtk.graphicstools.unity: 0.4.0 com.microsoft.mrtk.input: 3.0.0-pre.11 com.microsoft.mrtk.spatialmanipulation: 3.0.0-pre.11 com.microsoft.mrtk.standardassets: 3.0.0-pre.11 com.microsoft.mrtk.uxcomponents: 3.0.0-pre.11 com.microsoft.mrtk.uxcore: 3.0.0-pre.11

derekdominoes avatar Oct 14 '22 17:10 derekdominoes

@Zee2, is this the bug fixed by https://github.com/microsoft/MixedRealityToolkit-Unity/pull/11096?

keveleigh avatar Oct 14 '22 17:10 keveleigh

Yep, #11096 fixed this. @derekdominoes, we close issues when the fix is merged, not necessarily packaged as a release. Stay tuned for pre.12!

Zee2 avatar Oct 14 '22 18:10 Zee2

Thank you. It does look like the same bug. I'll stay tuned :)

Sent with Proton Mail secure email.

------- Original Message ------- On Friday, October 14th, 2022 at 1:06 PM, Finn Sinclair @.***> wrote:

Yep, #11096 fixed this. @.***(https://github.com/derekdominoes), we close issues when the fix is merged, not necessarily packaged as a release. Stay tuned for pre.12!

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

derekdominoes avatar Oct 14 '22 18:10 derekdominoes