#2872·ImHex

[Bug] File is not correctly reloaded after it has been modified: invalid data is shown

Author: madebrCreated Aug 30, 2026Updated Aug 30, 2026
Labelsbug

Operating System

Linux

What's the issue you encountered?

I'm currently writing a MS coff object file parser and looking at the generated object code with ImHex. After compilation, ImHex correctly notices the file has been changed and shows a banner:

File has been modified by a external source. Do you want to reload it? [Reload]

Pressing the Reload button in the banner causes invalid data to be shown in the hex editor. Selecting random things in the hex editor, causes it to change, but not to the correct values (verified with xxd).

How can the issue be reproduced?

  1. Compile a simple .c source to an object file (e.g. cl -c -Zi a.c)
  2. Open a.obj with ImHex (keep the program active)
  3. Modify a.c. e.g. add int a_very_long_external_value = 0x1337;
  4. Compile the source again: cl -c -Zi a.c
  5. ImHex should notify the file has changed, press the reload button
  6. Notice the contents is invalid

ImHex Version

1.39.0.WIP master@1d54431

ImHex Build Type

  • Nightly or built from sources

Installation type

AppImage

Additional context?

  • File -> Reload Current Data does not fix the invalid data in the Hex Editor