-
Notifications
You must be signed in to change notification settings - Fork 100
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
IncludeInfrared crashes the app on HoloLensCaptureApp #236
Comments
I think I see the bug, and will PR a quick fix shortly. Just to be sure though, can you see what exception gets thrown exactly (and from where) when trying to run the app with this configuration? Yes, Infrared refers to the AB image. Setting I'll check with the team to see if there was a good reason for not outputting the Infrared image from the depth camera in AHAT mode, and report back. I know we've had issues with the AHAT streams in general, which seem to be a bit finnicky depending on which other sensor streams are being accessed. (Also, I would recommend leaving |
Thanks for the advice! As for the crash, it happens when the label shows "Capturing..." for less a second and then immediately switched to the initial state, then crashes in a few seconds. I switched to the debug mode and changed the debug type to managed only, a null reference exception was raised at the Dispose function of this.listener.Stop(); Adding a question marker after listener could stop the crash but still won't capturing. (The app just returns to initial state)
Regarding the AHAT camera, it could enable some interesting application because of its higher framerate and spatial resolution although being quite noisy. I also have trouble enabling both AHAT and PV in the latest build 22H1 as is mentioned in this issue. |
Thanks for the additional info. PR #242 should hopefully fix the bug in encoding infrared images, while also extending configuration options to allow for AHAT infrared images. Unfortunately, however, we are also seeing the same issues with enabling AHAT in recent OS builds. It also seems to no longer be possible to enable AHAT and long-throw depth streams at the same time. We're not sure if/when the AHAT issues will be fixed, as it seems to be a problem deep in the OS/firmware, but will post on that thread if we (or anyone else) can discover a workaround... |
Sorry, I just got the time to test it. It works and I can see the Infrared stream in PSI Studio! Thanks for the update. There are some minor related issues:
|
Glad that it works, and thanks for the PR bringing the exporter in line with the recent changes! For your first question, only the For your last question, that sounds normal. By default, the app is using "LatestMessage" delivery policies on most streams (except audio), which means messages might drop if a component can't keep up. For example, if there is any hiccup in the network and the TCP writer gets blocked, some incoming messages will be dropped. You can always change delivery policies to be "Unlimited" if you don't want messages to ever drop, but then you run the risk of ever-increasing message queues and latencies. So it's always a tradeoff. |
Thanks for your reply. I will try it when I have time! |
Thanks for this great repo for sensor data collection. I am not sure it is a bug but when I set the IncludeInfrared flag to true, HoloLens app would crash when trying to setup the pipeline. Below is the flags I changed in
HoloLensCaptureApp.cs
:I suppose the infrared image here means the active brightness image from the IR camera. Could you suggest the proper way to get the active brightness stream? Plus, I notice the include infrared flag is only used in long throw mode. In Ahat mode, OutputInfraredImage is set to false. Is there any reason writing it in such way? Thanks!
My HoloLens is on 21H1, 20348.1432.
The text was updated successfully, but these errors were encountered: