Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct here to familiarize yourself with the rules and how to post constructively.

  2. Unity 2022.1 is now available as the latest Tech release.
    Dismiss Notice
  3. Improve your project's performance with our new guide on profiling in Unity.
    Dismiss Notice

Debug.Log prints full stack trace in console (bug?!)

Discussion in 'Editor & General Support' started by PizzaPie, Dec 18, 2021.

  1. PizzaPie

    PizzaPie

    Joined:
    Oct 11, 2015
    Posts:
    92
    So out of the blue debug logs started printing full stack trace and not omitted one
    ex.:

    Code (CSharp):
    1. Using Facebook Unity SDK v11.0.0 with FBUnityEditorSDK/11.0.0
    2. 0x00007ff78ba550dc (Unity) StackWalker::GetCurrentCallstack
    3. 0x00007ff78ba5b279 (Unity) StackWalker::ShowCallstack
    4. 0x00007ff78c24dd83 (Unity) GetStacktrace
    5. 0x00007ff78d14a7ca (Unity) DebugStringToFile
    6. 0x00007ff78bbe07dd (Unity) DebugLogHandler_CUSTOM_Internal_Log
    7. 0x000001e392f6384b (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    8. 0x000001e392f6377b (Mono JIT Code) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    9. 0x000001e392f634c0 (Mono JIT Code) UnityEngine.Logger:Log (UnityEngine.LogType,object)
    10. 0x000001e392f63388 (Mono JIT Code) UnityEngine.Debug:Log (object)
    11. 0x000001e392f9bd33 (Mono JIT Code) Facebook.Unity.FacebookLogger/DebugLogger:Info (string)
    12. 0x000001e392f9bcf0 (Mono JIT Code) Facebook.Unity.FacebookLogger:Info (string)
    13. 0x000001e392f9b9fb (Mono JIT Code) Facebook.Unity.FB:LogVersion ()
    14. 0x000001e392f97a8b (Mono JIT Code) Facebook.Unity.FB/CompiledFacebookLoader:Start ()
    15. 0x000001e392f6c940 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    16. 0x00007ffeb953e640 (mono-2.0-bdwgc) [mini-runtime.c:2812] mono_jit_runtime_invoke
    17. 0x00007ffeb94c2ad2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke
    18. 0x00007ffeb94cbb2f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke
    19. 0x00007ff78b9a1534 (Unity) scripting_method_invoke
    20. 0x00007ff78b99cba1 (Unity) ScriptingInvocation::Invoke
    21. 0x00007ff78b973a73 (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
    22. 0x00007ff78b973ba8 (Unity) MonoBehaviour::InvokeMethodOrCoroutineChecked
    23. 0x00007ff78b96eca2 (Unity) MonoBehaviour::DelayedStartCall
    24. 0x00007ff78b4fc7c4 (Unity) DelayedCallManager::Update
    25. 0x00007ff78b6ef47f (Unity) `InitPlayerLoopCallbacks'::`2'::FixedUpdateScriptRunDelayedFixedFrameRateRegistrator::Forward
    26. 0x00007ff78b6d8b5c (Unity) ExecutePlayerLoop
    27. 0x00007ff78b6d8c33 (Unity) ExecutePlayerLoop
    28. 0x00007ff78b6ddd59 (Unity) PlayerLoop
    29. 0x00007ff78be55921 (Unity) PlayerLoopController::UpdateScene
    30. 0x00007ff78be43f93 (Unity) PlayerLoopController::EnterPlayMode
    31. 0x00007ff78be510e1 (Unity) PlayerLoopController::SetIsPlaying
    32. 0x00007ff78be54155 (Unity) Application::TickTimer
    33. 0x00007ff78c253ac1 (Unity) MainMessageLoop
    34. 0x00007ff78c2576f6 (Unity) WinMain
    35. 0x00007ff78ddc5782 (Unity) __scrt_common_main_seh
    36. 0x00007fff267a7034 (KERNEL32) BaseThreadInitThunk
    37. 0x00007fff28742651 (ntdll) RtlUserThreadStart
    38.  

    Jump to code on double click doesn't work either.
    Debug.LogError works fine.
    Deleting .vs files and solution file doesn't fix the problem.

    Unity 2021.1.3f1
    Visual Studio 2019 16.11
    Visual Studio Editor (Unity package) 2.0.12
     
    Last edited: Jan 12, 2022
unityunity