ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] Opening project, when other file/project is opened causes SegFault

Open glpnk opened this issue 9 months ago • 0 comments

Operating System

Windows/Linux

What's the issue you encountered?

Opening project, when different project or file is opened, crashes ImHex (SIGSEGV).

File naming explanation:

  • project: ImHex project with at least 1 file
  • new [file]: non project file
  • old [file]: file included in project

OS dependent things:

  • Drag-n-Drop file order:
    • Windows: When selecting multiple files, the file you drag becomes the first one;
    • Gnome: files in alphabetical order (or depends on ordering method)

How can the issue be reproduced?

Pattern in project file not required.

Issue may be reproduced in different ways:

  1. Drag-n-Drop "old" file and project
  2. Open/Drop old file, then project
  3. Open project, then open same project again

Sometimes opening new file, then project may crash app

Sometimes table in Pattern data window disappears

ImHex Version

1.33.2, nightly

ImHex Build Type

  • [ ] Nightly or built from sources

Installation type

any

Additional context?

OS: Windows, Linux, Web

On web opening project crashes tab

1.30.1 on Windows not crashing this way

Release 1.33.2 is harder to crash than nightly

Thanks to Discord members for helping with testing

glpnk avatar May 18 '24 13:05 glpnk