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

[Bug] When "Show PC Uptime" is enabled, steady high CPU usage #743

Closed
Gamersven opened this issue Mar 5, 2024 · 5 comments
Closed

[Bug] When "Show PC Uptime" is enabled, steady high CPU usage #743

Gamersven opened this issue Mar 5, 2024 · 5 comments
Labels
bug Something isn't working done Completed and included in next release

Comments

@Gamersven
Copy link

Describe the bug
If i turn on the option "Show PC Uptime" in "Wrist Overlay" i get a constant CPU Usage of about 5%.
This even if no SteamVR or VRChat is running.
Disabling this Option fixes it and the CPU usage is down again.

To Reproduce
If i turn this option on or off i get instant high/low CPU usage.
When i give my sqlite db to a friend, his CPU did not Spike, even when activating this option.
So i guess this has to do something with my PC.

Expected behavior
Dont spike my CPU usage like that.

Screenshots
Taskmgr_Off
Taskmgr_On

What version you are running
Currently running 2024-03-04T23.20 (but had issues before that a long time)
AMD R7 5800X
Windows 10 (German)

Is there additional Information i can provide to assist you in finding this bug?

@Gamersven Gamersven added the bug Something isn't working label Mar 5, 2024
@Natsumi-sama Natsumi-sama added the done Completed and included in next release label Mar 15, 2024
@Natsumi-sama
Copy link
Member

Give the latest nightly build a try, I couldn't replicate this issue but if it was the cause it should be fixed now.

@Gamersven
Copy link
Author

Hi,

thank you for trying to fix my issue.
Sadly the new nightly version is completely broken, as in it does not start anymore after the update.

The only log i got with this version is this:

2024-03-16 15:34:11.6148 [INFO ] VRCX - VRCX Nightly 2024-03-15T15.08-0b64416
Starting...
2024-03-16 15:34:11.6643 [DEBUG] VRCX.ProcessMonitor - Added process vrchat to process monitor.
2024-03-16 15:34:11.6643 [DEBUG] VRCX.ProcessMonitor - Added process vrserver to process monitor.
2024-03-16 15:34:12.6880 [INFO ] VRCX.WorldDBManager - Listening for requests on http://127.0.0.1:22500/

and it closes/crashes itself shortly after starting VRCX.

is there anything further i could do to help you?

@Natsumi-sama
Copy link
Member

Does the nightly version before this one work? can you check if your anti virus is affecting anything?

@Gamersven
Copy link
Author

Actually yeah, that was the version i was running prior.

I got it working now.
After Cloning the Repo and setting up VS and some bruteforce trying to get it trying to launch through there i got an error message that pointed me to the possible right? solution i guess.

It crashed right there:
public static void ApplyVrJavascriptBindings(IJavascriptObjectRepository repository)
{
repository.NameConverter = null;
---> repository.Register("AppApiVr", AppApiVr.Instance);
}

I dont have the exact error message anymore and i cant recreate it but it said like my System.Diagnostics.PerformanceCounter.dll could be corrupted or something like that.
Still dont know how this could happen but these steps possibly fixed it:
https://learn.microsoft.com/en-us/troubleshoot/windows-server/performance/manually-rebuild-performance-counters

Taskmgr_xgUMB9sMwA Newest Nightly without my CPU issue and with Uptime enabled.

Im sorry for your troubles.
Thank you very much <3
Greetings from Germany

@Natsumi-sama
Copy link
Member

Thanks for looking deep into it makes my life much easier, interesting.... I guess I'll add Try Catch error handling to the performance counter stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working done Completed and included in next release
Projects
None yet
Development

No branches or pull requests

2 participants