LunarG / OpenXR-OverlayLayer

Implementation of the OpenXR Overlay extension as a layer
Other
64 stars 17 forks source link

Cascade of errors in Main if quit gracefully while Overlay app still running #16

Open bradgrantham-lunarg opened 3 years ago

bradgrantham-lunarg commented 3 years ago

ENTER in hello_xr console (exit gracefully) on Samsung Odyssey / WinMR results in:

[Verbose [VALID_ERRORGENERAL |  | VUID-xrSyncActions-session-parameterxrDestroyInstance | OpenXR-Loader | ] : xrSyncActionsEntering loader trampoline]:
Invalid XrSession handle "session" 0x0000000000000000
  Objects:
XXX [ | xrDestroyInstance | OpenXR-Loader ] : Entering loader trampoline
   [0] - XrSession (0x0000000000000000)
Verbose [GENERAL | xrDestroyInstance | OpenXR-Loader] : Entering loader terminator
XXX [ | xrDestroyInstance | OpenXR-Loader ] : Entering loader terminator
Verbose [GENERAL | xrDestroyInstance | OpenXR-Loader] : Completed loader terminator
Verbose [[VALID_ERRORGENERAL | xrDestroyInstance |  | OpenXR-LoaderVUID-xrSyncActions-session-parameter] : Completed loader trampoline |
xrSyncActionsInfo []: GENERAL | Invalid XrSession handle "session" 0x0000000000000000xrDestroyInstance
 |   Objects:OpenXR-Loader
] : RuntimeInterface::UnloadRuntime - Unloading RuntimeInterface   [
0Info [GENERAL] -  |  | XrSessionOpenXR-Loader] : RuntimeInterface being destroyed.
 (0x0000000000000000)
[VALID_ERROR | VUID-xrAcquireSwapchainImage-swapchain-parameter | xrAcquireSwapchainImage]: Invalid XrSwapchain handle "swapchain" 0x00000000000000dc
  Objects:
d:\agent\_work\2\s\src\vctools\crt\crtw32\stdcpp\thr\mutex.c(51): mutex destroyed while busy

Appears to be a destroy of a child session 0x0 which errors from the Overlay Layer and then from core_validation, then a subsequent invalid swapchain destroy results in an MSVCRT assertion because... a Mutex is being held? Possibly the same issue as #13

bradgrantham-lunarg commented 3 years ago

The output in this issue contains the output for issue #13, but also has other issues. Re-run and store new debug output?