mojira.dev
MCPE-128562

Memory Leak Crash: OpenXR / Valve Index / Steam VR

After changing Minecraft URL to get VR working via "minecraft://mode/?OpenXR=true". The game will crash after a few mins in the main menu due to a massive memory leak. I got to play for about 5 mins until all 32Gb of my system ram was filled up and crashed.

This has nothing to do with Oculus version of Minecraft. I'm talking about Steam VR/OpenXR with memory leak. so don't mention this is the same problem as MCPE-16946 . The MCPE-16946 Talks about the game not opening and a completely different than a memory leak crash.

The game opens just fine but once your in the main menu of Minecraft. The memory usage will just keep going up until you run out of system memory. Then everything crashes due to the memory leak. I made a video showing the crash and have an on screen resource manger to watch the ram keep going up and up until the game crashes.

Proof -> https://www.youtube.com/watch?v=DkrkdnC1X_I

Specs:
VR: Valve Index
CPU: AMD Ryzen 9 5900x
GPU: Nvidia RTX 3080
Memory: 32Gbs @3600 MHz
Storage: Samsung 980 Pro NVME 1TB

Edit: Still Memory Leak Crash in the latest beta build 1.17.20.22
Edit 2: Also show some love to MCPE-128724 for Valve index knuckles/controller support!
Edit 3: Seems Fixed with the latest beta or changing SteamVR to beta version fixed my memory leak issue.
Edit 4: Now I'm crashing when loading into my singleplayer world. atleast its not a memory leak at this point...

Comments 17

I have the same issue, I can open/run the game using the openXR shortcut but regardless if I'm sitting at the menu screen or load into a world my game crashes after about 5 mins and my memory usage slowly climbs up the whole time. My specs:

VR Headset: Valve Index
CPU: i7-8700k
GPU: Nvidia 1080Ti
Memory: 32GB
Storage: 500GB SSD

Crashes on the latest beta of both Minecraft and SteamVR

@Mulelish
Hopefully they will fix it soon. I Added a Youtube video to the main post showing the game crashing and memory usage just going up and up and up and away. Lets hope the video proof helps speed up the process with Mojang on fixing it.
https://www.youtube.com/watch?v=DkrkdnC1X_I

Exactly what happens for me as well

Yes, I experience this leak when using Steam VR openxr and a Quest 2 headset.

running into the exact same issue over here with my quest 2 using SteamVR and ALVR. really annoying

7 more comments

Nope, still same thing. Setup: steamvr, oculus quest with air link (works fine with every single game except minecraft), minecraft launcher in vr mode. Eats all of my memory in seconds and dies.

 

CPU: intel i7 7700HQ
GPU: gtx 1050ti mobile

ATTENTION ALL VALVE INDEX USERS

After waiting for 5+ years minecraft bedrock edition is actually "playable" in vr. It's in quotes because we can't use the index controllers (please vote on this issue: MCPE-128724) but I was able to launch the game and load a world and actually move around/play for a period of time. In order to get this to work I had steamvr running, my xbox controller connected to my pc (corded and wireless both work), and then clicked the openxr shortcut. Some things to note:

  • Movement/jumping/swimming is buggy (changing settings from linear to classic made it feel less buggy)

  • Increasing my render distance to max crashed the game, increasing it to 24 chunks seemed fine so I went to 32 and it was still okay but then crashed a few mins later

  • Often times my pov/head is disconnected from my hitbox. This can lead to weird scenarios like my head going through the top block when walking through a 1x2 doorway. I think it's partly related to your starting position/facing angle in your room/playspace when you launch the game as well as being tied to how much you turn using the joystick or your head

  • Enemy pathing ai seemed broken

  • The options for hud and ui settings were confusing and left much to be desired

  • I couldn't see my fps but it felt stable, the only thing that looked weird was watching items drop to the ground when breaking blocks

I don't think any of my crashes were related to memory as I had an eye on it from time to time but it's hard to say. Needless to say it was a buggy/crashy experience but I was able to make an iron pickaxe and kill a zombie. Who knows, maybe in 5 years it might actually be good.

VR Headset: Valve Index
CPU: i7-8700k
GPU: Nvidia 1080Ti
Memory: 32GB
Storage: 500GB SSD

latest beta version of both steamvr and minecraft
 

So SteamVR 1.19 is now out of beta, and I noticed it does have a changelog entry on fixing DirectX 12 memory leak, and as far as I can tell, this is fixed.

This was an issue and Minecraft Support team completely missed it and they weren't even trying hard enough to reproduce the bug ;/ I made videos, had list of hardware and explained specifically what platform it affected which was "OpenXR & SteamVR" in the title of the bug report. Not to mention the other players also saying its not working. As you can see this was an issue with SteamVR and OpenXR running Directx12. If you notice the bug fix in SteamVR changelog under OpenXR it says "OpenXR: Fix for DirectX 12 memory leak." Minecraft Support team should have done a better job. There was nothing special todo to reproduce this bug. This affected every Minecraft player who used SteamVR and OpenXR. All Minecrfat support team had to do was OPEN the GAME on the VR platform said ABOVE. I would love to leave feedback to your employers on this so called "Resolving as Cannot Reproduce."
Proof - https://store.steampowered.com/news/app/250820/view/2969548216412141656

I am having a similar issue to this on the Valve Index. I do not see memory usage going up though. As soon as I load into the menu or (sometimes) get into a world. The game HARD CRASHES... no crash log no message. It just blinks out of existence. This happens every time I try the game regardless of what I do.

Minecraft version 1.19.1
SteamVR
Valve Index
Windows 10 Pro (21H2)

It is repeatable and I can provide video evidence if necessary.

ShinyMooTank

(Unassigned)

Community Consensus

Windows

19042.985

crash, index, memory, memory-leak, openxr, valve, vr

1.17.20.22 Beta, 1.17.20.21 Beta, 1.17.20.20 Beta, 1.17.10.23 Beta, 1.17.10.22 Beta, 1.17.10.21 Beta, 1.17.10.20 Beta, 1.17.0.58 Beta

Retrieved