Crash in OculusHMD_TextureSetProxy on app Quit

Just upgraded to 4.22 and when playing a packed Win64 build and then calling quit the game freezes for a while and then crashes with the following callstack:

    Assertion failed: InRenderThread() || InRHIThread() [File:D:\Build\++UE4\Sync\Engine\Plugins\Runtime\Oculus\OculusVR\Source\OculusHMD\Private\OculusHMD_TextureSetProxy.cpp] [Line: 25]
    
   FWindowsErrorOutputDevice::Serialize()
   FOutputDevice::LogfImpl()
   FDebug::AssertFailed()
   FDebug::CheckVerifyFailedImpl()
   OculusHMD::FTextureSetProxy::`vector deleting destructor'()
   OculusHMD::FLayer::~FLayer()
    SharedPointerInternals::TReferenceControllerWithDeleter<OculusHMD::FLayer,SharedPointerInternals::DefaultDeleter<OculusHMD::FLayer> >::DestroyObject()
    TArray<TSharedPtr<OculusHMD::FLayer,1>,FDefaultAllocator>::~TArray<TSharedPtr<OculusHMD::FLayer,1>,FDefaultAllocator>()
   OculusHMD::FSplash::~FSplash()
   OculusHMD::FSplash::`vector deleting destructor'()
   OculusHMD::FOculusHMD::Shutdown()
   OculusHMD::FOculusHMD::~FOculusHMD()
   OculusHMD::FOculusHMD::`vector deleting destructor'()
   UEngine::ShutdownHMD()
   UGameEngine::PreExit()
   FEngineLoop::Exit()
   GuardedMain()
   GuardedMainWrapper()
   WinMain()
   __scrt_common_main_seh() [d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
    kernel32
    ntdll

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks

Ah, ok, used the form to report it :).

I have the same issue. Do you use substance plugin?

No, its also just an error/bug in the Oculus OVR Plugin version used in 4.22.