[Bug]: Hitting an exception when attempting to start hololenscaptureapp in hololens2 using VS2022
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 574
- Forks
- 104
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
I'm hitting an issue when attempting to Launch the hololensCaptureApp after deploying to a hololens 2. VS2022 hits an exception, and the app fails to begin capturing. The below exception is what I'm hitting.
Line 39 shows this.sensorDevice
and VS gives a suggestion to remove 'this' (not sure if this is the actual issue)
Repro steps:
Rebuild after cloning repository from here: https://github.com/microsoft/psi
Hololens connected to PC via USB cable
Add IP address from PC to CaptureServerIP.txt doc and add to hololens documents folder via device portal
Enable CaptureServer firewall settings to be both "Public" and "Private"
Deploy hololensCaptureApp to hololens 2
Start CaptureServer on PC
Start CaptureApp on HL2
click start from inside the app
Yellow square appears momentarily
Hololens freezes with black screen
Observe exception in VS
If I click on continue from the exception popup, the app re-appears in the hololens and just sits there saying "please wait constructing capture pipeline" and never progresses further.
Attempted on 2 machines, 1 laptop surface book and 1 desktop PC got same results.
Not sure if this is a build issue or if something is not configured correctly.
OS: Windows 10 Enterprise 22H2
VS: Microsoft Visual Studio Community 2022 (64-bit) - Current
Hololens:
System.Exception
HResult=0x8000FFFF
Message=Catastrophic failure
Catastrophic failure
Source=HoloLens2ResearchMode
StackTrace:
at HoloLens2ResearchMode.ResearchModeSensorDevice..ctor()
at Microsoft.Psi.MixedReality.ResearchMode.ResearchModeImu..ctor(Pipeline pipeline, ResearchModeSensorType sensorType, String name) in C:\Users\v-jbobillot\source\repos\psi\Sources\MixedReality\Microsoft.Psi.MixedReality.UniversalWindows\ResearchMode\ResearchModeImu.cs:line 39
at Microsoft.Psi.MixedReality.ResearchMode.Accelerometer..ctor(Pipeline pipeline, String name) in C:\Users\v-jbobillot\source\repos\psi\Sources\MixedReality\Microsoft.Psi.MixedReality.UniversalWindows\ResearchMode\Accelerometer.cs:line 20
at HoloLensCaptureApp.HoloLensCaptureApp.<>c__DisplayClass46_0.
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__278_1(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Sources/MixedReality/Microsoft.Psi.MixedReality.UniversalWindows/ResearchMode/ResearchModeImu.cs at line 39 and the ResearchModeSensorDevice constructor named in the stack trace. Trace the call from Accelerometer.cs line 20 to HoloLensCaptureApp.cs line 249, then reproduce the listed HoloLens 2 deployment steps. Done means the capture pipeline starts without the catastrophic failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100