Skip to content

Post build analysis hangs indefinitely #229

@fbmartint

Description

@fbmartint

If I build from editor, then after build is completed the post build analysis will run and then hang. A frozen Unity progress bar on my screen with the timer counting up, and nothing else happening.
I have let it run for 2 hours after my build being completed, without any changes.
Unity is consuming no PC resources at this point.
When looking in the Editor.log, then last entry was:

[Project Auditor] Module Build Report analysis took: 0.0926636 seconds.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
[removed line but is not relevant]
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Unity.ProjectAuditor.Editor.ProjectAuditor/<>c__DisplayClass13_2:<AuditAsync>b__3 (Unity.ProjectAuditor.Editor.AnalysisResult) (at Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs:156)
Unity.ProjectAuditor.Editor.ProjectAuditor:AuditAsync (Unity.ProjectAuditor.Editor.AnalysisParams,Unity.ProjectAuditor.Editor.IProgress) (at Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs:185)
Unity.ProjectAuditor.Editor.ProjectAuditor:Audit (Unity.ProjectAuditor.Editor.AnalysisParams,Unity.ProjectAuditor.Editor.IProgress) (at Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs:74)
Unity.ProjectAuditor.Editor.ProjectAuditor:Audit (Unity.ProjectAuditor.Editor.IProgress) (at Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs:59)
Unity.ProjectAuditor.Editor.ProjectAuditor:DelayedPostBuildAudit () (at Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs:214)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()

(Filename: Library/PackageCache/com.unity.project-auditor@1.0.0/Editor/API/ProjectAuditor.cs Line: 156)

Steps to reproduce the behavior:

  1. Start build using BuildPipeline.BuildPlayer
  2. Wait for build to finish
  3. Note Project Auditor starting post build audit
  4. Wait indefinitely

Expected behavior
Project Audit should finish, close, and write out the correct report.
Instead it hangs until I kill UnityEditor.exe through task manager.

Image

Information (please complete the following information):

  • OS: Windows
  • Unity version 2021.3.16f1
  • Project Auditor version 1.0.0

Additional context
We are building through a custom build process script, but I have made sure there are no operations after calling BuildPipeline.BuildPlayer, just to make sure nothing would interfere with the audit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions