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

Exception "hresult_error" when debugging #54

Closed
ranchenhao opened this issue Nov 27, 2020 · 3 comments
Closed

Exception "hresult_error" when debugging #54

ranchenhao opened this issue Nov 27, 2020 · 3 comments

Comments

@ranchenhao
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Author

ranchenhao commented Nov 28, 2020 via email

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

2 participants