WerWolv / ImHex

🔍 A Hex Editor for Reverse Engineers, Programmers and people who value their retinas when working at 3 AM.
https://imhex.werwolv.net
GNU General Public License v2.0
39.54k stars 1.74k forks source link

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

Open glpnk opened 1 month ago

glpnk commented 1 month ago

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:

OS dependent things:

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

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