Rigs edit mode origin different from object mode origin

Hello everyone. For some reason I can’t figure this out and I consider myself moderately good at blender. I’m sure it’s a simple solution but I can’t, for the life of me, figure out what’s going on. Basically, when my rig is in edit mode the origin of the rig is someplace random. When it’s in object mode it is exactly where it needs to be. If I move the object to the origin from the edit mode and go back to object mode, the origin moves to another random location and the mesh that the rig is attached to gets all jacked up. Here are some screenshots.

Object mode:


Edit mode:


Edit mode when moved to origin and tabbed back into object mode:


:confused:

Thank you all for your help!

Well, those are interesting images, but not much help in diagnosing the problem. Can you post the blend file?