Unity-Technologies / Unity-Technologies/CharacterControllerSamples
OnlineFPS Demo: Error Triggered upon Character Death
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 408
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
MacOS: 14.2.1
Unity: 2022.3.20f1
Character Controller: 1.1.0-exp.10
Entities: 1.1.0-pre.3
Entities Graphics: 1.1.0-pre.3
Netcode for Entities: 1.1.0-pre.3
OnlineFPS Demo: If the character dies, trigger an error. Hope to fix it in the upcoming update. Thank you very much!
Error message:
ArgumentOutOfRangeException: sub array range 0-2 is outside the range of the native array 0-1
Parameter name: length
Unity.Collections.NativeArray1[T].CheckGetSubArrayArguments (System.Int32 start, System.Int32 length) (at /Users/bokken/build/output/unity/unity/Runtime/Export/NativeArray/NativeArray.cs:752)
Unity.Collections.NativeArray1[T].GetSubArray (System.Int32 start, System.Int32 length) (at /Users/bokken/build/output/unity/unity/Runtime/Export/NativeArray/NativeArray.cs:763)
Unity.Rendering.EntitiesGraphicsSystem.UpdateAllBatches (Unity.Jobs.JobHandle inputDependencies) (at ./Library/PackageCache/com.unity.entities.graphics@1.1.0-pre.3/Unity.Entities.Graphics/EntitiesGraphicsSystem.cs:1951)
Unity.Rendering.EntitiesGraphicsSystem.UpdateEntitiesGraphicsBatches (Unity.Jobs.JobHandle inputDependencies) (at ./Library/PackageCache/com.unity.entities.graphics@1.1.0-pre.3/Unity.Entities.Graphics/EntitiesGraphicsSystem.cs:1227)
Unity.Rendering.EntitiesGraphicsSystem.OnUpdate () (at ./Library/PackageCache/com.unity.entities.graphics@1.1.0-pre.3/Unity.Entities.Graphics/EntitiesGraphicsSystem.cs:1327)
Unity.Entities.SystemBase.Update () (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/SystemBase.cs:418)
Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/ComponentSystemGroup.cs:723)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/Stubs/Unity/Debug.cs:17)
Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/ComponentSystemGroup.cs:728)
Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/ComponentSystemGroup.cs:681)
Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/SystemBase.cs:418)
Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at ./Library/PackageCache/com.unity.entities@1.1.0-pre.3/Unity.Entities/ScriptBehaviourUpdateOrder.cs:523)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the OnlineFPS Demo character-death flow with the reported Unity and package versions, then start at EntitiesGraphicsSystem.UpdateAllBatches in com.unity.entities.graphics@1.1.0-pre.3 and follow the update path shown in the stack trace. Done means character death no longer produces the reported NativeArray sub-array exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100