Skip to content

6.4 alpha -> get_inFixedTimeStep can only be called from the main thread. #47

@WaynGames

Description

@WaynGames

UnityException: get_inFixedTimeStep can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
Vertx.Debugging.CommandBuilder.TryGetAdjustedDuration (System.Single& duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/CommandBuilder/CommandBuilder.ManagedAppend.cs:50)
Vertx.Debugging.CommandBuilder.InitialiseAndGetGroup (System.Single& duration, Vertx.Debugging.BufferGroup& group) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/CommandBuilder/CommandBuilder.ManagedAppend.cs:37)
Vertx.Debugging.CommandBuilder.AppendText (Vertx.Debugging.Shape+Text& text, UnityEngine.Color backgroundColor, UnityEngine.Color textColor, System.Single duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/CommandBuilder/CommandBuilder.ManagedAppend.cs:70)
Vertx.Debugging.Shape+Text.Draw (Vertx.Debugging.CommandBuilder commandBuilder, UnityEngine.Color backgroundColor, UnityEngine.Color textColor, System.Single duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/Shapes/Shapes.Text.cs:43)
Vertx.Debugging.Shape+Text.Draw (Vertx.Debugging.CommandBuilder commandBuilder, UnityEngine.Color color, System.Single duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/Shapes/Shapes.Text.cs:37)
Vertx.Debugging.Shape+Text.Vertx.Debugging.IDrawableManaged.Draw (Vertx.Debugging.CommandBuilder commandBuilder, UnityEngine.Color color, System.Single duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/Shapes/Shapes.Text.cs:34)
Vertx.Debugging.D.raw (Vertx.Debugging.IDrawableManaged shape, UnityEngine.Color color, System.Single duration) (at ./Library/PackageCache/com.vertx.debugging@f9ec775692dd/Runtime/Draw.cs:127)
WAYN.Games.MGM.Locomotion.Runtime.Systems.CharacterContactSystem+CharacterContactJob.HandleCharacterCollision (Unity.Physics.ModifiableContactHeader& header, Unity.Physics.ModifiableContactPoint& contact, Unity.Physics.PhysicsWorld& physicsWorld, Unity.Entities.ComponentLookup1[WAYN.Games.MGM.Locomotion.Runtime.Components.LocomotionVelocity]& velocityLookup, Unity.Entities.ComponentLookup1[WAYN.Games.MGM.Locomotion.Runtime.Components.CharacterPhysicsProfileBlob]& characterPhysicsProfileBlobLookup, Unity.Collections.NativeParallelMultiHashMap2[Unity.Entities.Entity,Unity.Mathematics.float3]& deCollisionMap) (at Assets/Locomotion/Runtime/Systems/Character/CharacterContactSystem.cs:133) WAYN.Games.MGM.Locomotion.Runtime.Systems.CharacterContactSystem+CharacterContactJob.Execute (Unity.Physics.ModifiableContactHeader& header, Unity.Physics.ModifiableContactPoint& contact) (at Assets/Locomotion/Runtime/Systems/Character/CharacterContactSystem.cs:107) Unity.Physics.IContactsJobExtensions+ContactsJobProcess1[T].Execute (Unity.Physics.IContactsJobExtensions+ContactsJobData`1[T]& jobData, System.IntPtr additionalData, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at Library/PackageCache/com.unity.physics@cde48e1c768c/Unity.Physics/Dynamics/Simulation/IContactsJob.cs:327)
Unity.Jobs.JobHandle:ScheduleBatchedJobsAndComplete(JobHandle&)
Unity.Jobs.JobHandle:Complete()
WAYN.Games.MGM.Locomotion.Runtime.Systems.CharacterContactEventSystem:OnUpdate(SystemState&) (at Assets/Locomotion/Runtime/Systems/Character/CharacterContactEventSystem.cs:31)
WAYN.Games.MGM.Locomotion.Runtime.Systems.CharacterContactEventSystem:__codegen__OnUpdate(IntPtr, IntPtr)
Unity.Entities.SystemBaseRegistry:ForwardToManaged(IntPtr, SystemState*, Void*) (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBaseRegistry.cs:364)
Unity.Entities.SystemBaseRegistry:CallForwardingFunction(SystemState*, UnmanagedSystemFunctionType) (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBaseRegistry.cs:333)
Unity.Entities.SystemBaseRegistry:CallOnUpdate(SystemState*) (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBaseRegistry.cs:376)
Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate$BurstManaged(Void*) (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/WorldUnmanaged.cs:887)
Unity.Entities.UnmanagedUpdate_00001691$BurstDirectCall:Invoke(Void*)
Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate(Void*)
Unity.Entities.WorldUnmanagedImpl:UpdateSystem(SystemHandle) (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/WorldUnmanaged.cs:926)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:717)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBase.cs:420)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:723)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBase.cs:420)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:723)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:687)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBase.cs:420)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:723)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/SystemBase.cs:420)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at ./Library/PackageCache/com.unity.entities@4e6bef1567dc/Unity.Entities/ScriptBehaviourUpdateOrder.cs:523)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions