Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
139 stars 2 forks source link

Unity Crash upon swapping from Controllers to Hand Tracking #3066

Open Zyro1331 opened 3 weeks ago

Zyro1331 commented 3 weeks ago

Describe the issue.

When swapping from Hand Tracking, to Controllers, than back to Hand Tracking, Resonite will Immediately crash upon closing the Quest Universal Menu.

To Reproduce

  1. Launch Resonite with Hand Tracking, don't touch your controllers yet.
  2. Once Resonite has finished booting and you can see your hands, grab your controllers from your desk.
  3. Swap over from Hand Tracking to Controllers, your interactions carry on being just fine for this step.
  4. Try to switch back to Hand Tracking without Crashing.

Best way I've gotten the issue to be more reproducible is by disabling the Quest's auto-switch feature, and just using the Quick Settings to swap between controllers and hands manually. It becomes more common to crash when closing or opening the Quest's Universal Menu while Resonite is running. If you don't crash the first time, try to repeat Steps 3 and 4 a few times to see if anything changes.

Expected behavior

N/A

Screenshots

No response

Resonite Version Number

Beta 2024.10.10.1348

What Platforms does this occur on?

Windows

What headset if any do you use?

Meta Quest 3 + SteamVR Beta 2.8.5 + SteamLinkVR Beta 2.0.11

Log Files

MANGOVRG - 2024.10.10.1348 - 2024-10-10 18_39_57.log Player.log

Additional Context

No response

Reporters

@zyro1331

Frooxius commented 3 weeks ago

Can you include the crash dump too please?

Does this happen even if you don't open the Quest Universal Menu at all?

ModernBalloonie commented 3 weeks ago

I jut reproduced this by using contollers, switching to hand tracking, Using contollers again, then switching back to hand tracking.DESKTOP-QBGCSAQ - 2024.10.10.1348 - 2024-10-10 19_07_06.log

ModernBalloonie commented 3 weeks ago

Oh, hmm. I then got a unity crash myself after going into the oculus menu.DESKTOP-QBGCSAQ - 2024.10.10.1348 - 2024-10-10 19_11_36.log

Zyro1331 commented 3 weeks ago

Player.log crash.dmp error.log Here's the full dump and logs from another similar crash. I'll try to get a video of what I was doing before the crash prepared but dealing Meta Quest file transfer jank

ohzee00 commented 3 weeks ago

It seems weirdly inconsistent, I am seeing crashes too when it switches but only sometimes?

I had one happen when opening up the Quest Universal Menu however this one I just had a crash when turning on my index controllers while I had handtracking: DESKTOP-V75BHJO - 2024.10.10.1348 - 2024-10-10 22_07_27.log Player.log crash.dmp error.log

Note, I am using Steamvr beta with the Quest pro, I started with handtracking then turned on my controller for this test.

ModernBalloonie commented 3 weeks ago

I had my hand turn into a tracker, funnily enough. It appears that only sometimes it does this.

Frooxius commented 3 weeks ago

Also another important question - does this NOT occur on the main build at all?

ohzee00 commented 3 weeks ago

Also another important question - does this NOT occur on the main build at all?

I just tested on main and I was able to recreate the above crash by switching between my index controllers and hands. (I turn off the controllers and try to go into my quest dash to refresh it)

Before when I tested on main a month or so ago with the same conditions I crashed before getting past the loading screen, I mistakenly thought it would be the same so I did not test it on main originally.

I do not have a crash dump weirdly enough but I do have a player.log of the MAIN BUILD crashing here:

Player.log and regular log: DESKTOP-V75BHJO - 2024.10.8.1349 - 2024-10-10 23_35_09.log

Frooxius commented 3 weeks ago

Hmm... This one seems pretty weird so far. The crash is coming from UnityPlayer.dll itself, which might indicate this is a bug in Unity itself, which would make fixing this problematic.

FlameSoulis commented 3 weeks ago

I'll try to replicate it, but this happened a month ago when I tried it for a friend. I can confirm the same occurs even if you don't use the pre-release so that it may be unrelated to anything involving the upgrade.

shiftyscales commented 3 weeks ago

This sounds like a duplicate of #2041. I don't think this is a new issue with prerelease, @Frooxius @FlameSoulis @ohzee00 @Zyro1331 @ModernBalloonie.

