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

Bug Deep profiling a project using multithreading stopped working in Uniity 2022.2.5

Discussion in 'Editor & General Support' started by WBonX, Feb 9, 2023.

  1. WBonX

    WBonX

    Joined:
    Aug 7, 2018
    Posts:
    32
    This are the lines of code where everything hangs after activating Deep profiling in the profiler:

    Code (CSharp):
    1. TextureGen_Tasks.Add(Task.Run(
    2.                 () =>
    3.                 Mesh_Generator.Generate_Vertex_Array(....)
    4.  
    5. ....
    6.  
    7. await Task.WhenAll(TextureGen_Tasks);
    No error is reported, threads are not executed and the checks I do afterwards wait for them.

    Never had any issue until the last version of unity, I could also deep profile before without any problem.
    I didn't touch this portion of the code in the last months.

    Is there a bug in the profiler of Unity 2022.2.5f1? Something changed and I didn't notice?
     
  2. MartinTilo

    MartinTilo

    Unity Technologies

    Joined:
    Aug 16, 2017
    Posts:
    2,096
    I'm not aware of any bugs of the sort being reported. Could you please report a bug via the Editor Menu
    Help > Report A Bug
    ?
     
  3. WBonX

    WBonX

    Joined:
    Aug 7, 2018
    Posts:
    32
    Thanks for the answer .. even if one month and a half later.

    I will eventually report a bug, but I'm working on something else right now, would have no time to follow up with the bug report.

    Some infos related to the problem would be appreciated.
    Probably the way deep profiling tasks is handled was changed in the last release/s.
     
  4. WBonX

    WBonX

    Joined:
    Aug 7, 2018
    Posts:
    32
    Upgraded to Unity Lts 2022.3.1f1 .. the problem is still present.

    Tasks / Threads are not working when deep profiling is active.