You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realized this is actually session loss, not instance loss. The commit message should probably be reworded.
I was thinking about this and came to a realization: is telling the application on session loss really the right thing here? To me VREvent_Quit seems more like a way to tell an application to gracefully close, but session loss seems closer to an error condition, and if we have applications gracefully exit it won't be obvious something erroneous happened. I would think session state being STOPPING or EXITING would be more appropriate.
@Supreeeme Would emitting VREvent_Quit event on change to STOPPING state be enough? I thought there would be more involved in that case, though I guess nothing in OpenXR mandates that the app stop immediately
ImSapphire
changed the title
openxr_data: fire VREvent_Quit event when instance loss is pending
openxr_data: fire VREvent_Quit event when session state changes to STOPPING
Dec 8, 2025
iirc in SteamVR, AcknowledgeQuit_Exiting just extends SteamVR's kill timer to give the app time to safely shutdown, if we stop the session there we'd probably crash because the game would keep calling functions like WaitGetPoses, Get*ActionData etc. Not sure what the right thing to do there is
@Supreeeme is there anything I could do to get this merged?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tested in VRChat via closing with WiVRn's quit button.