I noticed accidently that if you swap a magazine that is attached to your current rifle, with another magazine that cannot be attached to you gun in your inventory by dragging it, the magazine instantly goes to you inventory without an animation and the gun becomes bugged and unable to reload another magazine. This I couldn't fix even with a relog.
This is on the current stable build 1.05.152380