microsoft / Microsoft-OpenXR-Unreal

An Unreal Engine game plugin providing additional features available on Microsoft's Mixed Reality devices like the HoloLens 2 when using OpenXR.
MIT License
165 stars 52 forks source link

UE5: APP quits when starting screen recording/screenshot. #50

Closed YufanX closed 2 years ago

YufanX commented 2 years ago

Hi there

I found some problem when I'm trying to record my app from recording button in the headset menu/live-preview from PC. I figured out uap6 and XML were not the reason(which is said not supported here). I tested different versions and found it seems to be a conflict in PV camera usage(looks like when I record the content, it automatically shuts down my XR camera in my project. Does it only allow one process running at the same time?). 

Also here are settings I used for my project:

  1. the live preview from PC and headset recording works well with other apps.
  2. Only "Hologram" and "Render from Camera" can be live-previewed from PC(without XR blending), app still pause and quits when enable PV camera sharing.
  3. Camera is toggled on in AR capture, XR camera is enabled and resized 1920*1080. PV Camera texture works fine in game.
  4. appx, appxbundle and certificate are fully installed.

It's really important to my project, some experience and usage need to be recorded for analysis. If there is a solution, would be perfect. Thank you so much!

image image image
fieldsJacksonG commented 2 years ago

What version of the Microsoft OpenXR plugin are you using in UE5?

UE5 currently has an engine bug with "Render from Camera", so this feature is temporarily disabled in 1.1.10. However, if you are on 1.1.9, this checkbox will result in a crash when using Mixed Reality Capture.

YufanX commented 2 years ago

What version of the Microsoft OpenXR plugin are you using in UE5?

UE5 currently has an engine bug with "Render from Camera", so this feature is temporarily disabled in 1.1.10. However, if you are on 1.1.9, this checkbox will result in a crash when using Mixed Reality Capture.

Hi Jackson thanks for the reply!

FYI I was using 1.1.9 and after seeing this reply I tried 1.1.10, none of them works. Also it's not like "crashed", it's more like "paused", cause when I exit recording, the app resume from the point it paused.

fieldsJacksonG commented 2 years ago

Does this repro for you when using the sample project in this repo?

I am able to live preview with an active camera capture rendering in the sample project without any hitches.

If you run with a debugger attached, do you see anything in the output log when the hitch happens for you? (You can also check the saved log in the HoloLens device portal: System > File explorer > LocalAppData > %GameName% > LocalState > %GameName% > Saved > Logs > %GameName%.log)

Also note that with OpenXR, you no longer need to call SetEnabledXRCamera, ResizeXRCamera, or ConfigureGestures.

YufanX commented 2 years ago

Hi Jackson thanks for the reply!

I've fixed the issue by installing your latest update 1.1.11, the livew preview and recording run smoothly!