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

Bug Burst compiler (1.8.7) failed running Error BC1355

Discussion in 'Burst' started by hehui568350701, Jul 21, 2023.

?

Building Android package, job scheduling reported an error, please help me.

  1. Be Helpful and Respectful

    0 vote(s)
    0.0%
  2. Provide Solutions

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. hehui568350701

    hehui568350701

    Joined:
    May 17, 2023
    Posts:
    5
    Building Library\Bee\artifacts\Android\AsyncPluginsFromLinker failed with output:
    UnityEditor.Build.BuildFailedException: Burst compiler (1.8.7) failed running

    stdout:
    Starting 1 library requests
    /home/bokken/sharedspace/ra_2022.3/Runtime/Profiler/ScriptBindings/Profiler.bindings.cs(163,13): Burst error BC1355: Expected to find an unmanaged version of method `UnityEngine.Profiling.Profiler.BeginSampleImpl(System.String name, UnityEngine.Object targetObject)`, but no such method could be found

    at UnityEngine.Profiling.Profiler.BeginSample(System.String name) (at /home/bokken/sharedspace/ra_2022.3/Runtime/Profiler/ScriptBindings/Profiler.bindings.cs:163)
    at AdvancedCullingSystem.DynamicCullingCore.ComputeResultsJob.Execute(AdvancedCullingSystem.DynamicCullingCore.ComputeResultsJob* this)
    at Unity.Jobs.IJobExtensions.JobStruct`1<AdvancedCullingSystem.DynamicCullingCore.ComputeResultsJob>.Execute(ref AdvancedCullingSystem.DynamicCullingCore.ComputeResultsJob data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) (at /home/bokken/sharedspace/ra_2022.3/Runtime/Jobs/Managed/IJob.cs:58)

    stderr:

    at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x001f7] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:1705
    at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0003f] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:1582
    at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00000] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:1557
    at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00914] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:705
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x00013] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:265
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0007d] in .\Library\PackageCache\com.unity.burst@1.8.7\Editor\BurstAotCompiler.cs:179
    at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in <5909001d89834f35ba5cf7792a7cc442>:0
    at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in <f05167aca5514d8da4a7196d3c4d5c33>:0
    at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00021] in <f05167aca5514d8da4a7196d3c4d5c33>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <605bf8b31fcb444b85176da963870aa7>:0
    at System.Threading.Tasks.Task.Execute () [0x00000] in <605bf8b31fcb444b85176da963870aa7>:0
    --- End of stack trace from previous location where exception was thrown ---

    at Bee.BeeDriver.BeeDriver_RunBackend.ProcessRPCRequest (Bee.BinLog.RPCActionMessage msg, Bee.BeeDriver.BuildRequest+RPCCallback rpcCallback, IPCConnection ipcConnection, System.Threading.Tasks.Task writePipeConnectionTask, Bee.BeeDriver.InternalState state) [0x00111] in <f05167aca5514d8da4a7196d3c4d5c33>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
  2. tim_jones

    tim_jones

    Unity Technologies

    Joined:
    May 2, 2019
    Posts:
    282
    Hi @hehui568350701 - the error message is "correct" in that the Profiler.BeginSample API isn't supported by Burst.

    You can instead use ProfilerMarker, which is supported by Burst.