-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Operating System
MacOS
What's the issue you encountered?
Every time I try to open a file from the command line, it causes an error, and Imhex cannot open.
Here is what the debug output looks like:
% imhex a5c8408a2966afe3a9f4e90b612bec744ead9a05bcc3f383904ae23c725b7b2c
[18:26:32] [INFO] [main | Main] Welcome to ImHex 1.38.0.WIP!
[18:26:32] [INFO] [main | Main] Compiled using commit master@b1e2185
[18:26:32] [INFO] [main | Main] Running on macOS 25.1.0 Darwin Kernel Version 25.1.0: Mon Oct 20 19:34:05 PDT 2025; root:xnu-12377.41.6~2/RELEASE_ARM64_T6041 (arm64)
[18:26:32] [INFO] [libimhex | Main] Opening file: /Applications/ImHex.app/Contents/Resources/a5c8408a2966afe3a9f4e90b612bec744ead9a05bcc3f383904ae23c725b7b2c
[18:26:33] [INFO] [main | Main] Native scaling set to: 1.0
[18:26:33] [INFO] [main | Main] Using 'Apple' GPU
[18:26:33] [INFO] [main | Init Tasks] Task 'Setting up environment' finished successfully in 0 ms
[18:26:33] [INFO] [main | Init Tasks] Task 'Creating directories' finished successfully in 3 ms
[18:26:33] [INFO] [main | Init Tasks] Task 'Loading settings' finished successfully in 0 ms
[18:26:33] [INFO] [libimhex | Init Tasks] Library 'fonts.hexpluglib' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Library 'ui.hexpluglib' initialized successfully
[18:26:33] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/minimal.hexws to /Users/username/Library/Application Support/imhex/workspaces/minimal.hexws
[18:26:33] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/default.hexws to /Users/username/Library/Application Support/imhex/workspaces/default.hexws
[18:26:33] [INFO] [builtin | Init Tasks] Extracting always_auto_extract/magic/magic.mgc to /Users/username/Library/Application Support/imhex/magic/magic.mgc
[18:26:33] [INFO] [libimhex | Init Tasks] Layout unlocked
[18:26:33] [INFO] [builtin | Init Tasks] Found crash.json file at /Users/username/Library/Application Support/imhex/config/crash.json
[18:26:33] [WARN] [builtin | Init Tasks] No project file or backup file found in crash.json file
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'builtin.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'decompress.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'diffing.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'disassembler.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'hashes.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'remote.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'script_loader.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'visualizers.hexplug' initialized successfully
[18:26:33] [INFO] [libimhex | Init Tasks] Plugin 'yara_rules.hexplug' initialized successfully
[18:26:33] [INFO] [main | Init Tasks] Task 'Loading plugins' finished successfully in 6 ms
[18:26:33] [INFO] [main | Init Tasks] Task 'Load Window Settings' finished successfully in 0 ms
[18:26:33] [INFO] [main | Init Tasks] Task 'Configuring UI scale' finished successfully in 0 ms
[18:26:33] [INFO] [main | Checking for updat] Task 'Checking for updates' finished successfully in 0 ms
[18:26:33] [INFO] [main | Init Tasks] ImHex fully started in 22ms
[18:26:33] [FATAL] [libimhex | Main] ImHex crashed during initial setup!
Error: Received signal 'SIGSEGV' (11)
2025-11-29 18:26:33.203 imhex[3005:167122] CFUserNotificationDisplayAlert: called from main application thread, will block waiting for a response.
[18:27:00] [FATAL] [main | Main] Printing stacktrace using implementation 'execinfo'
[18:27:00] [FATAL] [main | Main] (imhex) | hex::trace::getStackTrace()
[18:27:00] [FATAL] [main | Main] (imhex) | hex::crash::callCrashHandlers(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)
[18:27:00] [FATAL] [main | Main] (imhex) | triggerSafeShutdown
[18:27:00] [FATAL] [main | Main] (imhex) | hex::crash::signalHandler(int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)
[18:27:00] [FATAL] [main | Main] (imhex) | hex::crash::setupCrashHandlers()::$_0::__invoke(int)
[18:27:00] [FATAL] [main | Main] (libsystem_platform.dylib) | _sigtramp
[18:27:00] [FATAL] [main | Main] (builtin.hexplug) | hex::ui::ToastError::ToastError(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>)
[18:27:00] [FATAL] [main | Main] (builtin.hexplug) | void hex::Toast<hex::ui::ToastError>::open<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>&&)
[18:27:00] [FATAL] [main | Main] (builtin.hexplug) | hex::plugin::builtin::openFile(std::__1::__fs::filesystem::path const&)
[18:27:00] [FATAL] [main | Main] (imhex) | void hex::impl::Event<std::__1::__fs::filesystem::path>::call<hex::RequestOpenFile, std::__1::__fs::filesystem::path&>(std::__1::__fs::filesystem::path&) const
[18:27:00] [FATAL] [main | Main] (imhex) | void hex::EventManager::post<hex::RequestOpenFile, std::__1::__fs::filesystem::path&>(std::__1::__fs::filesystem::path&)
[18:27:00] [FATAL] [main | Main] (imhex) | hex::init::handleFileOpenRequest()
[18:27:00] [FATAL] [main | Main] (imhex) | hex::init::runImHex()
[18:27:00] [FATAL] [main | Main] (imhex) | main
[18:27:00] [FATAL] [main | Main] (dyld) | start
[18:27:00] [INFO] [main | Main] Exit task 'Prepare exit' finished successfully
[18:27:00] [INFO] [main | Main] Exit task 'Unloading plugins' finished successfully
[18:27:00] [INFO] [main | Main] Exit task 'Deleting old files' finished successfully
How can the issue be reproduced?
Install Imhex, add to .zshrc, and open a file from command line: imhex a5c8408a2966afe3a9f4e90b612bec744ead9a05bcc3f383904ae23c725b7b2c. This filename is the sha256 of the malware sample. You can download the sample from VT or I can send it to you if that's important.
export PATH="$PATH:/Applications/ImHex.app/Contents/MacOS"
ImHex Version
1.38.0.WIP
ImHex Build Type
- Nightly or built from sources
Installation type
DMG
Additional context?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working