Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Beta2019Win_NVIDIA
- 1. What happened
- Errors related to memcpy and/or PostUpdateCommands while setting ComponentData seem to occur, without stack tracing enabled the project will freeze and/or crash when these happen(in editor, in a build from limited testing no errors appear to occur but I havent done much testing here yet).
- The first error I get is shown as (Error1). In the message it notes the system SmokeSpriteSystem as the culprit, but if this system is disabled using [DisableAutoCreation], another error shows up, marked as (Error2). In this one it says the component has not been added to the entity(I am setting it via PostUpdateCommands.SetComponent) but
- a) the component should've been added to the entity prefab(Tracer.prefab) via the BulletConversion.cs at script line 66,
- b) changing the PostUpdateCommands to AddComponent also results in an error stating that the component already exists.
- The logic from when the game first starts to when it errors shouldnt be any different, so I am unsure why these errors show up later rather than immediately.
- Also note: on opening the project with unity19.3b2 or a different computer, sometimes I only get the second error.
- (Error1)
- NullReferenceException: Object reference not set to an instance of an object
- System.Buffer.memcpy4 (System.Byte* dest, System.Byte* src, System.Int32 size) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
- System.Buffer.Memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
- System.String.memcpy (System.Byte* dest, System.Byte* src, System.Int32 size) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
- Unity.Collections.LowLevel.Unsafe.UnsafeUtility.InternalCopyPtrToStructure[T] (System.Void* ptr, T& output) (at <86888d7bf865490ca0c08194bf6338db>:0)
- Unity.Collections.LowLevel.Unsafe.UnsafeUtility.CopyPtrToStructure[T] (System.Void* ptr, T& output) (at <86888d7bf865490ca0c08194bf6338db>:0)
- Unity.Entities.EntityQueryBuilder.ForEach[T0,T1] (Unity.Entities.EntityQueryBuilder+F_EDD`2[T0,T1] action) (at Library/PackageCache/[email protected]/Unity.Entities/EntityQueryBuilder_ForEach.gen.cs:348)
- Game.Modules.Sprites.SmokeSpriteSystem.OnUpdate () (at Assets/Scripts/Game/Modules/Sprites/SmokeSpriteSystem.cs:33)
- Unity.Entities.ComponentSystem.InternalUpdate () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:800)
- Unity.Entities.ComponentSystemBase.Update () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:284)
- Unity.Entities.ComponentSystemGroup.OnUpdate () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:602)
- UnityEngine.Debug:LogException(Exception)
- Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:25)
- Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:606)
- Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:800)
- Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:284)
- Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:602)
- Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:800)
- Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:284)
- Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:144)
- (Error2)
- ArgumentException: A component with type:Instigator has not been added to the entity.
- EntityCommandBuffer was recorded in Game.Modules.Weapons.PlayerWeaponShooterSystem and played back in Unity.Entities.EndSimulationEntityCommandBufferSystem.
- at Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, Unity.Entities.ComponentType componentType) [0x00028] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\EntityComponentStoreDebug.cs:216
- at Unity.Entities.EntityComponentStore.AssertEntityHasComponent (Unity.Entities.Entity entity, System.Int32 componentType) [0x00001] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\EntityComponentStoreDebug.cs:222
- at Unity.Entities.EntityManager.SetComponentDataRaw (Unity.Entities.Entity entity, System.Int32 typeIndex, System.Void* data, System.Int32 size) [0x00001] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\EntityManagerAccessComponentData.cs:461
- at Unity.Entities.EntityCommandBuffer.PlaybackChain (Unity.Entities.EntityManager mgr, Unity.Entities.ECBSharedPlaybackState& playbackState, Unity.Collections.NativeArray`1[T] chainStates, System.Int32 currentChain, System.Int32 nextChain) [0x003af] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\EntityCommandBuffer.cs:1384
- at Unity.Entities.EntityCommandBuffer.Playback (Unity.Entities.EntityManager mgr) [0x0033b] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\EntityCommandBuffer.cs:1180
- at Unity.Entities.EntityCommandBufferSystem.FlushPendingBuffers (System.Boolean playBack) [0x00061] in C:\Users\thele\Documents\Unity\cyber_19_3_b1_08_09_19\Library\PackageCache\[email protected]\Unity.Entities\ComponentSystem.cs:1243
- Unity.Entities.EntityCommandBufferSystem.FlushPendingBuffers (System.Boolean playBack) (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:1304)
- Unity.Entities.EntityCommandBufferSystem.OnUpdate () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:1211)
- Unity.Entities.ComponentSystem.InternalUpdate () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:800)
- Unity.Entities.ComponentSystemBase.Update () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:284)
- Unity.Entities.ComponentSystemGroup.OnUpdate () (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:602)
- UnityEngine.Debug:LogException(Exception)
- Unity.Debug:LogException(Exception) (at Library/PackageCache/[email protected]/Unity.Entities/Stubs/Unity/Debug.cs:25)
- Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystemGroup.cs:606)
- Unity.Entities.ComponentSystem:InternalUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:800)
- Unity.Entities.ComponentSystemBase:Update() (at Library/PackageCache/[email protected]/Unity.Entities/ComponentSystem.cs:284)
- Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/[email protected]/Unity.Entities/ScriptBehaviourUpdateOrder.cs:144)
- 2. How we can reproduce it using the example you attached
- The project itself is a little large to submit with the bug reporter but Ive zipped and uploaded it here: https://drive.google.com/open?id=1SzLnvgzo-Gx4oAXMxSDVc10B2yi3QvVJ
- With 19.3.b1 Open the scene Scenes\ActOne.unity and play. It shouldnt take more than a minute for an error to occur. Jobs/Full Stack Traces should be enabled, Burst should also be disabled.
- The errors also occur with b2.
- Side note: When opening the project for the first time, it will stall at the very end of the asset import(when its importing the Player.prefab) - force quit unity and reopen the project and it should open properly. I dont know if this is bug report worthy in itself, it appears to be reproducible if the library is deleted.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement