Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Unity Crash upon swapping from Controllers to Hand Tracking

Open Zyro1331 opened this issue 1 year ago • 14 comments

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

Zyro1331 avatar Oct 11 '24 02:10 Zyro1331

Can you include the crash dump too please?

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

Frooxius avatar Oct 11 '24 02:10 Frooxius

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 avatar Oct 11 '24 02:10 ModernBalloonie

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

ModernBalloonie avatar Oct 11 '24 02:10 ModernBalloonie

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

Zyro1331 avatar Oct 11 '24 02:10 Zyro1331

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.

ohzee00 avatar Oct 11 '24 02:10 ohzee00

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

ModernBalloonie avatar Oct 11 '24 02:10 ModernBalloonie

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

Frooxius avatar Oct 11 '24 03:10 Frooxius

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

ohzee00 avatar Oct 11 '24 03:10 ohzee00

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.

Frooxius avatar Oct 11 '24 03:10 Frooxius

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.

FlameSoulis avatar Oct 11 '24 04:10 FlameSoulis

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

LexiBasilisk avatar Oct 11 '24 04:10 LexiBasilisk

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

FlameSoulis avatar Oct 11 '24 04:10 FlameSoulis

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.

Frooxius avatar Oct 11 '24 05:10 Frooxius

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

ko-tengu avatar Oct 11 '24 15:10 ko-tengu

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

ModernBalloonie avatar Oct 26 '24 01:10 ModernBalloonie

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

Frooxius avatar Oct 26 '24 01:10 Frooxius

@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.

ModernBalloonie avatar Oct 26 '24 01:10 ModernBalloonie

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

Frooxius avatar Oct 26 '24 01:10 Frooxius

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

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

ModernBalloonie avatar Oct 26 '24 01:10 ModernBalloonie

Can you provide logs please?

Frooxius avatar Oct 26 '24 01:10 Frooxius

Can you provide logs please?

Do you want the player.log as well?

ModernBalloonie avatar Oct 26 '24 01:10 ModernBalloonie

Yes. That's important one for crashes.

Frooxius avatar Oct 26 '24 01:10 Frooxius

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 avatar Oct 26 '24 02:10 ModernBalloonie

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

ModernBalloonie avatar Oct 26 '24 02:10 ModernBalloonie

@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 avatar Oct 26 '24 17:10 Frooxius

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

Frooxius avatar Oct 26 '24 17:10 Frooxius

@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.

ModernBalloonie avatar Oct 27 '24 08:10 ModernBalloonie

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

FlameSoulis avatar Oct 27 '24 11:10 FlameSoulis