Search Unity

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

Resolved URP error spamming issue

Discussion in 'SRP Dev Blitz Day 2022 - Q&A' started by optimise, Sep 29, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    Sometimes u will get error spamming issue when enter play mode at URP. Not sure about HDRP but I believe it also have similar issue. You need to tick reload domain or restart unity to fix it which is kind of annoying. This issue still exist at latest 2021.3 LTS version. Any plan to properly fix it to make sure this error spamming will never happen again? I will migrate my project to 2022.2 very soon. I hope 2022.2 won't happen this error spamming anymore.
     
  2. Jonas_Sid

    Jonas_Sid

    Mobile Graphics Developer Unity Technologies

    Joined:
    May 13, 2015
    Posts:
    44
    Hi! Could you elaborate more on what error you are getting?
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    Here's the error
    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. UnityEngine.Rendering.DebugManager.UpdateActions () (at Library/PackageCache/com.unity.render-pipelines.core@7.4.3/Runtime/Debugging/DebugManager.Actions.cs:176)
    3. UnityEngine.Rendering.DebugUpdater.Update () (at Library/PackageCache/com.unity.render-pipelines.core@7.4.3/Runtime/Debugging/DebugUpdater.cs:18)
     
  4. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,195
    I've never bothered getting around to reporting this bug since it's rare and a pain to repro since it requires a big project. But I believe that it's 100% reproducible.

    Steps are:
    - Use URP (we're on 2D, don't know if that matters)
    - Turn off domain reloading
    - Make a build
    - Enter play mode

    And UnityEngine.Rendering.DebugManager will spam errors forever.


    The DebugManager is also an anti-feature for us; we've seldom want or use it, but sometimes testers bring it up by accident and since they don't know what they pressed to open it, they're unable to close it and have to close the game to make it go away.
     
  5. Andre_Mcgrail

    Andre_Mcgrail

    Unity Technologies

    Joined:
    Dec 9, 2016
    Posts:
    244
    Hmm this is interesting, I've been in 21.3.6f1 all week and not running into issues with the DebugManager, which version specifically are you using? Might be worth submitting a bug report as it might be something that resides in the project or a specific configuration that is leading to this.

    To unblock you, you might be able to remove the debug game object that is spawned, I've used this in the past when needing to unblock myself when the DebugManager was buggy.
     
  6. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    Currently I'm using 201.3.8 and sometimes I will still getting error spamming. I think need to rewrite this DebugManager to make sure this error spamming not happen again.
     
  7. KimmoFactor

    KimmoFactor

    Joined:
    Dec 29, 2020
    Posts:
    38
  8. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    From the thread above I can see there was this issue reported and it's already fixed. If that case is not the same as the issue described here we will need a bug report indeed to figure out what's going on and timeline resolve this.
     
    Jonas_Sid likes this.
  9. arttu_p

    arttu_p

    Unity Technologies

    Joined:
    Jan 15, 2021
    Posts:
    21
    For awareness, DebugManager and DebugUpdater are related to Rendering Debugger - documentation explains how to open/close it: https://docs.unity3d.com/Packages/c...eatures/rendering-debugger.html#how-to-access

    It's also possible to disable this at runtime by using this: https://docs.unity3d.com/Packages/c...Engine_Rendering_DebugManager_enableRuntimeUI
    Code (CSharp):
    1. DebugManager.instance.enableRuntimeUI = false;
     
  10. arttu_p

    arttu_p

    Unity Technologies

    Joined:
    Jan 15, 2021
    Posts:
    21
    I think this error was fixed a while back but sadly we failed to backport the fix to 2021. I made the backport a few weeks back after getting a report and the fix should be there in the next 2021.3 LTS release.
     
  11. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    Do u mean 2021.3.11? Btw does fixed at 2022.2.0b8?
     
  12. arttu_p

    arttu_p

    Unity Technologies

    Joined:
    Jan 15, 2021
    Posts:
    21
    Yes should be in 2021.3.11. I think the original fix went in already in 2022.1 but that wasn't backported.
     
  13. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,195
    The problem is when say we've sent the build to a sound designer or tester that's working with the game, and they hit the shortcut for some reason. I've done it by mistake when reaching for the ctrl+prtscrn shortcut that I believe is default for "start screen capture" on some screen recording software, and I've had several Discord messages from people going "why did you put in this window, I can't close it?". The instinct when a window you've never seen before and didn't want shows up is not to go googling for how to close it - especially since there's no way to know what the window is called.

    A great help would be if it
    a) had an X button in the upper right corner so it could be closed like any other window
    b) had a "press BUTTON to close" tooltip so people knew how to close it with a shortcut.
    c) had a header with the name "Unity Rendering Debugger" so people understood what they had opened
     
  14. arttu_p

    arttu_p

    Unity Technologies

    Joined:
    Jan 15, 2021
    Posts:
    21
    That's solid feedback, thank you!
     
  15. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,029
    Alright. So I can confirm that 2022.2.0b8 has the fix.
     
    arttu_p likes this.