OVRQUITMENU command results in application crash [UE 4.17.2]

Hi!

Me and my team has just got back the results from the technical review that oculus have done for our game. We passed 34/35 tests and the one we failed was the behavior of back button short press.

So I have tried to fix this but encountered an issue with the console command OVRQUITMENU which i use to open the “Exit to Oculus Home” screen on back button short press from our main menu. It works fine when you first enter the main menu scene but if you then start the game and go back to the main menu scene the game will crash once you press the back button again. The game is one scene and the menu is another so it seems that this issue arises after a scene transition has taken place.

I will link to my post in the oculus forums where the full log is (too large to upload here). I have also attached an image of the blueprint code I use for running the OVRQUITMENU command. We are using Unreal engine 4.17.2.

Does anyone have an idea what might be causing this crash? Or is there a better way to do this?

My post at the oculus forums: