ImHex icon indicating copy to clipboard operation
ImHex copied to clipboard

[Bug] X Error of failed request: BadWindow (invalid Window parameter)

Open marinjurjevic opened this issue 7 months ago • 1 comments

Operating System

Linux

What's the issue you encountered?

I've installed package from AUR. Tried to run it and I get following:

$> imhex                                                                                                                                                                                                       
[22:06:22] [INFO]  [main | Main]               Welcome to ImHex 1.37.4!
[22:06:22] [INFO]  [main | Main]               Compiled using commit master@ed24964
[22:06:22] [INFO]  [main | Main]               Running on Linux 5.15.179-1-MANJARO #1 SMP PREEMPT Thu Mar 13 13:45:22 UTC 2025 (x86_64)
[22:06:22] [INFO]  [main | Main]               Linux distribution: Manjaro Linux. Version: None
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Resource id in failed request:  0x5400007
  Serial number of failed request:  129
  Current serial number in output stream:  138

How can the issue be reproduced?

Launch from terminal or launcher

ImHex Version

1.37.4

ImHex Build Type

  • [x] Nightly or built from sources

Installation type

AUR package (1.37.4-1)

Additional context?

I'm using manjaro with i3 window manager. I've run ImGui applications in the past without issue so I'm not sure if this is related to ImGui or ImHex

screenfetch:


 ██████████████████  ████████ 
 ██████████████████  ████████     OS: Manjaro 25.0.0 Zetar
 ██████████████████  ████████     Kernel: x86_64 Linux 5.15.179-1-MANJARO
 ██████████████████  ████████     Uptime: 1h 29m
 ████████            ████████     Packages: 2112
 ████████  ████████  ████████     Shell: zsh 5.9
 ████████  ████████  ████████     Resolution: 4920x1920
 ████████  ████████  ████████     WM: i3
 ████████  ████████  ████████     GTK Theme: Nordic [GTK2/3]
 ████████  ████████  ████████     Icon Theme: Papirus-Dark
 ████████  ████████  ████████     Font: Noto Sans 10
 ████████  ████████  ████████     Disk: 1.9T / 3.1T (60%)
 ████████  ████████  ████████     CPU: Intel Core i7-7700K @ 8x 4.5GHz [40.0°C]
 ████████  ████████  ████████     GPU: NVIDIA GeForce GTX 1070
                                  RAM: 5413MiB / 15962MiB

Let me know if you need additional info.

marinjurjevic avatar Apr 14 '25 20:04 marinjurjevic

Hi @marinjurjevic , I think I ran into the same problem on Debian 12 today. I've filed https://github.com/WerWolv/ImHex/pull/2390 which fixes it for me.

  1. I think you can work around it by setting the IMHEX_SKIP_SPLASH_SCREEN=1 environment variable, could you try if that resolves the issue for you? IMHEX_SKIP_SPLASH_SCREEN=1 imhex should do the trick.
  2. If you are comfortable compiling from source, you can try my branch and see if that resolves it.

iwanders avatar Aug 08 '25 23:08 iwanders