Blender bugging out when renaming bones

So I’m having this issue, where if I want to rename a bone, oftentimes the new name doesn’t get applied to the bone. Instead a different bone gets the name I gave to specific bone. Also for a couple of seconds viewport bugs out where it shows that exact name for all bones I select. I have to try several times to rename a bone for it to take affect.

Has anyone experienced this? I’m not finding people having had this issue anywhere on the web.

I’m using Blender 2.79.

Can you share the .blend file, even if it’s only part of the armature where you can reproduce the problem? So we can test.