jdibenes / hl2ss

HoloLens 2 Sensor Streaming. Real-time streaming of HoloLens 2 sensor data over WiFi. Research Mode and External USB-C A/V supported.
Other
219 stars 53 forks source link

Exception thrown when deploying #115

Closed zhangzhousuper closed 4 months ago

zhangzhousuper commented 4 months ago

Dear Authors and Github collegues:

I am following the Build and Deploy instructions. When I press F5, there is a exception thrown: Exception thrown at 0x00007FFE47D662E0 in hl2ss.exe: Microsoft C++ exception: winrt::hresult_error at memory location 0x00000066D3FFF2C0. at throw hresult_error(result, take_ownership_from_abi WINRT_IMPL_SOURCE_LOCATION_FORWARD); And the call stack is:



KernelBase.dll!00007ffe47d662e0()   Unknown
    vcruntime140_app.dll!00007ffe2d674dfc() Unknown
>   hl2ss.exe!winrt::throw_hresult(const winrt::hresult result) Line 5070   C++
    [Inline Frame] hl2ss.exe!winrt::check_hresult(const winrt::hresult) Line 5140   C++
    [Inline Frame] hl2ss.exe!winrt::impl::consume_Windows_Foundation_IAsyncOperation<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::StorageFile>,winrt::Windows::Storage::StorageFile>::GetResults() Line 116 C++
    [Inline Frame] hl2ss.exe!winrt::impl::wait_get(const winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::StorageFile> &) Line 3322 C++
    hl2ss.exe!winrt::impl::consume_Windows_Foundation_IAsyncOperation<winrt::Windows::Foundation::IAsyncOperation<winrt::Windows::Storage::StorageFile>,winrt::Windows::Storage::StorageFile>::get() Line 3443  C++
    hl2ss.exe!ExtendedExecution_GetFlatMode() Line 88   C++
    [Inline Frame] hl2ss.exe!App::Initialize(const winrt::Windows::ApplicationModel::Core::CoreApplicationView &) Line 62   C++
    hl2ss.exe!winrt::impl::produce<App,winrt::Windows::ApplicationModel::Core::IFrameworkView>::Initialize(void * applicationView) Line 934 C++
    [External Code] 

Any idea on how to solve it?
jdibenes commented 4 months ago

Hello, Disable winrt::hresult_error in Debug > Windows > Exception Settings > C++ Exceptions.