Search Unity

Profiler: RefreshInternalV2 is called before InitialRefresh has been called

Discussion in 'Editor & General Support' started by Susan_Elizabeth, Jun 26, 2022.

  1. Susan_Elizabeth

    Susan_Elizabeth

    Joined:
    Mar 16, 2017
    Posts:
    7
    On my Mac I upgraded from 2021.2.19f1 to 2022.1.6f1 and now the standalone profiler complains the moment that I press the Deep Profile button. Following the upgrade it says,

    RefreshInternalV2 is called before InitialRefresh has been called and asset database isn't fully initialized.

    I'm hoping not to revert back to 2021.2.19f1, if that is even possible. That version was not profiling for a different reason, since I changed my Steam library from Facepunch.Steamworks to Steamworks.Net.

    I'm not certain what do with this error that is preventing profiling my app. It seems like today will not be a fun day.

    I am also seeing this in the Player.log

    Stopping profiler. Profiler is not able to flush data to a file or socket and exceeded maximum allowed memory for buffering.

    Please use Profiler.maxUsedMemory API or -profiler-maxusedmemory command line parameter to increase maximum allowed memory usage.
     
    mowax74 and YawnUser like this.
  2. tonytopper

    tonytopper

    Joined:
    Jun 25, 2018
    Posts:
    226
    I am noticing the same thing in 2022.1.6f1 when using the standalone Profiler.
     
  3. paulatwarp

    paulatwarp

    Joined:
    May 17, 2018
    Posts:
    135
    I'm getting this on Unity 2021.3.5f1
     
  4. jana553

    jana553

    Joined:
    May 31, 2018
    Posts:
    7
  5. paulatwarp

    paulatwarp

    Joined:
    May 17, 2018
    Posts:
    135
    Sorry, no. My only workaround is not doing a deep profile.
     
  6. YawnUser

    YawnUser

    Joined:
    Jan 9, 2021
    Posts:
    3
    I am getting this issue as well when using anything above a 2020 version. It happens whether or not I use a deep profile. Something to note is that this bug seems to cause a re-importing/re-serializing(A loading of some sort. Takes from 10-25 seconds.) of assets in the editor every time the assets folder changes.

    (I am on windows.)
     
    Last edited: Jul 9, 2022
    ilyxa_DGN likes this.
  7. MagiJedi

    MagiJedi

    Joined:
    Apr 17, 2020
    Posts:
    32
    +1 on this issue
     
  8. duckSPLASH

    duckSPLASH

    Joined:
    Jul 11, 2020
    Posts:
    14
    It wouldn't be so bad if it didn't print thousands of times a second and suck up RAM like an overclocked Dyson -_-
     
    mowax74 and YawnUser like this.
  9. mowax74

    mowax74

    Joined:
    Mar 3, 2015
    Posts:
    97
    +1 on Unity 2021.3.6f1. How can a bug that obvious find the way in the Unity xxxx.3 version, that is considered the prefered and stable version?
     
    Last edited: Aug 22, 2022
  10. Elapotp

    Elapotp

    Joined:
    May 14, 2014
    Posts:
    98
    Having the same issue on 2021.3.6f1.
    Any news on this issue?
     
  11. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    Also found in 2020.3.37f1
     
  12. kminko

    kminko

    Joined:
    May 17, 2022
    Posts:
    5
    2021.3.0f1
     
  13. Liam2349

    Liam2349

    Joined:
    Mar 10, 2016
    Posts:
    81
    I'm also getting the "RefreshInternalV2 is called before InitialRefresh has been called and asset database isn't fully initialized." error in the Standalone Profiler Console, spammed hundreds of times per second. It always crashes when closed.

    2022.1.16f1.
     
  14. orville_redenbacher

    orville_redenbacher

    Joined:
    Sep 9, 2018
    Posts:
    34
    Same issue in 2021.3.8f1. Seems to work fine if I'm not using the standalone profiler.
     
  15. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,091
    2021.3.16

    seems to be project related as doesn't happen in empty one
     
  16. atr0phy

    atr0phy

    Joined:
    Nov 5, 2014
    Posts:
    43
    2021.3.4f1

    I'm not seeing any links here to the respective bug report. Has this even been properly reported?
     
  17. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    I reported it but they couldn't reproduce, so please do make a report if you encounter it