Im trying out one of the unity.charactercontroller samples, specifically “OnlineFPS”.
https://github.com/Unity-Technologies/CharacterControllerSamples
After updating the sample from 2022.2(beta) to 2022.3(LTS) and fixing the errors I had to restart Unity because I got an endless stream of this error:
Assertion failed on expression: ‘exception == SCRIPTING_NULL’
Luckily restarting fixed it…
So I finally was able to run the project even though it had 327 warnings at this point, but atleast no more errors.
The project seems to work as intended and functions in PlayMode.
So I thought ok, lets try to solve all these warnings…
Which are:
Internal: JobTempAlloc has allocations that are more than the maximum lifespan of 4 frames old - this is not allowed and likely a leak
To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations.
How do i run app with -diag-job-temp-memory-leak-validation?
Next error:
Ignoring invalid [Unity.Entities.UpdateAfterAttribute] attribute on WeaponPredictionUpdateGroup targeting Unity.Physics.Systems.PhysicsSystemGroup.
This attribute can only order systems that are members of the same ComponentSystemGroup instance.
Make sure that both systems are in the same system group with [UpdateInGroup(typeof(Unity.NetCode.PredictedFixedStepSimulationSystemGroup))],
or by manually adding both systems to the same group’s update list.
UnityEngine.Debug:LogWarning (object)
Ignoring invalid [Unity.Entities.UpdateAfterAttribute] attribute on Unity.Physics.Authoring.ModifyJointLimitsSystem targeting Unity.Physics.Systems.PhysicsSystemGroup.
This attribute can only order systems that are members of the same ComponentSystemGroup instance.
Make sure that both systems are in the same system group with [UpdateInGroup(typeof(Unity.Entities.FixedStepSimulationSystemGroup))],
or by manually adding both systems to the same group’s update list.
UnityEngine.Debug:LogWarning (object)
So an official sample project released in a Unity beta version, then forgotten about and never updated to LTS, with a bunch of errors, 320+ warnings about memory leaks AND a few warnings about incorrect use of Attributes…
I would say to myself welcome to Unity, but Ive been using Unity for years and never expect too much from it anyway.
Can someone help me to remove these memory leaks or atleast debug them?
And can Unity fix this within the next decade for future users please?
Also if this is posted in the wrong sub-forum please move it to the correct one dont close it for no reason.