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 Build Time more than 10 hours....

Discussion in 'Unity Build Automation' started by gametunes, Aug 18, 2023.

Thread Status:
Not open for further replies.
  1. gametunes

    gametunes

    Joined:
    Dec 16, 2020
    Posts:
    2
    Usually Cloud Build took an hour to complete build for iOS.
    I upgraded version of Unity in may app from 2020.3.43f to 2021.3.21f.
    After upgrading version of Unity, it can't build and build time more than 10 hours now. How is it possible? And I should pay every minute of this process. I cancelled myself, because I don't think this build will stop ever.
    Can someone explain what is problem and why it doesn't stop itself if there's some error, please?
     

    Attached Files:

  2. wrossmck-unity

    wrossmck-unity

    Unity Technologies

    Joined:
    Nov 9, 2021
    Posts:
    87
    when you change the version of unity, the unity engine will no longer be able to use the previous Library cache, and is forced to re-import all assets - which can take 10-50x longer than normal and due to the longer import times is prone to failure.

    this issue is unrelated to the DevOps platform and is unfortunately caused by the engine itself. You would have also encountered this issue locally while doing the upgrade.
     
  3. cengage-jsal

    cengage-jsal

    Joined:
    May 10, 2022
    Posts:
    24
    Hi @wrossmck-unity, we're having a similar issue with our WebGL builds. We recently updated the project to Unity 2022.3.5f1 and new builds were being created up until Friday. This is part of the build log for the first build that failed:

    Code (CSharp):
    1. [error] df: getattrlist failed: Input/output error
    2. [warning] warning: exhaustive rename detection was skipped due to too many files.
    3. [error] df: getattrlist failed: Input/output error
    4.  
    5. [error] [2023-08-25T20:50:51Z - Unity] Request timed out while processing request "https://public-cdn.cloud.unity3d.com/config/production", HTTP error code 0
    6.  
    7. error] [2023-08-25T20:53:32Z - Unity] EM_WORKAROUND_WIN7_BAD_ERRORLEVEL_BUG=1
    8. [warning] [2023-08-25T20:53:32Z - Unity] "/APPLICATION_PATH/Unity.app/Contents/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emscripten/emcc" -D__webgl__ -Wno-warn-absolute-paths -Wno-c++11-extensions -Wno-nonportable-include-path -ffunction-sections -fno-unwind-tables -fomit-frame-pointer -fno-threadsafe-statics -std=c++11 -Wno-#warnings -Wswitch -Wno-trigraphs -Wno-tautological-compare -Wno-invalid-offsetof -Wno-implicitly-unsigned-literal -Wno-integer-overflow -Wno-shift-negative-value -Wno-unknown-attributes -Wno-implicit-function-declaration -Wno-null-conversion -Wno-missing-declarations -Wno-unused-value -Wno-pragma-once-outside-header -fvisibility=hidden -fexceptions -fno-rtti -O3 -fno-strict-overflow -ffunction-sections -fdata-sections -fmessage-length=0 -pipe -D_GLIBCXX_USE_CXX11_ABI=0 -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DIL2CPP_MONO_DEBUGGER_DISABLED -DRUNTIME_IL2CPP -DHAVE_BDWGC_GC -DNDEBUG -I"." -I"/BUILD_PATH/cengage-learning.electrical-wiring-residenqajxio/Electrical Wiring Residential/Library/Bee/artifacts/WebGL/il2cppOutput/cpp" -I"/APPLICATION_PATH/Unity.app/Contents/il2cpp/libil2cpp/pch" -I"/APPLICATION_PATH/Unity.app/Contents/il2cpp/libil2cpp" -I"/APPLICATION_PATH/Unity.app/Contents/il2cpp/external/baselib/Include" -I"/APPLICATION_PATH/Unity.app/Contents/il2cpp/libil2cpp/os/ClassLibraryPAL/brotli/include" -I"/APPLICATION_PATH/Unity.app/Contents/il2cpp/external/baselib/Platforms/WebGL/Include" -o "Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/mxh0krvul4vu.o" -fcolor-diagnostics -c -xc++ "/BUILD_PATH/cengage-learning.electrical-wiring-residenqajxio/Electrical Wiring Residential/Library/Bee/artifacts/WebGL/il2cppOutput/cpp/Il2CppInvokerTable.cpp"
    9. [error] [2023-08-25T20:53:32Z - Unity] EM_WORKAROUND_WIN7_BAD_ERRORLEVEL_BUG=1
    10. [error] [2023-08-25T20:53:32Z - Unity] clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
    11. [error] [2023-08-25T20:53:32Z - Unity] ERROR: Building Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/9gqnmko4cgmo.o failed with output:
    12. [error] [2023-08-25T20:53:32Z - Unity] ERROR: Building Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/mxh0krvul4vu.o failed with output:
    13. [error] [2023-08-25T20:53:32Z - Unity] clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
    14. [error] [2023-08-25T20:53:32Z - Unity] clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
    15. [error] [2023-08-25T20:53:32Z - Unity] ERROR: Player export failed. Reason: Building Library/Bee/artifacts/WebGL/GameAssembly/release_WebGL_wasm/mxh0krvul4vu.o failed with output:
    16. [error] [2023-08-25T20:53:32Z - Unity] clang++: error: clang frontend command failed with exit code 134 (use -v to see invocation)
    17. [warning] [2023-08-25T20:54:02Z - Unity] [Performance] InitializeOnLoad SysrootPackage.IssueWarningIfLinuxIL2CPPNotPresent                                            :        1 samples, Peak.   115 us (1.0x), Avg.   115 us, Total. 114.7 us (0.0%)
    18. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN: Running Unity in Batch Mode can help reproduce and debug potential build/test issues.
    19. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN: For additional information on building in Batch Mode see https://support.unity.com/hc/en-us/articles/9466056266004-How-do-I-Build-Unity-Project-in-Batchmode-Locally-
    20. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN: Try running Unity 2022.3.5f1 in batch mode locally with the following commands:
    21. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN: When running from Windows:
    22. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN:        "C:\Program Files\Unity\Hub\Editor\2022.3.5f1\Editor\Unity.exe" -logFile {PATH_TO_LOG_FILE} -projectPath {PROJECT_PATH} -batchmode -skipMissingProjectID -skipMissingUPID -buildTarget webgl --quit -executeMethod {CLASS_AND_STATIC_METHOD_NAME_OF_BUILD_SCRIPT} -quit
    23. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN: When running from Mac:
    24. [warning] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - WARN:        /APPLICATION_PATH/Unity/Hub/Editor/2022.3.5f1/Unity.app/Contents/MacOS/Unity -logFile {PATH_TO_LOG_FILE} -projectPath {PROJECT_PATH} -batchmode -skipMissingProjectID -skipMissingUPID -buildTarget webgl --quit -executeMethod {CLASS_AND_STATIC_METHOD_NAME_OF_BUILD_SCRIPT} -quit
    25. [error] [2023-08-25T20:54:02.648Z] - 7.3.20.2.7.4 - FATAL:        ! Unity player export failed!
    26. [error] df: getattrlist failed: Input/output error
    27. [warning] [2023-08-25T20:54:05.140Z] - 7.3.20.2.7.4 - WARN:     Could not find index.html to package WebGL artifacts
    28. [success] Finished: SUCCESS
    29.  

    Then the following builds would behave similarly to what the OP described. The build log indicated that issue occurs after UCB downloads and attempts to extract the library cache but the tar file that's downloaded is damaged. UCB will repeat this process until I manually cancel the build.


    Code (CSharp):
    1. [2023-08-28T16:49:55.713Z] - 7.3.20.2.7.4 - INFO: ++++++++++++++++++++++++++++++++++++++++
    2. [2023-08-28T16:49:55.713Z] - 7.3.20.2.7.4 - INFO: + Setting run time variables
    3. [2023-08-28T16:49:55.713Z] - 7.3.20.2.7.4 - INFO: ++++++++++++++++++++++++++++++++++++++++
    4. [error] df: getattrlist failed: Input/output error
    5. All identities removed.
    6. ...
    7.  
    8. [2023-08-28T16:50:39.157Z] - 7.3.20.2.7.4 - INFO: ++++++++++++++++++++ SECTION ++++++++++++++++++++
    9. [2023-08-28T16:50:39.158Z] - 7.3.20.2.7.4 - INFO: + Fetching Cached library_2022_3_5f1
    10. [2023-08-28T16:50:39.158Z] - 7.3.20.2.7.4 - INFO: ++++++++++++++++++++ SECTION ++++++++++++++++++++
    11. [2023-08-28T16:51:15.449Z] - 7.3.20.2.7.4 - INFO: Download of cache file library_2022_3_5f1 finished, size is 1246535989 bytes
    12. [2023-08-28T16:51:15.449Z] - 7.3.20.2.7.4 - INFO: Extracting cache files to /BUILD_PATH/SOME_FOLDER/ANOTHER_FOLDER
    13. tar: Damaged tar archive
    14. tar: Retrying...
    15. tar: Damaged tar archive
    16. tar: Retrying...
    17. tar: Damaged tar archive
    18. tar: Retrying...
    19. tar: Damaged tar archive
    20. tar: Retrying...
    21. tar: Damaged tar archive
    22. ...
    23.  
    What solution do you suggest?

    I'm considering deleting the library folder on my machine, then booting up the editor so it can recreate and recompile the library folder. Then commit my changes and trigger another cloud build. Do you think this could help?

    Thanks in advance.

    Unity 2022.3.5f1
    Ruby 2.7.4
    macOS Monterey
     
  4. wrossmck-unity

    wrossmck-unity

    Unity Technologies

    Joined:
    Nov 9, 2021
    Posts:
    87
    Hey @Cengage_jsal,

    The issue you are encountering is unrelated to unity upgrades, unrelated to this original post, and your build times are lasting a normal duration.

    I see you have created a support ticket where we can talk more about your project specifics.
     
Thread Status:
Not open for further replies.