Open aldoaldo1 opened 1 year ago
Bug description
The execution fails after 30 minutes of execution during building Gradle project
How to reproduce
My job
on: pull_request: types: [opened, synchronize] jobs: build: name: Build .apk for testing runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: fetch-depth: 0 lfs: true - uses: actions/cache@v2 with: path: Library key: Library-Android - uses: game-ci/unity-builder@v2 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: targetPlatform: Android androidKeystoreName: HeraldoAgnese.keystore androidKeystoreBase64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }} androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }} androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }} androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }} androidTargetSdkVersion: AndroidApiLevelAuto - uses: actions/upload-artifact@v2 with: name: Build-Android path: build/Android
Result log (after gradle build step):
Welcome to Gradle 6.1.1! Here are the highlights of this release: - Reusable dependency cache - Configurable compilation order between Groovy/Kotlin/Java/Scala - New sample projects in Gradle's documentation For more details see https://docs.gradle.org/6.1.1/release-notes.html Starting a Gradle Daemon (subsequent builds will be faster) > Configure project :launcher WARNING: The option setting 'android.enableR8=true' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8 WARNING: [Processor] Library '/root/.gradle/caches/modules-2/files-2.1/com.google.android.exoplayer/exoplayer-ui/2.15.1/5af30e03819b04a3c9dc08befd6beca8f2f60f57/exoplayer-ui-2.15.1.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway. Example of androidX reference: 'androidx/core/app/NotificationCompat$Builder' Example of support library reference: 'android/support/v4/media/session/MediaSessionCompat$Token' > Task :launcher:preBuild UP-TO-DATE > Task :launcher:extractProguardFiles > Task :launcher:preReleaseBuild > Task :unityLibrary:preBuild UP-TO-DATE > Task :unityLibrary:preReleaseBuild UP-TO-DATE > Task :unityLibrary:compileReleaseAidl NO-SOURCE > Task :unityLibrary:packageReleaseRenderscript NO-SOURCE > Task :launcher:generateReleaseBuildConfig > Task :launcher:compileReleaseAidl NO-SOURCE > Task :launcher:compileReleaseRenderscript NO-SOURCE > Task :launcher:javaPreCompileRelease > Task :launcher:generateReleaseResValues > Task :launcher:generateReleaseResources > Task :unityLibrary:compileReleaseRenderscript NO-SOURCE > Task :unityLibrary:generateReleaseResValues > Task :unityLibrary:generateReleaseResources > Task :launcher:createReleaseCompatibleScreenManifests > Task :launcher:extractDeepLinksRelease > Task :unityLibrary:packageReleaseResources > Task :unityLibrary:extractDeepLinksRelease > Task :unityLibrary:processReleaseManifest > Task :unityLibrary:compileReleaseLibraryResources > Task :unityLibrary:parseReleaseLocalResources > Task :launcher:processReleaseManifest > Task :launcher:mergeReleaseResources > Task :unityLibrary:generateReleaseRFile > Task :launcher:processReleaseResources FAILED 16 actionable tasks: 16 executed ] exit code: 1 at UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x00033] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x0002d] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) [0x0000a] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) [0x0001f] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) [0x0002f] in <e8d8d8782ef8400fa679b5177100ea99>:0 Rethrow as GradleInvokationException: Gradle build failed at UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) [0x00050] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x000d1] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x00078] in <e8d8d8782ef8400fa679b5177100ea99>:0 Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown. at UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex) [0x00020] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) [0x0011a] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x003dc] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) [0x00001] in <e8d8d8782ef8400fa679b5177100ea99>:0 at UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) [0x000dc] in /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:337 UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[], Boolean) UnityEditor.BuildPipeline:BuildPlayerInternal(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[]) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:422) UnityEditor.BuildPipeline:BuildPlayer(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, String[]) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:321) UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions) (at /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline.bindings.cs:295) UnityBuilderAction.Builder:BuildProject() (at Assets/Editor/Editor/UnityBuilderAction/Builder.cs:71) (Filename: /home/bokken/build/output/unity/unity/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs Line: 337) Unloading 33 Unused Serialized files (Serialized files now loaded: 0) System memory in use before: 99.7 MB. System memory in use after: 99.4 MB. Unloading 33 unused Assets to reduce memory usage. Loaded Objects now: 2280. Total: 799.886300 ms (FindLiveObjects: 0.624800 ms CreateObjectMapping: 0.122400 ms MarkObjects: 798.561500 ms DeleteObjects: 0.[5563](https://github.com/aldoaldo1/super-viral-19/actions/runs/5112402743/jobs/9190393549?pr=136#step:4:5564)00 ms) Unloading 0 Unused Serialized files (Serialized files now loaded: 0) Loaded scene 'Temp/__Backupscenes/0.backup' Deserialize: 1.841 ms Integration: 147.693 ms Integration of assets: 0.003 ms Thread Wait Time: 0.018 ms Total Operation Time: 149.555 ms System memory in use before: 98.5 MB. System memory in use after: 98.6 MB. Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 2264. Total: 708.488000 ms (FindLiveObjects: 0.373300 ms CreateObjectMapping: 0.130100 ms MarkObjects: 707.962900 ms DeleteObjects: 0.018500 ms) ########################### # Build results # ########################### Duration: 00:29:33.0470301 Warnings: 36 Errors: 4 Size: 196565242 bytes Build failed! [Performance] Application.InitializeProject : 1 samples, Peak. 208 s (1.0x), Avg. 208 s, Total. 208.1 s (10.5%) [Performance] Application.PackageManager.StartServer : 1 samples, Peak. 2.78 ms (1.0x), Avg. 2.78 ms, Total. 2.779 ms (0.0%) [Performance] Application.AcquireProjectLock : 1 samples, Peak. 875 us (1.0x), Avg. 875 us, Total. 874.6 us (0.0%) [Performance] Application.InitializeEngineNoGraphics : 1 samples, Peak. 296 ms (1.0x), Avg. 296 ms, Total. 296.3 ms (0.0%) [Performance] Application.PackageManager.Initialize : 1 samples, Peak. 473 ms (1.0x), Avg. 473 ms, Total. 473.5 ms (0.0%) [Performance] CurlRequestCheck : 10 samples, Peak. 111 us (4.4x), Avg. 25.3 us, Total. 253.2 us (0.0%) [Performance] PackageManager::RunRequestSynchronously : 745 samples, Peak. 481 us (58.6x), Avg. 8.20 us, Total. 6.112 ms (0.0%) [Performance] VersionControl.Task.Wait : 1 samples, Peak. 8.90 us (1.0x), Avg. 8.90 us, Total. 8.900 us (0.0%) [Performance] Application.EngineGraphics.Initialize : 1 samples, Peak. 75.1 ms (1.0x), Avg. 75.1 ms, Total. 75.08 ms (0.0%) [Performance] Application.GI.Initialize : 1 samples, Peak. 1.72 ms (1.0x), Avg. 1.72 ms, Total. 1.722 ms (0.0%) [Performance] Application.LoadAllDefaultResourcesFromEditor : 1 samples, Peak. 2.64 ms (1.0x), Avg. 2.64 ms, Total. 2.644 ms (0.0%) [Performance] Application.LoadMonoAssemblies : 1 samples, Peak. 1.27 s (1.0x), Avg. 1.27 s, Total. 1.267 s (0.1%) [Performance] RestoreManagedReferences : 2 samples, Peak. 168 ms (2.0x), Avg. 83.8 ms, Total. 167.7 ms (0.0%) [Performance] ProcessService.EditorAfterLoadAllAssemblies : 2 samples, Peak. 564 us (1.1x), Avg. 497 us, Total. 993.9 us (0.0%) [Performance] Application.ReadLicenseInfo : 1 samples, Peak. 23.7 ms (1.0x), Avg. 23.7 ms, Total. 23.72 ms (0.0%) [Performance] Application.InitialScriptRefresh : 1 samples, Peak. 71.3 s (1.0x), Avg. 71.3 s, Total. 71.29 s (3.6%) [Performance] PresetManagerPostProcessor.OnPreprocessAsset : 3457 samples, Peak. 1.59 ms (78.3x), Avg. 20.4 us, Total. 70.37 ms (0.0%) [Performance] CancelSplashScreenOnAssetChange.OnPreprocessAsset : 3457 samples, Peak. 998 us (228.3x), Avg. 4.37 us, Total. 15.11 ms (0.0%) [Performance] Compiling Scripts : 1 samples, Peak. 61.3 s (1.0x), Avg. 61.3 s, Total. 61.30 s (3.1%) [Performance] Package.AsyncRequest : 9 samples, Peak. 556 us (2.5x), Avg. 223 us, Total. 2.008 ms (0.0%) [Performance] AssetDatabase.ImportAssets : 8 samples, Peak. 42.8 ms (8.0x), Avg. 5.36 ms, Total. 42.85 ms (0.0%) [Performance] PlayServicesResolver.OnPostprocessAllAssets : 6 samples, Peak. 1.63 ms (1.4x), Avg. 1.13 ms, Total. 6.763 ms (0.0%) [Performance] SpriteEditorTexturePostprocessor.OnPostprocessAllAssets : 6 samples, Peak. 482 us (3.5x), Avg. 137 us, Total. 821.8 us (0.0%) [Performance] AssetProcessor.OnPostprocessAllAssets : 18 samples, Peak. 2.44 ms (11.8x), Avg. 207 us, Total. 3.733 ms (0.0%) [Performance] RetainedMode.OnPostprocessAllAssets : 6 samples, Peak. 41.7 ms (5.6x), Avg. 7.44 ms, Total. 44.63 ms (0.0%) [Performance] EditorAtlasMonitorInjector.OnPostprocessAllAssets : 6 samples, Peak. 1.25 ms (4.4x), Avg. 285 us, Total. 1.709 ms (0.0%) [Performance] AudioMixerPostprocessor.OnPostprocessAllAssets : 6 samples, Peak. 647 us (5.8x), Avg. 112 us, Total. 674.6 us (0.0%) [Performance] AssetEvents.OnPostprocessAllAssets : 12 samples, Peak. 493 us (8.9x), Avg. 55.6 us, Total. 667.0 us (0.0%) [Performance] ModelImporterPostProcessor.OnPostprocessAllAssets : 6 samples, Peak. 268 ms (3.1x), Avg. 85.6 ms, Total. 513.4 ms (0.0%) [Performance] StyleCatalogPostProcessor.OnPostprocessAllAssets : 6 samples, Peak. 171 ms (3.7x), Avg. 46.6 ms, Total. 279.7 ms (0.0%) [Performance] BuildCatalog : 2 samples, Peak. 169 ms (1.2x), Avg. 138 ms, Total. 276.1 ms (0.0%) [Performance] Application.AssetDatabase.Refresh : 1 samples, Peak. 94.1 s (1.0x), Avg. 94.1 s, Total. 94.10 s (4.7%) [Performance] AssetDatabase.Refresh : 2 samples, Peak. 94.1 s (2.0x), Avg. 47.1 s, Total. 94.19 s (4.7%) [Performance] TextureImporter.Import : 184 samples, Peak. 8.61 s (21.0x), Avg. 410 ms, Total. 75.39 s (3.8%) [Performance] EditorAtlasMonitorInjector.OnPostprocessTexture : 184 samples, Peak. 253 us (18.5x), Avg. 13.6 us, Total. 2.508 ms (0.0%) [Performance] Application.ImportAssetsWithMismatchingAssetImporterVersion : 1 samples, Peak. 177 ms (1.0x), Avg. 177 ms, Total. 177.3 ms (0.0%) [Performance] Application.SyncCurrentColorSpace : 1 samples, Peak. 1.06 s (1.0x), Avg. 1.06 s, Total. 1.061 s (0.1%) [Performance] Application.OnUsbDevicesChanged : 1 samples, Peak. 5.60 us (1.0x), Avg. 5.60 us, Total. 5.600 us (0.0%) [Performance] Application.AssetDatabase.SaveAssets : 1 samples, Peak. 141 ms (1.0x), Avg. 141 ms, Total. 141.3 ms (0.0%) [Performance] Application.AssetInstanceCacheUpdate : 1 samples, Peak. 1000 ns (1.0x), Avg. 1000 ns, Total. 1000.0 ns (0.0%) [Performance] Application.UnityExtensions.Initialize : 1 samples, Peak. 1.31 ms (1.0x), Avg. 1.31 ms, Total. 1.311 ms (0.0%) [Performance] Application.InitializeManagedCompilationPipeline : 1 samples, Peak. 66.2 ms (1.0x), Avg. 66.2 ms, Total. 66.23 ms (0.0%) [Performance] Application.ExecuteStartups : 1 samples, Peak. 471 ms (1.0x), Avg. 471 ms, Total. 470.6 ms (0.0%) [Performance] Gizmo.RebuildRenderers : 2 samples, Peak. 69.4 ms (1.9x), Avg. 36.7 ms, Total. 73.49 ms (0.0%) [Performance] Gizmo.AddGizmoRenderers : 118 samples, Peak. 2.14 ms (56.6x), Avg. 37.8 us, Total. 4.459 ms (0.0%) [Performance] Application.InitializeMenu : 1 samples, Peak. 221 ms (1.0x), Avg. 221 ms, Total. 221.2 ms (0.0%) [Performance] UpdateAllMenus : 1 samples, Peak. 221 ms (1.0x), Avg. 221 ms, Total. 221.1 ms (0.0%) [Performance] Application.editorInitializingProject : 1 samples, Peak. 56.5 us (1.0x), Avg. 56.5 us, Total. 56.50 us (0.0%) [Performance] GUIView.RepaintAll.PlayerLoopController : 5 samples, Peak. 4.00 us (2.3x), Avg. 1.72 us, Total. 8.600 us (0.0%) [Performance] Application.InvokeFinishedLoadingProject : 1 samples, Peak. 11.8 ms (1.0x), Avg. 11.8 ms, Total. 11.83 ms (0.0%) [Performance] ProcessService.OnProjectLoaded : 1 samples, Peak. 106 us (1.0x), Avg. 106 us, Total. 105.6 us (0.0%) [Performance] AssetDatabase.ImportAsset : 2 samples, Peak. 177 ms (1.7x), Avg. 104 ms, Total. 208.0 ms (0.0%) [Performance] GenerateAssemblyTypeInfos : 2 samples, Peak. 1.48 s (1.0x), Avg. 1.47 s, Total. 2.939 s (0.1%) [Performance] Inspector.InitOrRebuild : 5 samples, Peak. 1.27 ms (1.7x), Avg. 763 us, Total. 3.815 ms (0.0%) [Performance] Application.Shutdown.SaveSceneManagerSetup : 1 samples, Peak. 184 us (1.0x), Avg. 184 us, Total. 183.8 us (0.0%) AcceleratorClientConnectionCallback - disconnected - :0 Cleanup mono debugger-agent: Unable to listen on 39 [Package Manager] Server::Kill -- Server was shutdown Checking for leaked weakptr: Found no leaked weakptrs. ##utp:{"type":"MemoryLeaks","version":2,"phase":"Immediate","time":1685369203150,"processId":90,"allocatedMemory":4366994,"memoryLabels":[{"Default":-3284},{"Permanent":384},{"Thread":151},{"Manager":1624},{"Texture":144},{"Shader":114464},{"GfxDevice":144},{"Font":318806},{"Physics":1},{"Serialization":456},{"File":2816630},{"String":309195},{"DynamicArray":182969},{"HashMap":30141},{"Utility":400},{"Curl":1112},{"PoolAlloc":120},{"GI":336},{"VR":1696},{"Image":540672},{"Subsystems":96},{"EditorUtility":2016},{"AssetDatabase":7398},{"RestService":344},{"License":9472},{"UnityConnect":26576},{"Collab":827},{"Licensing":4104}]} Build failed, with exit code 101 ########################### # Build output # ########################### total 8.0K drwxr-xr-x 2 root root 4.0K May 29 13:33 . drwxr-xr-x 3 root root 4.0K May 29 13:33 .. Changing to "/github/workspace/_activate-license~" directory. /github/workspace/_activate-license~ /github/workspace /github/workspace ########################### # Failure # ########################### Please note that the exit code is not very descriptive. Most likely it will not help you solve the issue. To find the reason for failure: please search for errors in the log above. Error: The process '/usr/bin/docker' failed with exit code 101
Expected behavior
The build success
Additional details
Unity version in ProjectVersion.txt 2020.3.40f1
We got the same error on Android build today.
Bug description
The execution fails after 30 minutes of execution during building Gradle project
How to reproduce
My job
Result log (after gradle build step):
Expected behavior
The build success
Additional details
Unity version in ProjectVersion.txt 2020.3.40f1