Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ImHex Crashes Immediately After Opening a File #1529

Open
Mootix1313 opened this issue Feb 2, 2024 · 3 comments
Open

[Bug] ImHex Crashes Immediately After Opening a File #1529

Mootix1313 opened this issue Feb 2, 2024 · 3 comments

Comments

@Mootix1313
Copy link

I originally put these details in the comment section of issue #1485. As suggested, I installed the nightly version (build #5202) to see if my issue would be alleviated. However, it still persists. I've updated the ImHex details section, and included a link to the most recent crash report.


How can the issue be reproduced?

Steps

  1. Start-up imHex.
  2. Select a file to open in imHex.

Details

After attempting to open a file, imHex immediately crashes, which is followed by the Problem Report for... window.

Here, you're given the choice to acknowledge the issue by selecting OK (this closes the session/window), or to try to reopen the program by selecting reopen. imHex reopens just fine. However, if I opt to restore my lost data by selecting Yes, Restore imHex will attempt to do so, but will immediately crash. Sometimes I'll get a very short glimpse of the file I'm trying to open.

Side note, the files I'm trying to open are local to my computer.


ImHex Details

Version Build Type Install Type
1.32.2 latest arm64 dmg
1.32.2 nightly (#5202) arm64 dmg

Additional context?

I'm experiencing this issue on a Macbook Pro M1.

Uname Output

$> uname -m -o -r -v

Darwin 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64

Crash Report

Most Recent Crash Report: https://gist.github.com/Mootix1313/8b2e5b0a761d8faf47ba2d4cd1c58dc6

Original Crash Report: https://gist.github.com/Mootix1313/1636d9192d4fadf28410fb67c4922b1d

Originally posted by @Mootix1313 in #1485 (comment)

@WerWolv
Copy link
Owner

WerWolv commented Feb 2, 2024

Did some further investigation now and it looks like this is a libmagic bug: https://bugs.astron.com/view.php?id=125
I was able to reproduce the crash now on my Mac but it doesn't happen on Windows as far as I can tell.

I've disabled compression support for now for libmagic and that seems to have fixed it for me. Could you please check the latest nightly again if it's still happening for you there?

@Mootix1313
Copy link
Author

Did some further investigation now and it looks like this is a libmagic bug: https://bugs.astron.com/view.php?id=125 I was able to reproduce the crash now on my Mac but it doesn't happen on Windows as far as I can tell.

I've disabled compression support for now for libmagic and that seems to have fixed it for me. Could you please check the latest nightly again if it's still happening for you there?

I've tried build #5205 and #5210, which both produce the same behavior. This also occurs when selecting Create New File from the main landing page after opening ImHex.

Exception Type:        EXC_BAD_ACCESS (SIGABRT)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000062
Exception Codes:       0x0000000000000001, 0x0000000000000062

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   imhex [68226]

VM Region Info: 0x62 is not in any region.  Bytes before following region: 4372938654
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      104a5c000-104ad4000    [  480K] r-x/r-x SM=COW  /Applications/ImHex.app/Contents/MacOS/imhex

@Mootix1313
Copy link
Author

Just an update, the current native arm build (v1.33.0) exhibits the same behavior described above. However the x86_64 version, imhex-1.33.0-macOS-x86_64.dmg, operates just fine. I wasn't able to run the x86_64 version of the previous release, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants