none
Kinect V2 Error: Message:This API has returned an exception from an HRESULT: 0x8000000E Exception:System.InvalidOperationException: This API has returned an exception from an HRESULT: 0x8000000E ---> System.Runtime.InteropServices.COMException RRS feed

  • Question

  • Hi,

    Recently , I using the kinect V2 build a application. in this application , I using a scrollviewer control to show my item list,

    but when i scroll the item up and down many times later, sometimes, it will will show the error message as below:

    it will show the "Error message 1" at first, then my application will died and need restart.

    but if I add the  "e.Handled = true" on below method,  it will show the "Error message 1" at first, then show the "Error message 2" till I close the application.

    *********************************************************************

    private void Application_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
            {
                LogHelper.Error(e.Exception.Message, e.Exception);
                e.Handled = true;

            }

    ---------------------------------------------------------------------------------------

    Error message 1:

    2015-12-04 14:05:41,111 [1] ERROR LogHelper -Message: - Message:This API has returned an exception from an HRESULT: 0x8000000E Exception:System.InvalidOperationException: This API has returned an exception from an HRESULT: 0x8000000E ---> System.Runtime.InteropServices.COMException: 在意外的时间调用了方法。 (异常来自 HRESULT:0x8000000E)
       --- 内部异常堆栈跟踪的结尾 ---
       在 KinectExceptionHelper.CheckHr(Int32 hr)
       在 Microsoft.Kinect.Input.KinectGestureRecognizer.OnOutput(INTERACTION_OUTPUT* output)
       在 Microsoft.Kinect.Input.KinectGestureRecognizer.ProcessMoveEvents(IList`1 pointerPoints)
       在 Microsoft.Kinect.Toolkit.Input.ManipulatableModel.ProcessPointerMove(KinectPointerPoint kinectPointerPoint, Dictionary`2 captureMap, Boolean forceEndPress)
       在 Microsoft.Kinect.Toolkit.Input.InputPointerManager.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, HitTestResult hitTestResult)
       在 Microsoft.Kinect.Wpf.Controls.KinectRegion.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, CursorModel cursorModel)
       在 Microsoft.Kinect.Wpf.Controls.KinectRegion.KinectCoreWindow_PointerMoved(Object sender, KinectPointerEventArgs args)
       在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    --------------------------------------------------------------------------------------------------------------

    Error message 2:

    2015-12-04 14:05:41,210 [1] ERROR LogHelper -Message: - Message:Reentrancy detected. Exception:System.InvalidOperationException: Reentrancy detected.
       在 Microsoft.Kinect.Input.KinectGestureRecognizer.ProcessDownEvent(KinectPointerPoint pointerPoint)
       在 Microsoft.Kinect.Toolkit.Input.ManipulatableModel.ProcessPointerMove(KinectPointerPoint kinectPointerPoint, Dictionary`2 captureMap, Boolean forceEndPress)
       在 Microsoft.Kinect.Toolkit.Input.InputPointerManager.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, HitTestResult hitTestResult)
       在 Microsoft.Kinect.Wpf.Controls.KinectRegion.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, CursorModel cursorModel)
       在 Microsoft.Kinect.Wpf.Controls.KinectRegion.KinectCoreWindow_PointerMoved(Object sender, KinectPointerEventArgs args)
       在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       在 MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    Friday, December 4, 2015 8:01 AM

All replies

  • This same issue is just happening to us too:

    System.InvalidOperationException: Reentrancy detected.
    at Microsoft.Kinect.Input.KinectGestureRecognizer.ProcessDownEvent(KinectPointerPoint pointerPoint)
    at Microsoft.Kinect.Toolkit.Input.PressableModel.ProcessPointerMove(KinectPointerPoint kinectPointerPoint, Dictionary`2 captureMap, Boolean forceEndPress)
    at Microsoft.Kinect.Toolkit.Input.InputPointerManager.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, HitTestResult hitTestResult)
    at Microsoft.Kinect.Wpf.Controls.KinectRegion.HandlePointerAsCursor(KinectPointerPoint kinectPointerPoint, CursorModel cursorModel)
    at Microsoft.Kinect.Wpf.Controls.KinectRegion.KinectCoreWindow_PointerMoved(Object sender, KinectPointerEventArgs args)
    at ContextEventHandler`1.SendOrPostDelegate(Object state)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

    Any insights of what might be causing this and ways to mitigate it?

    Thanks


    Vicente Penades

    Friday, January 29, 2016 9:07 AM