Getting massive flood of XRStats::SetStatFloat failed warnings and lag when i remove then put on my Oculus HMD

When i remove my HMD and put it back on again i get a massive flood of warnings: XRStats::SetStatFloat failed. Stats queue full! Stats for this frame will be lost.

I am using unity’s XR integration toolkit for the XR Rig.

I am also getting some serious “lag” (slow visual updates along with the spinning hourglass in the headset) during this time? I’m not sure if the number of warnings is causing the lag or if they are related at all, but I have not seen one without the other.

Let me know if you need more info

I’m getting this exact flood of warnings as well along with the lag. The lag only appears when I have the console window visible. I’m testing with an Oculus Quest with Link.

“:XRStats::SetStatFloat failed. Stats queue full! Stats for this frame will be lost.”

I had to delete the UserSetings folder…

In this thread (link text), User AVOlink proposes a solution that worked for me. Remove the Test Framework package and it should fix this problem. Once you remove it, close your project (maybe even Unity completely), and then re-open it. I tested this using Unity 2019.3 with an Oculus Rift S, on a Windows 10 machine.

1: https://forum.unity.com/threads/disable-log-flood-xrstats-setstatfloat-failed-stats-queue-full-stats-for-this-frame-will-be-lost.756440/,In this thread (link text), User AVOlink proposes a solution that worked for me. Remove the Test Framework package and it should fix this problem. Once you remove it, close your project (maybe even Unity completely), and then re-open it. I tested this using Unity 2019.3 with an Oculus Rift S, on a Windows 10 machine.