Iam working on a platformer game and my player is getting stuck at random positions in the map by an invisible barrier.

Iam using rigidbody2d with a box collider on my character and box colliders on the platforms and after jumping off of a high spot and then walking for a bit my character wont be able to move any more in that direction. I can move back and jump over it but then usually another barrier is made a few x positions later.

I don’t expect anyone to know exactly what is wrong but please suggest what the problem might be caused by.

Guesses for guessy data

A bug in the jump code incorrectly setting a tolerance value?

A gameobject in the scene with a collider but no renderer?

Some bit of code instantiating an object with a collider but no renderer?

A bug in the character controller?