Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question About Log Analysis

Discussion in 'Windows' started by wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg, May 19, 2023.

  1. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Snipaste_2023-05-19_15-27-53.png When a packaged windows program gets stuck, the last log entry in Player.log is:
    Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
    Unloading 2447 unused Assets to reduce memory usage. Loaded Objects now: 302505.
    Total: 191.136000 ms (FindLiveObjects: 39.397600 ms CreateObjectMapping: 37.837700 ms MarkObjects: 110.118300 ms DeleteObjects: 3.781300 ms)。Is it because there are too many objects。I have access to millisecond vehicle trajectory data, currently not using object pooling technology, but according to certain trigger conditions to regularly clean the GC: with System.GC.Collect();
     
  2. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Can anyone answer me, what does it mean to have this information in the playe.log file
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    That message gets printed when you call Resources.UnloadUnusedAssets or when you load a new scene. That alone shouldn't be a reason why your game gets stuck.

    Did you verify the logic is stuck? The rendering? Is the build using 0% CPU once it happens?
     
  4. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Thank you for your answer, I also want to know, 2021.3.8 version of Unity program, packaged Windows version of exe program, when he crashes, where can I see the crash log, need to write code or change the package Settings?
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  6. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    There is also a problem, Unity package of the Windows version of the program, at the frequency of 100ms, access to 1000 vehicles data, there will be an abnormal phenomenon, but some machines are not responding, but on some machines, there will be a pop-up form, the picture is as follows, click to confirm, the program form disappears, but the background process comes in, these two phenomena, Is it because of the difference in the underlying dependence of the computer inventory? Look forward to your answer 223311.png
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    I can't really tell what is happening without the log file, unfortunately.
     
  8. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
     

    Attached Files:

  9. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    There's nothing interesting in the log file, unfortunately. When that dialog pops up, can you open the task manager, go to the details tab, find the game process, right click it, press "Create Dump File" and send that file to me?
     
  10. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    • The Dump file is too big,7.14GB,There is also a question, I have written a log script, has uploaded, can I use this script to capture the crash log of the packaging program
     

    Attached Files:

    Last edited: Jul 27, 2023
  11. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    You can compress the dump using 7-zip and it should become much smaller.
     
  12. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Can you take a look at this crash log for me? Thanks
     

    Attached Files:

  13. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Hi, I tried looking at it but it seems corrupted... all of my debuggers refuse to open it. How did you capture it?
     
  14. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
     

    Attached Files:

  15. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    That is the same dump.
     
  16. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Does Player.log contain useful information
     
  17. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    It does not :(
     
  18. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    • The crash log path is as follows
    微信图片_20230817110744.png
     

    Attached Files:

    Last edited: Aug 17, 2023
  19. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Both dumps seem to point to a crash inside webrtc.dll, which seems to be a plugin you're using in your project. There's an unhandled C++ exception that doesn't get caught. Unfortunately I do not have access to webrtc.dll source code or symbols so I can't find any further details.
     
  20. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    I used unity's RenderStream 3.1.0-exp.5 plugin
     
  21. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Can you report a bug in that case?
     
  22. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    • When the packaged Windows program crashes, it is directly retired
     
  23. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  24. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Hello, my package Window program, there will be no response, and in player.log, Curl error 6: Could not resolve host: cdp.cloud.unity3d.com, do you know the reason
     

    Attached Files:

  25. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    "Curl error 6: Could not resolve host: cdp.cloud.unity3d.com" is harmless, it just means that the computer you are running the game on cannot reach our analytics servers. You can safely ignore it.
     
  26. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Snipaste_2023-09-11_14-18-47.png
    As shown in the GIF below, the resolution of my monitor is 2560*1440. When the resolution is 1920*1080, the UI clicks normally. When CHANGING to 1920*1000, clicking on the rightmost area of the form does not work, can you tell me why


    resolution.gif
     
  27. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
  28. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    Thank you for your answer. One more question. I use ray detection, but when I shake the mouse quickly, or zoom away from the camera perspective, the ray detection point will be on the screen, not on the ground, as shown in the GIF below 录制_2023_09_08_19_20_44_69220239121046221.gif Snipaste_2023-09-12_10-52-40.png
     
  29. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Honestly, I have no idea. Did you try debugging by printing out Ray values to see if any are off?
     
  30. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    My keyboard and mouse events are the ones you just pushed to Unity from the Web side by your RenderStreaming plugin. Is this the cause
     
  31. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    The log file, what these means: [ALLOC_TEMP_UnityGfxDeviceWorker], [ALLOC_TEMP_AssetGarbageCollectorHelper] x 15、[ALLOC_TEMP_Background Job.Worker 5]。Recently, my project had a crash, and the journal would write a bunch of the same entries。The version of Unity I'm using has been upgraded from 2021.3.8 to 2021.3.18
     

    Attached Files:

  32. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    They;re just memory usage statistics that are printed on exit. They shouldn't have anything to do with your crash.
     
  33. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    The program crashed. Can this log file help analyze the cause of the crash?
     

    Attached Files:

  34. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    That looks like system running out of memory - there are a bunch of out of memory errors printed before the game finally crashes. Do you know how much memory was the game using when it crashed and how much free system memory was available?
     
  35. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    NotSupportedException while resolving binding 'Move:<Keyboard>/downArrow[;Keyboard&Mouse]' in action map 'DefaultInputActions (UnityEngine.InputSystem.InputActionAsset):player'
    UnityEngine.InputSystem.InputSystem:AddDevice<UnityEngine.InputSystem.Mouse> (string)

    NotSupportedException: Control count per binding cannot exceed byte.MaxValue=255
    UnityEngine.InputSystem.InputActionState+BindingState.set_controlCount (System.Int32 value) (at Library/PackageCache/com.unity.inputsystem@1.5.0/InputSystem/Actions/InputActionState.cs:3307)
    UnityEngine.InputSystem.InputBindingResolver.AddActionMap (UnityEngine.InputSystem.InputActionMap actionMap) (at Library/PackageCache/com.unity.inputsystem@1.5.0/InputSystem/Actions/InputBindingResolver.cs:391)
    UnityEngine.InputSystem.InputSystem:AddDevice(String) Snipaste_2023-10-25_11-02-12.png
    Do you know the cause of this error,thank you
     
  36. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Can you make a dedicated post in https://forum.unity.com/forums/input-system.103/? Input team thinks they will have to ask you some follow up questions, they are unsure why this is happening.
     
  37. wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    wechat_os_Qy02O8KF-s1NNL90pTlxkQhxg

    Joined:
    Mar 23, 2023
    Posts:
    67
    This Log is now printed whenever you uninstall a resource:"Releasing render texture that is set to be RenderTexture.active!". what's the impact
     

    Attached Files: