Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jumbli's avatar
jumbli
Member
9 years ago

Workaround for game crashing when using Post Process materials and Oculus Mixed Reality mode

Just wanted to post this information in case anyone else is struggling with the same issue.

I had a problem where my game crashed when I launch it in mixed-reality mode (UE4.17.2). It turns out the problem was because I had a global post process in the level with a post process material attached to add some effects. These effects were being implemented in the mixed-reality window and the result was a memory exception and crash. You can easily reproduce this by adding a post process material to Oculus' mixed-reality sample in GitHub. You have to run the packaged version to experience the crash and it will take a minute or two to crash.

To work around the problem, I removed the post process material from the global post process in the level and instead applied it directly to the camera used by the HMD. Now the effect shows in the HMD, but not in the mixed-reality window, which is actually better in my case.