microsoft / MixedRealityToolkit-Unity

This repository is for the legacy Mixed Reality Toolkit (MRTK) v2. For the latest version of the MRTK please visit https://github.com/MixedRealityToolkit/MixedRealityToolkit-Unity
https://aka.ms/mrtkdocs
MIT License
6.02k stars 2.12k forks source link

Random crashes on HoloLens 2 related to OpenXR #11420

Closed Suddelnuppe closed 10 months ago

Suddelnuppe commented 1 year ago

Describe the bug

We experience random crashes on the HoloLens 2, that seem to originate from OpenXR. Updating both OpenXR packages in Unity didn't help. Neither did anything else we tried.

To reproduce

Unknown how to reproduce it. Seems to happen more often when the CPU is heavily used.

Expected behavior

No crashes

Your setup (please complete the following information)

Target platform (please complete the following information)

Additional context

Here is the stack trace from the crash dump.

EXCEPTION_RECORD: (.exr -1) ExceptionAddress: 00007ffeafe5a088 (UnityOpenXR!session_RequestExitSession+0x00000000000020f0) ExceptionCode: c0000005 (Access violation) ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 0000000000000000 Parameter[1]: 0000000000000000 Attempt to read from address 0000000000000000

READ_ADDRESS: 0000000000000000

ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 0000000000000000

EXCEPTION_PARAMETER2: 0000000000000000

STACK_TEXT:
000000ccec6fc7b0 00007ffeafe3a678 : 000000ccec6fc7f0 00007ffeafe3a678 0000026430af8710 0000000000000000 : UnityOpenXR!session_RequestExitSession+0x20f0 000000ccec6fc7f0 00007ffeafe3973c : 000000ccec6fc930 00007ffeafe3973c 000000ccec6fc744 000000ccec6fc7e0 : UnityOpenXR!DiagnosticReport_StartReport+0x1fc8 000000ccec6fc930 00007ffea3d7dbf4 : 000000ccec6fc9b0 00007ffea3d7dbf4 fffffffffffffffe 0000000000000000 : UnityOpenXR!DiagnosticReport_StartReport+0x108c 000000ccec6fc9b0 00007ffea3d7dd04 : 000000ccec6fcfd0 00007ffea3d7dd04 0000000000000001 3f80000000000000 : UnityPlayer!UnityXRDisplayGraphicsThreadProvider_5::Adapt_PopulateNextFrameDesc+0x10c 000000ccec6fcfd0 00007ffea3d7de8c : 000000ccec6fd5e0 00007ffea3d7de8c 0000000000000001 3f80000000000000 : UnityPlayer!UnityXRDisplayGraphicsThreadProvider_7::Adapt_PopulateNextFrameDesc+0x9c 000000ccec6fd5e0 00007ffea3d791b0 : 000000ccec6fdc00 00007ffea3d791b0 0000000000000001 3f80000000000000 : UnityPlayer!UnityXRDisplayGraphicsThreadProvider_8::Adapt_PopulateNextFrameDesc+0xf4 000000ccec6fdc00 00007ffea40dbc54 : 000000ccec6ff9d0 00007ffea40dbc54 0000000000000001 3f80000000000000 : UnityPlayer!XRDisplaySubsystem::GfxThread::FrameBoundary+0x198 000000ccec6fdc90 00007ffea40d6a58 : 00000263b0f91c60 0000000000000000 0000000000000001 0000000000000000 : UnityPlayer!GfxDeviceWorker::RunCommand+0x5124 000000ccec6ffa30 00007ffea40d69a8 : 000000ccec6ffa70 00007ffea40d69a8 00000263b029fc10 00000262a0054790 : UnityPlayer!GfxDeviceWorker::RunExt+0xa0 000000ccec6ffa70 00007ffea40d68dc : 000000ccec6ffaa0 00007ffea40d68dc 0000000000000960 0000026330002760 : UnityPlayer!GfxDeviceWorker::Run+0xc0 000000ccec6ffaa0 00007ffea3736564 : 000000ccec6ffab0 00007ffea3736564 000000ccec6ffb70 00007ffeca580258 : UnityPlayer!GfxDeviceWorker::RunGfxDeviceWorker+0xc 000000ccec6ffab0 00007ffeca580258 : 000000ccec6ffb70 00007ffeca580258 0000000000000001 0000026330002760 : UnityPlayer!Thread::RunThreadWrapper+0x154 000000ccec6ffb70 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x58

AMollis commented 1 year ago

@Suddelnuppe, are you able to share a crash dump file?

Also, can you please provide the versions of the OpenXR Plugin and the Microsoft Mixed Reality OpenXR Plugin?

Suddelnuppe commented 1 year ago

Hey @AMollis could you provide me with your work mail. I will gladly share what we have.

IssueSyncBot commented 10 months ago

Hi @Suddelnuppe,

We appreciate your feedback and thank you for reporting this issue.

Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.

Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.

Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.

Thank you for your continued support of the Mixed Reality Toolkit!