If you try to lower your weapon while in the lowest or highest crouch position, the character will stand up with weapon raised. Then you are unable to move in any direction, you can only look around with the mouse and lean(Q and E).
Doing an overstep(v) or change weapons with action menu, will unfreeze the character.
Happens with both primary and secondary weapon.