Search Unity

Bug Building Library\Bee\artifacts\WinPlayerBuildProgram\AsyncPluginsFromLinker failed with output:

Discussion in 'C# Job System' started by jjejj87, Apr 23, 2023.

  1. jjejj87

    jjejj87

    Joined:
    Feb 2, 2013
    Posts:
    1,117
    So it works fine in editor, but when I try to build IL2CPP I get the following error. This project used to have the 0.7 package but I removed it since the job package was internalized. Then I added the Collections package. This is on 2022.2.16
    Anybody know if this is a bug or me doing something wrong?

    Here is the code
    Code (CSharp):
    1. using Unity.Jobs;
    2. using Unity.Collections;
    3. using Unity.Mathematics;
    4. public struct AngleJob : IJob
    5.     {
    6.     public float3 onePosition;
    7.     public float3 twoPosition;
    8.     public NativeArray<float> distance;
    9.     public void Execute()
    10.         {
    11.         distance[0] = math.distance(onePosition, twoPosition);
    12.         }
    13.     }
    Building Library\Bee\artifacts\WinPlayerBuildProgram\AsyncPluginsFromLinker failed with output:
    UnityEditor.Build.BuildFailedException: Burst compiler (1.8.4) failed running

    stdout:
    Error: Failed to find entry-points:
    System.Exception: Unexpected exception while processing type `AngleJob` ---> System.Exception: The type `Unity.Jobs.IJobExtensions/JobStruct`1<AngleJob>` does not contain an `Execute` method
    at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints(String[] rootAssemblyNames, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader, NativeCompilerOptions options, ProfileDelegate profileCallback, Boolean includeRootAssemblyReferences, Boolean splitTargets)
    --- End of inner exception stack trace ---
    at Burst.Compiler.IL.Server.EntryPointMethodFinder.FindEntryPoints(String[] rootAssemblyNames, HashCacheAssemblyStore assemblyStore, AssemblyLoader assemblyLoader, NativeCompilerOptions options, ProfileDelegate profileCallback, Boolean includeRootAssemblyReferences, Boolean splitTargets)
    at Burst.Compiler.IL.Server.FindMethodsJob.Execute(CompilerServerJobExecutionContext context)
    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.4\Editor\BurstAotCompiler.cs:1706
    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.4\Editor\BurstAotCompiler.cs:1583
    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.4\Editor\BurstAotCompiler.cs:1558
    at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x008f6] in .\Library\PackageCache\com.unity.burst@1.8.4\Editor\BurstAotCompiler.cs:706
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x00013] in .\Library\PackageCache\com.unity.burst@1.8.4\Editor\BurstAotCompiler.cs:265
    at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0007d] in .\Library\PackageCache\com.unity.burst@1.8.4\Editor\BurstAotCompiler.cs:179
    at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in <fd50159aad624335967647b443372e50>:0
    at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in <cbc6cae0703746c08eee7f40dbc1e66c>:0
    at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00021] in <cbc6cae0703746c08eee7f40dbc1e66c>:0
    at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <cbc72d4a9767498db39486e941a498e3>:0
    at System.Threading.Tasks.Task.Execute () [0x00000] in <cbc72d4a9767498db39486e941a498e3>: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 <cbc6cae0703746c08eee7f40dbc1e66c>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)
     
    Last edited: Apr 23, 2023
  2. blackbird

    blackbird

    Joined:
    Aug 9, 2011
    Posts:
    592
    did you find a fix ?
     
  3. KonstantinBY

    KonstantinBY

    Joined:
    Jun 6, 2015
    Posts:
    1