[Bug/Feature] Player Controller floods Log
I have my PlayerController class with overriden Tick(float) function. I put there exception protection:
This is Tick function, so I used fastest way to catch bad pointers (without cast). This code do it's job flawlessly, but it have one issue: IsValidLowLevelFast flooding Log with LogUObjectBase:Error: 'this' pointer is invalid.. This is strange, because it is check function, it must not log it's actions.
P.S. And i have engine version 4.8.0 still.
You may want to avoid using C style casts since they will try to preform the cast even if it's not the correct type. Instead you can use UE4 casts (=Cast(PlayerState>) instead since it will check for a valid type automatically. The log spam would be expected if the value is Null. The best way to check for this would be to make sure that PlayerState is valid itself with an "if(PlayerState)" first and place the cast inside the if statement.
answered Jul 23 '15 at 06:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here