FlameSoulis commented 3 weeks ago

That'd add up to the experiences I was having a month ago. Always on top of things, Shifty!

Frooxius commented 3 weeks ago

Yeah based on this I don't think it's any of the pre-release stuff, so I'll remove the label. We might want to merge these up, but I think it might be better to just leave this one for the crash specifically, because the other part (the hands not switching) is fixed, so they're technically two separate problems anyway.

ko-tengu commented 2 weeks ago

I've managed to cause this crash in the pre-release by causing controller disconnects without using the hand tracking. I can leave my guardian area or lock the headset a few times and it's a pretty consistent crash.

BUFU - 2024.10.10.1348 - 2024-10-11 11_35_11.log Player.log crash.dmp error.log Player.log

edit: for the sake of science I reproduced this in the current release build also

BUFU - 2024.10.8.1349 - 2024-10-11 13_12_12.log crash.dmp error.log Player.log

ModernBalloonie commented 6 days ago

Sadly with the steamVR update, this happens with it too...

Frooxius commented 6 days ago

@ModernBalloonie Does this happen even when not swapping the hand/controller tracking?

ModernBalloonie commented 6 days ago

@ModernBalloonie Does this happen even when not swapping the hand/controller tracking?

It happens with both swapping to hand tracking (sometimes) and also going to the oculus menu.

Frooxius commented 6 days ago

@ModernBalloonie Do you swap the hand tracking when going to the Oculus menu?

ModernBalloonie commented 6 days ago

@ModernBalloonie Do you swap the hand tracking when going to the Oculus menu?

Nope, it can just happen when hitting the oculus button.

Frooxius commented 6 days ago

Can you provide logs please?

ModernBalloonie commented 6 days ago

Can you provide logs please?

Do you want the player.log as well?

Frooxius commented 6 days ago

Yes. That's important one for crashes.

ModernBalloonie commented 6 days ago

DESKTOP-QBGCSAQ - 2024.10.23.15 - 2024-10-25 18_41_42.log Player.log

ModernBalloonie commented 6 days ago

Actually, it must have something to do with the hand tracking because I just restarted SteamVR and never initalized hand tracking in the first place and now it seems to not crash... hmm... Sorry, correction: in Resonite i never used the hand tracking on that launch, but steamVR still had hand tracking as another controller at that point, it just wasn't being used.

ModernBalloonie commented 6 days ago

Yeah, I just confirmed it. Sorry, my bad.

Frooxius commented 5 days ago

@ModernBalloonie Thanks for the additional info. Can you describe what happened for the logs you sent? Did you ever switch to hand tracking?

I only see to one set of controllers being connected, which indicates that there's no swap to hand tracking from the controller registered, but I want to confirm.

Frooxius commented 5 days ago

@ModernBalloonie Also do you have a crash dump? I don't see anything in Player.log, not even indication of crash.

Mrdabup commented 5 days ago

Player.log error.log crash.dmp DESKTOP-893KKM6 - 2024.10.23.15 - 2024-10-26 16_48_46.log Here are my log files as requested

ModernBalloonie commented 5 days ago

@ModernBalloonie Thanks for the additional info. Can you describe what happened for the logs you sent? Did you ever switch to hand tracking?

I only see to one set of controllers being connected, which indicates that there's no swap to hand tracking from the controller registered, but I want to confirm.

So I never switched to hand tracking in Resonite itself on that launch, but in steam VR it had the hands greyed out, They un-grey out when you switch to hand tracking though, it seems like since I switched to hand tracking before I even opened Resonite, it causes the crash if they're "initialized" in steamVR.

If I start resonite without ever having used the hand tracking in SteamVR on that particular launch of SteamVR, it will not crash.

FlameSoulis commented 5 days ago

Yeah... the issue is that the Quest loves to turn hand tracking on by default, and if you are in full body tracking, you get greeted with Valve's still unsolved chest tracker screen. This was how I could tell with one of the crashes I was about to meet the Unity death screen.

DEMONDOGGO-PC - 2024.10.23.15 - 2024-10-27 03_50_24.log error.log Player.log crash.dmp

ModernBalloonie commented 4 days ago

Hey so, Froox, I sent you some stuff on Telegram related to the controller crash as I was kind of running into github file size issues.