vrcx-team / VRCX

Friendship management tool for VRChat
MIT License
1.04k stars 189 forks source link

[Bug] VRCX crashes when VRChat is Open on Version 2024.10.25 #979

Open Aussywoo opened 1 week ago

Aussywoo commented 1 week ago

Description If VRCX is running when I load up VRChat (through SteamVR), it will crash once the game opens and will not be usable again until I close VRC. This does not occur when SteamVR is running without VRChat. Downgrading to 2024.10.11 seems to avoid this issue upon initial A/B testing.

Steps to Reproduce:

  1. Have an instance of VRCX 2024.10.25 running.
  2. Open SteamVR (and presumably have some sort of headset connected. I did this with and without, both with the same results).
  3. Open VRChat.
  4. When VRChat "fully loads" (i.e. the game screen comes up), VRCX immediately crashes and closes.
  5. Attempts to reopen VRCX result in a window that opens and closes immediately.

Expected behavior VRCX should be able to stay open and usable when VRChat is running.

What version you are running 2024.10.25 (but 2024.10.11 also exhibits this behavior)

Myrkie commented 1 week ago

try doing this here, it could be an issue with GPU acceleration https://github.com/vrcx-team/VRCX/issues/971#issuecomment-2453705980

you can also disable it by going to %appdata%\VRCX opening VRCX.json and setting VRCX_DisableGpuAcceleration to true then restart VRCX if you wish for it to persist after updates.

Aussywoo commented 1 week ago

Okay, I retested everything with --disable-gpu in the VRCX.exe shortcut. That seems to have fixed it. Worthy to note that without GPU acceleration disabled, even 2024.10.11 is buggy too. I'm not sure why this suddenly became an issue, as I'm sure it previously worked on this version. Perhaps it's on VRC's side.

I notice that the --disable-gpu flag is not persistent through updates. I'll change the config json instead from here on forward. Thanks!

Natsumi-sama commented 2 days ago

Added option to revert to how the overlay used to work in Settings -> General -> Disable VR Overlay GPU Acceleration.

TheXev commented 1 day ago

I am experiencing this issue even on clean restarts. I'm clueless as to why this is suddenly happening.

Myrkie commented 1 day ago

Added option to revert to how the overlay used to work in Settings -> General -> Disable VR Overlay GPU Acceleration.

did you try the above changes?

TheXev commented 1 day ago

I just started it with --disable-gpu in the command line. We'll give it a go. I'd like to note I am on an AMD GPU... is this specific to AMD or is this also happening on nVidia cards?

I would also like to note that VRCX loaded WAYYY faster then normal with --disable-gpu set.

Myrkie commented 1 day ago

its usually an issue with laptops that use GPU Switching technology such as Nvidia Optimus and AMD Enduro, the exact cause of it is unknown and its not very straight forward to debug for so many machines.

Aussywoo commented 1 day ago

I just started it with --disable-gpu in the command line. We'll give it a go. I'd like to note I am on an AMD GPU... is this specific to AMD or is this also happening on nVidia cards?

I would also like to note that VRCX loaded WAYYY faster then normal with --disable-gpu set.

Also keep in mind that both using --disable-gpu and configuring it directly in the .json file are not persistent. The nightly build introduces the ability to permanently disable GPU acceleration in the settings menu.

TheXev commented 21 hours ago

I just installed the nightly build. Even with --disable-gpu set, it is still crashing on the current nightly build.

Natsumi-sama commented 21 hours ago

Try this option Settings -> General -> Disable VR Overlay GPU Acceleration

TheXev commented 21 hours ago

Try this option Settings -> General -> Disable VR Overlay GPU Acceleration

I just finished trying this option. I am still crashing frequently. I confirmed it was enabled in the settings, restarted with it on... no real change. :/

Natsumi-sama commented 21 hours ago

Could you try disable the SteamVR overlay to see if that's the cause?

TheXev commented 20 hours ago

Could you try disable the SteamVR overlay to see if that's the cause?

It didn't help at all. I would like to note that I have not run VRChat or SteamVR at all, and this is from a cold boot/reboot (I'm setup for a true cold boot in my Windows settings).

Natsumi-sama commented 20 hours ago

Send us a crashlog from%localappdata%\CrashDumps\

TheXev commented 20 hours ago

I do not appear to have any crash logs generated from VRCX O_o;

TheXev commented 19 hours ago

NM, weird. Somehow the "Minimize to tray when closing" option got unticked. I just realized this. I'll monitor to see if that was my issue all along. I have NO idea how this got unticked when I've had it ticked for years.

Natsumi-sama commented 19 hours ago

right, yea most likely that JSON config file corrupting.