Sacred-Seed-Studio / Unity-File-Debug

Enhanced debug logging for Unity, with JSON/CSV export and HTML viewer.
https://www.assetstore.unity3d.com/en/#!/content/72250
MIT License
62 stars 9 forks source link

HMD Bug in Steam VR (Open VR) #7

Open Wandergin opened 5 years ago

Wandergin commented 5 years ago

It seems that the logger does not handle the repositioning of assets within the scene - when the HMD is removed, the elements are somehow repositioned which makes the logger crash. Stacktrace: ArgumentOutOfRangeException: Cannot be negative. Parameter name: length System.String.Substring (Int32 startIndex, Int32 length) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/String.cs:348) SSS.UnityFileDebug.UnityFileDebug.HandleLog (System.String logString, System.String stackTrace, LogType type) (at Assets/UnityFileDebug/Lib/Logger/Scripts/UnityFileDebug.cs:118) UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, LogType type, Boolean invokedOnMainThread) (at C:/buildslave/unity/build/Runtime/Export/Application.cs:121) UnityEngine.Debug:Log(Object) Valve.VR.InteractionSystem.Player:Update() (at Assets/SteamVR/InteractionSystem/Core/Scripts/Player.cs:291)

Frozenfire92 commented 4 years ago

Hi @Wandergin I suspect your issue may have been fixed with PR #9 I haven't released to the asset store yet but you can use this repo directly for now

If you don't mind sharing how you were using the logger that would be appreciated! If you don't have it anymore totally understandable :) Thanks for reporting

Wandergin commented 4 years ago

Hi Joel,

Thanks for coming back to this. So essentially this bug was related to putting on and off the VR headset (that’s when it would trigger), I could reproduce it every single time, so I just wouldn’t take the headset off until I’m done recording the output. I used HTC Vive and Unity backed by C#.

Best wishes, Marius

On Oct 31, 2019, at 3:10 PM, Joel Kuntz notifications@github.com wrote:

Hi @Wandergin https://github.com/Wandergin I suspect your issue may have been fixed with PR #9 https://github.com/Sacred-Seed-Studio/Unity-File-Debug/pull/9 I haven't released to the asset store yet but you can use this repo directly for now

If you don't mind sharing how you were using the logger that would be appreciated! If you don't have it anymore totally understandable :) Thanks for reporting

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Sacred-Seed-Studio/Unity-File-Debug/issues/7?email_source=notifications&email_token=ACFKYESBHFBN2PAHNITL6ATQRLYMRA5CNFSM4HCY6BB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECYEDRY#issuecomment-548422087, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFKYEVUYIQ2LU4PSKRUX4DQRLYMRANCNFSM4HCY6BBQ.