Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Build failed - Exception occurred inside BeeDriver

Discussion in 'Android' started by tarrantulla, Jan 24, 2022.

  1. tarrantulla

    tarrantulla

    Joined:
    Apr 30, 2019
    Posts:
    5
    Hey!
    We are facing a weird build problem with Unity 2021.2.7f1:

    DisplayProgressbar: Incremental Player Build
    Starting: /Applications/Unity/Hub/Editor/2021.2.7f1/Unity.app/Contents/bee_backend --profile="Library/Bee/backend_profiler0.traceevents" --stdin-canary --dagfile="Library/Bee/Playeree4d856d.dag" --continue-on-failure Player
    WorkingDir: /Users/username/agentname/_work/41/s
    ExitCode: 0 Duration: 1s417ms
    [ 191/1226 0s] SplitFile Library/Bee/artifacts/Android/Split/level18
    [ 191/1226 0s] SplitFile Library/Bee/artifacts/Android/Split/level21
    .
    .
    .
    [ 419/1226 0s] CopyFiles /Users/username/agentname/_work/41/s/Library/Bee/Android/Prj/Mono2x/Gradle/unityLibrary/src/main/assets/bin/Data/sharedassets2.assets.split50
    -----Error:-----

    [ 420/1226 0s] CopyFiles /Users/username/agentname/_wException occurred inside BeeDriver: System.IO.IOException: Sharing violation on path /Users/username/agentname/_work/41/s/[Unknown]
    at System.IO.FileStream.WriteInternal (System.Byte[] src, System.Int32 offset, System.Int32 count) [0x00077] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at System.IO.FileStream.Write (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x00090] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at System.IO.StreamWriter.Flush (System.Boolean flushStream, System.Boolean flushEncoder) [0x00080] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at System.IO.StreamWriter.WriteSpan (System.ReadOnlySpan`1[T] buffer, System.Boolean appendNewLine) [0x000a7] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at System.IO.StreamWriter.WriteLine (System.String value) [0x0000d] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at System.IO.TextWriter+SyncTextWriter.WriteLine (System.String value) [0x00000] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at (wrapper synchronized) System.IO.TextWriter+SyncTextWriter.WriteLine(string)
    at System.Console.WriteLine (System.String value) [0x00000] in <bd21fd595d394493a51e7c79b5fef9e0>:0
    at Bee.BeeDriver.RunningProgram.get_HasExited () [0x00086] in <7d5b346e100b493a8d2db4abd4098568>:0
    at Bee.BeeDriver.RunBackendPhase.Tick () [0x0001b] in <7d5b346e100b493a8d2db4abd4098568>:0
    at Bee.BeeDriver.PhaseBase.Tick (System.Boolean blocked) [0x00009] in <7d5b346e100b493a8d2db4abd4098568>:0
    at Bee.BeeDriver.BeeDriver.Tick (System.Boolean block) [0x00000] in <7d5b346e100b493a8d2db4abd4098568>:0
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)

    The weird thing is that this error appears only every time we try to make a build when build command is run by Azure DevOps. So this error doesn't happen when doing a local build manually or when running exactly the same
    /Applications/Unity/Hub/Editor/2021.2.7f1/Unity.app/Contents/MacOS/Unity -buildTarget android -quit -batchmode -projectPath ... rest of the arguments
    command from the terminal.
    The problem also doesn't appear with the latest Unity 2020 LTS and we can downgrade to that but with the new M1 Macs on use we'd prefer to use the 2021 version. Tried also updating our Burst version but no luck.
     
    Last edited: Jan 24, 2022
  2. tarrantulla

    tarrantulla

    Joined:
    Apr 30, 2019
    Posts:
    5
    We tried now also making a build with Unity 2021.2.8f1 with no success.
     
  3. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,875
    tarrantulla likes this.