-
-
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?
If I open the command line imhex with no command line parameters and then just select "Quit" from the menu, this error is shown:
[18:17:40] [INFO] [main | Main] Exit task 'Prepare exit' finished successfully
[18:17:40] [INFO] [main | Main] Exit task 'Unloading plugins' finished successfully
[18:17:40] [INFO] [main | Main] Exit task 'Deleting old files' finished successfully
imhex(2964,0x1f5b0e080) malloc: *** error for object 0xc4fabffc8: pointer being freed was not allocated
imhex(2964,0x1f5b0e080) malloc: *** set a breakpoint in malloc_error_break to debug
[18:17:40] [FATAL] [main | Main] Received signal 'SIGABRT' (6)
[18:17:40] [INFO] [main | Main] Wrote crash.json file to /Users/username/Library/Application Support/imhex/config/crash.json
[18:17:40] [FATAL] [main | Main] Program terminated with uncaught exception: std::__1::system_error()::what() -> mutex lock failed: Invalid argument
[18:17:40] [INFO] [main | Main] Wrote crash.json file to /Users/username/Library/Application Support/imhex/config/crash.json
libc++abi: terminate_handler unexpectedly threw an exception
zsh: abort imhex
Here is the contents of the json file that is referred to in the error:
% cat crash.json
{
"logFile": "",
"project": ""
}
How can the issue be reproduced?
Install imhex and add it to the PATH in .zshrc:
export PATH="$PATH:/Applications/ImHex.app/Contents/MacOS"
Then just open a new terminal window, run imhex, then wait till it opens, and finally select "Quit" from the menu. You will see this error in the debug log output. I noticed that this error happens every other time you open and quit imhex. On the alternate open/quit imhex appears to be doing something with reading the crash.json, and then does not actually crash on that quit. On those alternate open/quit, it shows this:
[18:17:19] [WARN] [builtin | Init Tasks] No project file or backup file found in crash.json file
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