microsoft / HoloLens2ForCV

Sample code and documentation for using the Microsoft HoloLens 2 for Computer Vision research.
MIT License
490 stars 145 forks source link

Exception "hresult_error" when debugging #54

Closed ranchenhao closed 3 years ago

ranchenhao commented 3 years ago

I have successfully built the sample solution. But got "hresult_error" when debugging it on Hololens.

Exception thrown at 0x00007FFDB5CC39EC (KernelBase.dll) in CalibrationVisualization.exe: WinRT originate error - 0x8000FFFF : 'Catastrophic failure'. Exception thrown at 0x00007FF6833EF284 in CalibrationVisualization.exe: 0xC0000005: Access violation reading location 0x0000000000000000.

The first exception occurred at "winrt\base.h" throw hresult_error(result, take_ownership_from_abi);

The second exception occurred at "Windows.UI.Core.h" template <typename D> WINRT_IMPL_AUTO(void) consume_Windows_UI_Core_ICoreWindow<D>::KeyDown(winrt::event_token const& cookie) const noexcept { WINRT_VERIFY_(0, WINRT_IMPL_SHIM(Windows::UI::Core::ICoreWindow)->remove_KeyDown(impl::bind_in(cookie))); }

I don't know anything about winrt and have no idea how to adress this problem. Would anyone help me with this?

dorinung commented 3 years ago

Can you check that Research mode is enabled in the device portal. See the Setup section in https://github.com/microsoft/HoloLens2ForCV/blob/main/Docs/ECCV2020-Tutorial/ECCV2020-ResearchMode-Api.pdf (slides 7 and 8)

Thanks

ranchenhao commented 3 years ago

Can you check that Research mode is enabled in the device portal. See the Setup section in https://github.com/microsoft/HoloLens2ForCV/blob/main/Docs/ECCV2020-Tutorial/ECCV2020-ResearchMode-Api.pdf (slides 7 and 8)

Thanks

Thank you! The problem is solved. I allowed sensor access in "Recording mode" instead of "Research mode". However, it seems that before I update the system in Hololens, I cannot find the "Research mode", only "Recording mode".

ranchenhao commented 3 years ago

Thank you! The problem is solved. I allowed sensor access in "Recording mode" instead of "Research mode". However, it seems that before I update the system in Hololens, I cannot find the "Research mode", only "Recording mode".

Anyway, problem solved. Thank you!

Best regards, Chenhao Ran

------------------ Original ------------------ From:  "Dorin Ungureanu";<notifications@github.com>; Date:  Nov 28, 2020 To:  "microsoft/HoloLens2ForCV"<HoloLens2ForCV@noreply.github.com>; Cc:  "冉辰浩"<944730600@qq.com>; "Author"<author@noreply.github.com>; Subject:  Re: [microsoft/HoloLens2ForCV] Exception "hresult_error" when debugging (#54)

Can you check that Research mode is enabled in the device portal. See the Setup section in https://github.com/microsoft/HoloLens2ForCV/blob/main/Docs/ECCV2020-Tutorial/ECCV2020-ResearchMode-Api.pdf (slides 7 and 8)

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.