Skip to content

[Bug] Crash when using a custom backspace key in the pattern editor #2638

@malespiaut

Description

@malespiaut

Operating System

Linux

What's the issue you encountered?

ImHex crashes when I use my custom backspace key in the pattern editor.
I use a custom keyboard layout, under X11, that replaces the key B (AB05) with Backspace.

How can the issue be reproduced?

Open a file.
Go into the pattern editor.
Remove the backslashes of a comment using the custom backspace key.

ImHex Version

1.39.0.WIP-Debug master@70fdbd4a489aa32735e9b7104f5431a9a745eb8d

ImHex Build Type

  • Nightly or built from sources

Installation type

git clone + compiling a debug build myself

Additional context?

I'm using Arch Linux, with kernel 6.18.6-zen1-1-zen.

I hoped to have information about the backtrace, so I compiled the project using cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS_DEBUG="-O0 -ggdb3" -DCMAKE_CXX_FLAGS_DEBUG="-O0 -ggdb3" -DCMAKE_C_FLAGS="-O0 -ggdb3" -DCMAKE_CXX_FLAGS="-O0 -ggdb3", but it didn't help.

When crashing, ImHex displays the following:

[23:13:43] [FATAL] [main | Main]                Saved crash backup to '/home/xxx/.config/imhex/config/crash_backup.hexproj'
[23:13:43] [DEBUG] [main | Main]                Event posted: 'hex::EventAbnormalTermination'
[23:13:43] [FATAL] [main | Main]                Received signal 'SIGSEGV' (11)
[23:13:43] [INFO]  [main | Main]                Wrote crash.json file to /home/xxx/.config/imhex/config/crash.json
[23:13:43] [FATAL] [main | Main]                Printing stacktrace using implementation 'execinfo'
[23:13:43] [FATAL] [libimhex | Main]              (libimhex.so.1.39.0.WIP) | hex::trace::getStackTrace()
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libc.so.6) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libc.so.6) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | std::char_traits<char>::length(char const*)
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | std::basic_string_view<char, std::char_traits<char>>::basic_string_view(char const*)
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libimhex.so.1.39.0.WIP) | ImGui_ImplGlfw_KeyCallback(GLFWwindow*, int, int, int, int)
[23:13:43] [FATAL] [libimhex | Main]              (libglfw.so.3) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libglfw.so.3) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libc.so.6) | ??
[23:13:43] [FATAL] [libimhex | Main]              (libc.so.6) | __libc_start_main
[23:13:43] [FATAL] [libimhex | Main]              (imhex) | ??
[23:13:44] [DEBUG] [main | Main]                Event posted: 'hex::EventImHexClosing'
[23:13:44] [INFO]  [main | Main]                Exit task 'Prepare exit' finished successfully
[23:13:44] [INFO]  [main | Main]                Exit task 'Unloading plugins' finished successfully
[23:13:44] [INFO]  [main | Main]                Exit task 'Deleting old files' finished successfully

The file crash.json contains no useful information:

{
    "logFile": "",
    "project": "/home/xxx/.config/imhex/config/crash_backup.hexproj"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions