Here is an example file with the character slightly overlapping a corner. At the start of the game, use a gamepad and it will freeze. Using a keyboard I can walk out of the corner. If the character starts more inside of the solid, it wont freeze.
Here is a video showing the freeze. First part is keyboard movemet, second is gamepad. I added a timer just to help with the visualization.
Thanks for taking a look