Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VR_Init() memory leak on failure? #310

Open
GimpMaster opened this issue Nov 12, 2016 · 2 comments
Open

VR_Init() memory leak on failure? #310

GimpMaster opened this issue Nov 12, 2016 · 2 comments
Assignees

Comments

@GimpMaster
Copy link

I am creating a background application that monitors tracked devices. When I initialize I have a simple check to make sure steamVR is even running. It is as follows:

        vr::EVRInitError eVRInitError;
	vr::VR_Init(&eVRInitError, vr::VRApplication_Background);
	if (!vr::VRSystem() || eVRInitError != vr::VRInitError_None)
	{
		vr::VR_Shutdown();
		return;
	}

The issue I am seeing is when it fails it leaks a little bit of memory. I have tried this with and withour vr::VR_Shutdown(). If I bring it to the extreme example of running this 10 times a second it leaks about 1 Meg of RAM per second. The output from visual studio shows the steamVR dll's loading and unloading but there is some residual memory loss.

How have other people checked for steam running without killing their application if it is not?

@jeremyselan jeremyselan self-assigned this Nov 16, 2016
@Kegetys
Copy link

Kegetys commented Nov 16, 2016

I also see this issue and I reported it months ago here: #195, but nobody seems to have done anything about it.

@isometriq
Copy link

Added some of my observations on issue #195
My leak experience was located in the worker threads spawned when calling ::init() ..still not resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants