Search Unity

Bug Unity 2022.3 Name Files as hashes broken - solved

Discussion in 'Web' started by Johannski, Jun 10, 2023.

  1. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    I tested Unity 2022.3.0f1 & 2022.3.1f1 for WebGL builds. When enabling NameFilesAsHashes in the WebGL project settings, the build fails with the following error:

    Code (CSharp):
    1. Internal build system error. Backend has requested a buildprogram run 6 times.
    2. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
    I reproduced this problem with an empty unity project, that just has this one setting changed (link). I also created a bug report (report number IN-43512). I have to say, I'm a bit surprised something so basic is missed in an LTS release as I believe most bigger projects use this setting to avoid caching problems. I hope this can be resolved soon. :(

    Code (CSharp):
    1. ***Player size statistics***
    2. Level 0 'Assets/Scenes/SampleScene.unity' uses 202.8 KB compressed / 2.6 MB uncompressed.
    3. Total compressed size 203.1 KB. Total uncompressed size 2.6 MB.
    4. info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
    5.       Request starting HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc -
    6. info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0]
    7.       Executing endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    8. info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1]
    9.       Executed endpoint 'gRPC - /UnityILPP.PostProcessing/Ping'
    10. info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
    11.       Request finished HTTP/2 POST http://ilpp/UnityILPP.PostProcessing/Ping application/grpc - - 200 - application/grpc 0.3856ms
    12. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --profile="Library/Bee/backend1.traceevents" Player
    13. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    14. Rebuilding DAG because FileSignature timestamp changed: Library/Bee/Player80de4bc8-inputdata.json
    15. *** Tundra requires additional run (0.04 seconds), 0 items updated, 0 evaluated
    16. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\Tools\netcorerun\netcorerun.exe "C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram0.traceevents"
    17. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    18. ExitCode: 4 Duration: 0s71ms
    19. ExitCode: 0 Duration: 0s607ms
    20. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend2.traceevents""C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram1.traceevents"
    21. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    22. ExitCode: 4 Duration: 4m:22s
    23. ExitCode: 0 Duration: 0s616ms
    24. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend3.traceevents""C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram2.traceevents"
    25. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    26. ExitCode: 4 Duration: 4m:22s
    27. ExitCode: 0 Duration: 0s591ms
    28. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend4.traceevents""C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram3.traceevents"
    29. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    30. ExitCode: 4 Duration: 4m:20s
    31. ExitCode: 0 Duration: 0s615ms
    32. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend5.traceevents" Player
    33. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    34. Finished compiling graph: 306 nodes, 693 flattened edges (689 ToBuild, 3 ToUse), maximum node priority 100
    35. [300/305    0s] WriteResponseFile Library/Bee/artifacts/rsp/8995565923215908413.rsp
    36. [BUSY       6s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    37. [BUSY      16s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    38. [BUSY      26s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    39. [BUSY      36s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    40. [BUSY      46s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    41. [BUSY      56s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    42. [BUSY      66s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    43. [BUSY      76s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    44. [BUSY      86s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    45. [BUSY      96s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    46. [BUSY     106s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    47. [BUSY     116s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    48. [BUSY     126s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    49. [BUSY     137s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    50. [BUSY     147s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    51. [BUSY     157s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    52. [BUSY     167s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    53. [BUSY     177s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    54. [BUSY     188s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    55. [BUSY     198s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    56. [BUSY     208s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    57. [BUSY     218s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    58. [301/305   225s] Link_WebGL_wasm Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js (+wasm)
    59. *** Tundra requires additional run (225.61 seconds - 0:03:45), 2 items updated, 305 evaluated
    60. *** Additional run caused by: timestamp change of Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.wasm
    61. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\Tools\netcorerun\netcorerun.exe "C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram4.traceevents"
    62. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    63. ExitCode: 4 Duration: 3m:45s
    64. ExitCode: 0 Duration: 0s620ms
    65. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend6.traceevents""C:\Program Files\Unity\2022.3.0f1\Editor\Data\PlaybackEngines\WebGLSupport\WebGLPlayerBuildProgram.exe" "C:/Program Files/Unity/2022.3.0f1/Editor/Data/PlaybackEngines/WebGLSupport/Bee;C:/Program Files/Unity/2022.3.0f1/Editor/Data/Tools/BuildPipeline" "Library/Bee/Player80de4bc8.dag.json" "Library/Bee/Player80de4bc8-inputdata.json" "Library\Bee\buildprogram5.traceevents"
    66. WorkingDir: C:/Data/Documents/Unity/Own/EmptyUnity
    67. ExitCode: 4 Duration: 4m:50s
    68. ExitCode: 0 Duration: 0s668ms
    69. Starting: C:\Program Files\Unity\2022.3.0f1\Editor\Data\bee_backend.exe --dont-print-to-structured-log --ipc --dagfile="Library/Bee/Player80de4bc8.dag" --dagfilejson="Library\Bee\Player80de4bc8.dag.json" --profile="Library/Bee/backend7.traceevents"'Temp/__Backupscenes/0.backup'
    70.     Deserialize:            1.141 ms
    71.     Integration:            32.187 ms
    72.     Integration of assets:  0.002 ms
    73.     Thread Wait Time:       0.050 ms
    74.     Total Operation Time:   33.379 ms
    75. Unloading 0 unused Assets / (309.3 KB). Loaded Objects now: 2876.
    76. Memory consumption went from 189.0 MB to 188.7 MB.
    77. Total: 18.085600 ms (FindLiveObjects: 0.461100 ms CreateObjectMapping: 0.172900 ms MarkObjects: 17.305400 ms  DeleteObjects: 0.144800 ms)
    78.  
    79. Build completed with a result of 'Failed' in 1570 seconds (1570174 ms)
    80. Internal build system error. Backend has requested a buildprogram run 6 times.
    81. UnityEngine.StackTraceUtility:ExtractStackTrace ()
    82. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    83. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    84. UnityEngine.Debug:LogError (object)
    85. UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    86. UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    87. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun (bool)
    88. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun ()
    89. UnityEditor.EditorApplication:ExecuteMenuItem (string)
    90. UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 (UnityEditor.ShortcutManagement.ShortcutArguments)
    91. UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent (UnityEngine.Event,UnityEditor.ShortcutManagement.IContextManager)
    92. UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent (UnityEngine.Event)
    93. UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler ()
    94. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
     
    Last edited: Jun 10, 2023
    CodeSmile likes this.
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,975
    Out of curiosity (and while waiting for updates to install) I confirmed this issue.

    I downloaded your project as zip and opened it with 2022.3.0f1. I did have to add SampleScene to build settings and switch platform to WebGL. Build failed with the error message you posted.

    I also created a new "3D Core" project with 2022.3.0f1, changed "name files as hashes", added SampleScene and switched platform to WebGL, made a build ... same error. Error also occurs with Development Build flag turned on.
     
  3. Armynator

    Armynator

    Joined:
    Feb 15, 2013
    Posts:
    67
  4. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
  5. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    273
    In case you haven't seen, this bug was fixed in 2022.3.2f1, 2023.1.0f1. :)
     
  6. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    Thanks for letting me know, works again as expected with unity 2022.3.2f1 :)
     
  7. Zephyr1354

    Zephyr1354

    Joined:
    Jun 16, 2022
    Posts:
    7
    I have Unity 2022.3.1f1, do I need to upgrade to a later version because I'm having the same issue?
     
  8. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    826
    Yes, one minor version would be enough (to 2022.3.2f1), but I guess you could also go with the latest 2022.3 LTS version to get more fixes and improvements in.
     
    Zephyr1354 likes this.