hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.5k stars 899 forks source link

[bug] KiCad freezing when selecting settings #1372

Closed werdahias closed 1 year ago

werdahias commented 1 year ago

If I use KiCad ( v. 6.0.10) it works as intended (opening projects, placing symbols, routing etc.), all fine. The program itself is a bit blurry with general scaling set to 2. The second I click on Settings the program freezes and nothing happens. I also can't kill the window. I also managed to reproduce a bug where the context menu would stay up even if the window was closed. I'd appreciate it if you could look into it. On GNOME it works fine. 20230113_16h19m59s_grim

vaxerski commented 1 year ago

GNOME is not a good project to compare against. Please test on sway-git.

122131 commented 1 year ago

I can reproduce the bug with KiCad v6.0.10-1 on Hyprland v0.20.1beta. It works correctly on Sway v1:1.8-3 and wlroots 0.16.1-2. (Distro is Arch Linux) I will try to see if something shows up in debug mode.

122131 commented 1 year ago

Steps to reproduce

1- Open eeschema (schematic editor from KiCad suite) 2- Click on "edit schematic setup..." icon 3- Application freezes

Video example

https://user-images.githubusercontent.com/18216049/212422074-dae158af-4bfc-441e-9236-2de4663c591f.mp4

Expected behavior

Setup window opens

Video example (on sway-git)

https://user-images.githubusercontent.com/18216049/212422251-e81e973f-dde3-40c7-a5d3-a3e6b3c8e362.mp4

Packages info

Name            : sway-git
Version         : r7051.2f2cdd60-1
Description     : Tiling Wayland compositor
                  and replacement for the i3
                  window manager
Architecture    : x86_64
URL             : https://swaywm.org
Licenses        : MIT
Groups          : None
Provides        : sway
Depends On      : cairo  gdk-pixbuf2  json-c
                  pango  polkit  pcre2
                  swaybg-git  ttf-font
                  wlroots-git
                  xorg-server-xwayland
Optional Deps   : alacritty: Terminal
                  emulator used by the
                  default config
                  dmenu: Application launcher
                  grim: Screenshot utility
                  [installed]
                  i3status: Status line
                  mako: Lightweight
                  notification daemon
                  slurp: Select a region
                  [installed]
                  swayidle: Idle management
                  daemon [installed]
                  swaylock: Screen locker
                  [installed]
                  wallutils: Timed wallpapers
                  waybar: Highly customizable
                  bar
Required By     : None
Optional For    : None
Conflicts With  : sway
Replaces        : None
Installed Size  : 5.63 MiB
Packager        : Unknown Packager
Build Date      : Fri 13 Jan 2023 10:19:19 PM
                  CET
Install Date    : Fri 13 Jan 2023 10:19:33 PM
                  CET
Install Reason  : Explicitly installed
Install Script  : Yes
Validated By    : None
Name            : wlroots-git
Version         : 0.17.0.r6059.5f264a7d-1
Description     : Modular Wayland compositor
                  library (git version)
Architecture    : x86_64
URL             : https://gitlab.freedesktop.org/wlroots/wlroots
Licenses        : custom:MIT
Groups          : None
Provides        : libwlroots.so=12-64
                  wlroots=0.17.0
Depends On      : glslang  libinput  libxcb
                  libxkbcommon
                  opengl-driver  pixman
                  wayland  xcb-util-errors
                  xcb-util-renderutil
                  xcb-util-wm  seatd
                  vulkan-icd-loader
                  vulkan-validation-layers
                  xorg-xwayland
Optional Deps   : None
Required By     : sway-git
Optional For    : None
Conflicts With  : wlroots
Replaces        : None
Installed Size  : 1347.13 KiB
Packager        : Unknown Packager
Build Date      : Fri 13 Jan 2023 08:07:10 PM
                  CET
Install Date    : Fri 13 Jan 2023 08:25:03 PM
                  CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : None
Hyprland: built from source (9c77415cd) in debug mode.
Name            : xorg-xwayland
Version         : 22.1.7-1
Description     : run X clients under wayland
Architecture    : x86_64
URL             : https://xorg.freedesktop.org
Licenses        : custom
Groups          : xorg
Provides        : xorg-server-xwayland
Depends On      : nettle  libepoxy
                  systemd-libs  libxfont2
                  pixman  xorg-server-common
                  libxcvt
Optional Deps   : None
Required By     : hyprland-bin  sway-git
                  wlroots-git
Optional For    : None
Conflicts With  : xorg-server-xwayland
Replaces        : xorg-server-xwayland
Installed Size  : 2.20 MiB
Packager        : Andreas Radke
                  <andyrtr@archlinux.org>
Build Date      : Mon 19 Dec 2022 01:38:11 PM
                  CET
Install Date    : Mon 19 Dec 2022 11:48:13 PM
                  CET
Install Reason  : Installed as a dependency
                  for another package
Install Script  : No
Validated By    : SHA-256 Sum
Name            : kicad
Version         : 6.0.10-1
Description     : Electronic schematic and
                  printed circuit board (PCB)
                  design tools
Architecture    : x86_64
URL             : http://kicad.org/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : boost-libs  curl  glew
                  glm  ngspice  opencascade
                  python  python-wxpython
                  wxwidgets-gtk3
Optional Deps   : kicad-library: for
                  footprints, symbols and
                  templates [installed]
                  kicad-library-3d: for 3D
                  models of components
                  [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 193.13 MiB
Packager        : George Rawlinson
                  <grawlinson@archlinux.org>
Build Date      : Sat 24 Dec 2022 02:24:08 AM
                  CET
Install Date    : Sat 24 Dec 2022 09:16:31 AM
                  CET
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : SHA-256 Sum

Logs

This is the log from Hyprlandd

[LOG] Instance Signature: 9c77415cda40eb334dd9306c504c0003dc14b53f_1673643982
[LOG] Hyprland PID: 84218
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: zephyrus
[LOG] Release: 6.1.4-arch1-1
[LOG] Version: #1 SMP PREEMPT_DYNAMIC Sat, 07 Jan 2023 15:10:07 +0000

[LOG] GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA106M [GeForce RTX 3060 Mobile / Max-Q] [10de:2520] (rev a1) (prog-if 00 [VGA controller])
04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c4) (prog-if 00 [VGA controller])

[WARN] Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.

[LOG] os-release:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

[LOG] ========================

[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/

[LOG]
Current splash: "Hyper".replace("e", "")

[LOG] Hyprland init finished.
[LOG] Creating the CHyprError!
[LOG] Creating the KeybindManager!
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 200 points, mem usage: 3.20kB, time to bake: 82.36µs. Estimated average calc time: 0.45µs.
[LOG] Creating the LayoutManager!
[LOG] Creating the ConfigManager!
[LOG] Creating the ThreadManager!
[LOG] Reloading the config!
[LOG] Created a bezier curve, baked 200 points, mem usage: 3.20kB, time to bake: 75.27µs. Estimated average calc time: 0.30µs.
[LOG] Created a bezier curve, baked 200 points, mem usage: 3.20kB, time to bake: 73.77µs. Estimated average calc time: 0.30µs.
[LOG] Registered dynamic var "$mainMod" -> SUPER
[LOG] Hypr socket started at /tmp/hypr/9c77415cda40eb334dd9306c504c0003dc14b53f_1673643982/.socket.sock
[LOG] Creating the InputManager!
[LOG] Creating the CHyprOpenGLImpl!
[LOG] Creating the Hypr OpenGL Renderer!
[LOG] Using: OpenGL ES 3.2 Mesa 22.3.2
[LOG] Vendor: AMD
[LOG] Renderer: AMD Radeon Graphics (renoir, LLVM 14.0.6, DRM 3.49, 6.1.4-arch1-1)
[LOG] Supported extensions size: 148
[LOG] Creating the HyprRenderer!
[LOG] Creating the XWaylandManager!
[LOG] Registered signal for owner e9380: e93c0 -> 969940 (owner: XWayland Manager)
[LOG] Registered signal for owner e9380: e93d0 -> 969960 (owner: XWayland Manager)
[LOG] CHyprXWaylandManager started on display :1
[LOG] Creating the ProtocolManager!
[LOG] ToplevelExportManager started successfully!
[LOG] Creating the EventManager!
[LOG] Creating the HyprDebugOverlay!
[LOG] Registered signal for owner 940: 968 -> 934530 (owner: Backend)
[LOG] Registered signal for owner 41e00: 41e50 -> 934590 (owner: XDG Shell)
[LOG] Registered signal for owner 72a40: 72a58 -> 9345d0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72a68 -> 9345f0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72a78 -> 934610 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72a88 -> 934630 (owner: WLRCursor)
[LOG] Hypr socket 2 started at /tmp/hypr/9c77415cda40eb334dd9306c504c0003dc14b53f_1673643982/.socket2.sock
[LOG] Registered signal for owner 72a40: 72a98 -> 934650 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72aa8 -> 934870 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72ab8 -> 9348b0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72ac8 -> 934890 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72ad8 -> 9348d0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72ae8 -> 9348f0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72af8 -> 934910 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b38 -> 9349b0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b28 -> 9349d0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b48 -> 9349f0 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b68 -> 934a10 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b08 -> 934a30 (owner: WLRCursor)
[LOG] Registered signal for owner 72a40: 72b18 -> 934a50 (owner: WLRCursor)
[LOG] Registered signal for owner 940: 958 -> 934670 (owner: Backend)
[LOG] Registered signal for owner 1760: 48f68 -> 9346d0 (owner: Seat)
[LOG] Registered signal for owner 1760: 48f78 -> 9346f0 (owner: Seat)
[LOG] Registered signal for owner 1760: 48fb8 -> 934770 (owner: Seat)
[LOG] Registered signal for owner 1760: 48fc8 -> 934790 (owner: Seat)
[LOG] Registered signal for owner 1760: 48f78 -> 9346f0 (owner: Seat)
[LOG] Registered signal for owner 1760: 48f98 -> 934710 (owner: Seat)
[LOG] Registered signal for owner 64a20: 64a40 -> 934570 (owner: LayerShell)
[LOG] Registered signal for owner 63830: 63850 -> 934510 (owner: OutputLayout)
[LOG] Registered signal for owner fd5d0: fd608 -> 934730 (owner: OutputMgr)
[LOG] Registered signal for owner fd5d0: fd618 -> 934750 (owner: OutputMgr)
[LOG] Registered signal for owner bf450: bf480 -> 9347b0 (owner: InhibitMgr)
[LOG] Registered signal for owner bf450: bf490 -> 9347d0 (owner: InhibitMgr)
[LOG] Registered signal for owner 64a90: 64aa8 -> 9346b0 (owner: PointerConstraints)
[LOG] Registered signal for owner 257ba0: 257bd0 -> 9347f0 (owner: XDGDecoMgr)
[LOG] Registered signal for owner 64b70: 64ba0 -> 934690 (owner: VirtPtrMgr)
[LOG] Registered signal for owner 64b00: 64b30 -> 934990 (owner: VKeyboardMgr)
[LOG] Registered signal for owner f640: f640 -> 934810 (owner: WLRRenderer)
[LOG] Registered signal for owner 257e20: 257e50 -> 934830 (owner: WLRIdleInhibitMgr)
[LOG] Registered signal for owner 250420: 250450 -> 934930 (owner: PowerMgr)
[LOG] Registered signal for owner 64c50: 64c80 -> 934950 (owner: IMEMgr)
[LOG] Registered signal for owner 64be0: 64c10 -> 934970 (owner: TextInputMgr)
[LOG] Registered signal for owner bf710: bf738 -> 9345b0 (owner: ActivationV1)
[LOG] Registered signal for owner 14d0: 79370 -> 934550 (owner: DRM)
[LOG] Registered signal for owner 40: 1a0 -> 934850 (owner: Session)
[LOG] Running on WAYLAND_DISPLAY: wayland-2
[LOG] Attached a keyboard with name Asus Wireless Radio Control
[LOG] Registered signal for owner f910: 2cbd0 -> f918 (owner: Keyboard)
[LOG] Registered signal for owner f910: 2cbc0 -> f980 (owner: Keyboard)
[LOG] Registered signal for owner f910: 2caa0 -> fa50 (owner: Keyboard)
[LOG] Registered signal for owner f910: 2cbe0 -> f9e8 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "asus-wireless-radio-control", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Wireless Radio Control"
[LOG] New keyboard created, pointers Hypr: f910 and WLR: 2ca88
[LOG] Attached a keyboard with name Video Bus
[LOG] Registered signal for owner 71590: 2e3d0 -> 71598 (owner: Keyboard)
[LOG] Registered signal for owner 71590: 2e3c0 -> 71600 (owner: Keyboard)
[LOG] Registered signal for owner 71590: 2e2a0 -> 716d0 (owner: Keyboard)
[LOG] Registered signal for owner 71590: 2e3e0 -> 71668 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "video-bus", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Video Bus"
[LOG] New keyboard created, pointers Hypr: 71590 and WLR: 2e288
[LOG] Attached a switch device with name Lid Switch
[LOG] New switch with name "Lid Switch" added
[LOG] Registered signal for owner 104050: 90338 -> 104058 (owner: SwitchDevice)
[LOG] Registered signal for owner 104050: 90358 -> 1040c0 (owner: SwitchDevice)
[LOG] Attached a keyboard with name Power Button
[LOG] Registered signal for owner 73190: 907d0 -> 73198 (owner: Keyboard)
[LOG] Registered signal for owner 73190: 907c0 -> 73200 (owner: Keyboard)
[LOG] Registered signal for owner 73190: 906a0 -> 732d0 (owner: Keyboard)
[LOG] Registered signal for owner 73190: 907e0 -> 73268 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "power-button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Power Button"
[LOG] New keyboard created, pointers Hypr: 73190 and WLR: 90688
[LOG] Attached a keyboard with name Sleep Button
[LOG] Registered signal for owner 74d90: 91fd0 -> 74d98 (owner: Keyboard)
[LOG] Registered signal for owner 74d90: 91fc0 -> 74e00 (owner: Keyboard)
[LOG] Registered signal for owner 74d90: 91ea0 -> 74ed0 (owner: Keyboard)
[LOG] Registered signal for owner 74d90: 91fe0 -> 74e68 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "sleep-button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Sleep Button"
[LOG] New keyboard created, pointers Hypr: 74d90 and WLR: 91e88
[LOG] Attached a keyboard with name Asus Keyboard
[LOG] Registered signal for owner 76990: 937d0 -> 76998 (owner: Keyboard)
[LOG] Registered signal for owner 76990: 937c0 -> 76a00 (owner: Keyboard)
[LOG] Registered signal for owner 76990: 936a0 -> 76ad0 (owner: Keyboard)
[LOG] Registered signal for owner 76990: 937e0 -> 76a68 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "asus-keyboard", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Keyboard"
[LOG] New keyboard created, pointers Hypr: 76990 and WLR: 93688
[LOG] Attached a mouse with name Asus Keyboard
[LOG] New mouse has libinput sens 0.00 (0.00) with accel profile 0 (0)
[LOG] Applied config to mouse asus-keyboard-1, sens 0.00
[LOG] Registered signal for owner 1291d0: 93820 -> 129290 (owner: Mouse)
[LOG] New mouse created, pointer WLR: 93808
[LOG] Attached a keyboard with name Asus Keyboard
[LOG] Registered signal for owner 78590: 94fd0 -> 78598 (owner: Keyboard)
[LOG] Registered signal for owner 78590: 94fc0 -> 78600 (owner: Keyboard)
[LOG] Registered signal for owner 78590: 94ea0 -> 786d0 (owner: Keyboard)
[LOG] Registered signal for owner 78590: 94fe0 -> 78668 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "asus-keyboard-2", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Keyboard"
[LOG] New keyboard created, pointers Hypr: 78590 and WLR: 94e88
[LOG] Attached a mouse with name ELAN1201:00 04F3:3098 Mouse
[LOG] New mouse has libinput sens 0.00 (0.00) with accel profile 2 (2)
[LOG] Applied config to mouse asus-keyboard-1, sens 0.00
[LOG] Applied config to mouse elan1201:00-04f3:3098-mouse, sens 0.00
[LOG] Registered signal for owner 129c50: 96820 -> 129d10 (owner: Mouse)
[LOG] New mouse created, pointer WLR: 96808
[LOG] Attached a mouse with name ELAN1201:00 04F3:3098 Touchpad
[LOG] New mouse has libinput sens 0.00 (0.00) with accel profile 2 (2)
[LOG] Applied config to mouse asus-keyboard-1, sens 0.00
[LOG] Applied config to mouse elan1201:00-04f3:3098-mouse, sens 0.00
[LOG] Applied config to mouse elan1201:00-04f3:3098-touchpad, sens 0.00
[LOG] Registered signal for owner 129dd0: 96e20 -> 129e90 (owner: Mouse)
[LOG] New mouse created, pointer WLR: 96e08
[LOG] Attached a keyboard with name Asus WMI hotkeys
[LOG] Registered signal for owner 7a190: 973d0 -> 7a198 (owner: Keyboard)
[LOG] Registered signal for owner 7a190: 973c0 -> 7a200 (owner: Keyboard)
[LOG] Registered signal for owner 7a190: 972a0 -> 7a2d0 (owner: Keyboard)
[LOG] Registered signal for owner 7a190: 973e0 -> 7a268 (owner: Keyboard)
[LOG] ApplyConfigToKeyboard for "asus-wmi-hotkeys", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus WMI hotkeys"
[LOG] New keyboard created, pointers Hypr: 7a190 and WLR: 97288
[LOG] Adding completely new monitor.
[LOG] Registered signal for owner 7bd90: c49c0 -> 7bee0 (owner: )
[LOG] Registered signal for owner 7bd90: c4a50 -> 7bf48 (owner: )
[LOG] Registered signal for owner 7bd90: c4a40 -> 7bfb0 (owner: )
[WARN] No rule found for eDP-1, trying to use the first.
[LOG] Applying monitor rule for eDP-1
[LOG] Setting preferred mode for eDP-1
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Added new monitor with name eDP-1 at 0,0 with size 1920x1080, pointer c4880
[LOG] New monitor: WORKSPACEID 1, exists: 0
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Hyprland is ready, running the event loop!
[LOG] ApplyConfigToKeyboard for "asus-wireless-radio-control", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Wireless Radio Control"
[LOG] ApplyConfigToKeyboard for "video-bus", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Video Bus"
[LOG] ApplyConfigToKeyboard for "power-button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Power Button"
[LOG] ApplyConfigToKeyboard for "sleep-button", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Sleep Button"
[LOG] ApplyConfigToKeyboard for "asus-keyboard", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Keyboard"
[LOG] ApplyConfigToKeyboard for "asus-keyboard-2", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus Keyboard"
[LOG] ApplyConfigToKeyboard for "asus-wmi-hotkeys", hasconfig: 0
[LOG] Attempting to create a keymap for layout us with variant  (rules: , model: , options: )
[LOG] Set the keyboard layout to us and variant to  for keyboard "Asus WMI hotkeys"
[LOG] Applied config to mouse asus-keyboard-1, sens 0.00
[LOG] Applied config to mouse elan1201:00-04f3:3098-mouse, sens 0.00
[LOG] Applied config to mouse elan1201:00-04f3:3098-touchpad, sens 0.00
[WARN] No rule found for eDP-1, trying to use the first.
[LOG] Applying monitor rule for eDP-1
[LOG] Setting preferred mode for eDP-1
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Monitor eDP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Allocated texture for BGTex
[LOG] Background created for monitor eDP-1
[LOG] Shaders initialized successfully.
[LOG] Keybind triggered, calling dispatcher (64, , 113)
[LOG] Executing WAYLAND_DISPLAY=wayland-2 DISPLAY=:1 kitty
[LOG] Process Created with pid 84279
[LOG] New TextInput added!
[LOG] Registered signal for owner 156f90: 207588 -> 156fa0 (owner: textInput)
[LOG] Registered signal for owner 156f90: 207598 -> 157070 (owner: textInput)
[LOG] Registered signal for owner 156f90: 2075a8 -> 157008 (owner: textInput)
[LOG] Registered signal for owner 156f90: 2075b8 -> 1570d8 (owner: textInput)
[LOG] New XDG Surface created. (class: kitty)
[LOG] Registered signal for owner e04d00: 207720 -> e04d68 (owner: XDG Window)
[LOG] Registered signal for owner e04d00: 207730 -> e04dd0 (owner: XDG Window)
[LOG] Registered signal for owner e04d00: 2076f0 -> e04e38 (owner: XDG Window)
[LOG] Registered signal for owner e04d00: 1cdd80 -> e05318 (owner: Toplevel)
[LOG] Registered signal for owner e04d00: 1cdd90 -> e05380 (owner: Toplevel)
[LOG] Registered signal for owner e04d00: 1cdda0 -> e052b0 (owner: Toplevel)
[LOG] Searching for matching rules for kitty (title: kitty)
[LOG] OPENINGON: 1269a0, Workspace: 1, Monitor: 0
[LOG] Set keyboard focus to surface 107080, with window name: kitty
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner e04d00: 107348 -> e04d00 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d3a00 -> e04ea0 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: 207710 -> e04fd8 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d3990 -> e05110 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d39b0 -> e050a8 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d39c0 -> e05040 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d39d0 -> e05178 (owner: XDG Window Late)
[LOG] Registered signal for owner e04d00: d39a0 -> e04f70 (owner: XDG Window Late)
[LOG] Registered signal for owner cb650: 107358 -> cb658 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner cb650: 107348 -> cb6c0 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner cb650: 107368 -> cb728 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: e04d00)
[LOG] Map request dispatched, monitor eDP-1, xywh: 22.000000 22.000000 1236.000000 676.000000
[LOG] Framebuffer created, status 36053
[LOG] Searching for matching rules for kitty (title: zsh)
[LOG] Window e04d00 set title to zsh
[LOG] Searching for matching rules for kitty (title: ~)
[LOG] Window e04d00 set title to ~
[LOG] Searching for matching rules for kitty (title: admin@zephyrus:~)
[LOG] Window e04d00 set title to admin@zephyrus:~
[LOG] Searching for matching rules for kitty (title: eeschema)
[LOG] Window e04d00 set title to eeschema
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 1a92900: babe0 -> 1a92968 (owner: XWayland Window)
[LOG] Registered signal for owner 1a92900: babf0 -> 1a929d0 (owner: XWayland Window)
[LOG] Registered signal for owner 1a92900: bab60 -> 1a92a38 (owner: XWayland Window)
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 1ad8900: baf60 -> 1ad8968 (owner: XWayland Window)
[LOG] Registered signal for owner 1ad8900: baf70 -> 1ad89d0 (owner: XWayland Window)
[LOG] Registered signal for owner 1ad8900: baee0 -> 1ad8a38 (owner: XWayland Window)
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 1ad9d00: bb2e0 -> 1ad9d68 (owner: XWayland Window)
[LOG] Registered signal for owner 1ad9d00: bb2f0 -> 1ad9dd0 (owner: XWayland Window)
[LOG] Registered signal for owner 1ad9d00: bb260 -> 1ad9e38 (owner: XWayland Window)
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 1ae6500: bb660 -> 1ae6568 (owner: XWayland Window)
[LOG] Registered signal for owner 1ae6500: bb670 -> 1ae65d0 (owner: XWayland Window)
[LOG] Registered signal for owner 1ae6500: bb5e0 -> 1ae6638 (owner: XWayland Window)
[LOG] Window 1ae6500 destroyed, queueing. (class unmanaged X11)
[LOG] XWayland class raw: eeschema
[LOG] Callback 1ae6590 -> 1ae6588, XWayland Window removed.
[LOG] Callback 1ae65f8 -> 1ae65f0, XWayland Window removed.
[LOG] Callback 1ae6660 -> 1ae6658, XWayland Window removed.
[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 1ae6500 removed instantly
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 1b17100: bb9e0 -> 1b17168 (owner: XWayland Window)
[LOG] Registered signal for owner 1b17100: bb9f0 -> 1b171d0 (owner: XWayland Window)
[LOG] Registered signal for owner 1b17100: bb960 -> 1b17238 (owner: XWayland Window)
[LOG] Registered signal for owner 1b17100: 2f5dc0 -> 1b17718 (owner: Toplevel)
[LOG] Registered signal for owner 1b17100: 2f5dd0 -> 1b17780 (owner: Toplevel)
[LOG] Registered signal for owner 1b17100: 2f5de0 -> 1b176b0 (owner: Toplevel)
[LOG] Searching for matching rules for eeschema (title: [no schematic loaded] — Schematic Editor)
[LOG] OPENINGON: 1269a0, Workspace: 1, Monitor: 0
[LOG] Set keyboard focus to surface 154c80, with window name: [no schematic loaded] — Schematic Editor
[LOG] Window got assigned a surfaceTreeNode 0
[LOG] Registered signal for owner 1b17100: bb9c0 -> 1b17370 (owner: XWayland Window Late)
[LOG] Registered signal for owner 1b17100: bb9d0 -> 1b175e0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 1b17100: bb970 -> 1b17648 (owner: XWayland Window Late)
[LOG] Registered signal for owner 1b17100: bba00 -> 1b172a0 (owner: XWayland Window Late)
[LOG] Registered signal for owner 1b17100: bb9a0 -> 1b174a8 (owner: Xwayland Window Late)
[ERR] Tried to connect a listener twice?!
[LOG] Registered signal for owner cd250: 154f58 -> cd258 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner cd250: 154f48 -> cd2c0 (owner: SurfaceTreeNode)
[LOG] Registered signal for owner cd250: 154f68 -> cd328 (owner: SurfaceTreeNode)
[LOG] Creating a surfaceTree Root! (pWindow: 1b17100)
[LOG] Map request dispatched, monitor eDP-1, xywh: 22.000000 22.000000 611.000000 676.000000
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner 21ef900: 1329e0 -> 21ef968 (owner: XWayland Window)
[LOG] Registered signal for owner 21ef900: 1329f0 -> 21ef9d0 (owner: XWayland Window)
[LOG] Registered signal for owner 21ef900: 132960 -> 21efa38 (owner: XWayland Window)
[LOG] Keybind triggered, calling dispatcher (64, , 109)
[LOG] Destroying workspace ID 1
[WARN] Suppressed (ignoreevents true / shutting down) event of type destroyworkspace, content: 1
[LOG] Callback e053a8 -> e053a0, Toplevel removed.
[LOG] Callback e05340 -> e05338, Toplevel removed.
[LOG] Callback e052d8 -> e052d0, Toplevel removed.
[LOG] Callback e051a0 -> e05198, XDG Window Late removed.
[LOG] Callback e05138 -> e05130, XDG Window Late removed.
[LOG] Callback e050d0 -> e050c8, XDG Window Late removed.
[LOG] Callback e05068 -> e05060, XDG Window Late removed.
[LOG] Callback e05000 -> e04ff8, XDG Window Late removed.
[LOG] Callback e04f98 -> e04f90, XDG Window Late removed.
[LOG] Callback e04ec8 -> e04ec0, XDG Window Late removed.
[LOG] Callback e04e60 -> e04e58, XDG Window removed.
[LOG] Callback e04df8 -> e04df0, XDG Window removed.
[LOG] Callback e04d90 -> e04d88, XDG Window removed.
[LOG] Callback e04d28 -> e04d20, XDG Window Late removed.
[LOG] Callback 1a92a60 -> 1a92a58, XWayland Window removed.
[LOG] Callback 1a929f8 -> 1a929f0, XWayland Window removed.
[LOG] Callback 1a92990 -> 1a92988, XWayland Window removed.
[LOG] Callback 1b177a8 -> 1b177a0, Toplevel removed.
[LOG] Callback 1b17740 -> 1b17738, Toplevel removed.
[LOG] Callback 1b176d8 -> 1b176d0, Toplevel removed.
[LOG] Callback 1b17670 -> 1b17668, XWayland Window Late removed.
[LOG] Callback 1b17608 -> 1b17600, XWayland Window Late removed.
[LOG] Callback 1b174d0 -> 1b174c8, Xwayland Window Late removed.
[LOG] Callback 1b17398 -> 1b17390, XWayland Window Late removed.
[LOG] Callback 1b172c8 -> 1b172c0, XWayland Window Late removed.
[LOG] Callback 1b17260 -> 1b17258, XWayland Window removed.
[LOG] Callback 1b171f8 -> 1b171f0, XWayland Window removed.
[LOG] Callback 1b17190 -> 1b17188, XWayland Window removed.
[LOG] Callback 21efa60 -> 21efa58, XWayland Window removed.
[LOG] Callback 21ef9f8 -> 21ef9f0, XWayland Window removed.
[LOG] Callback 21ef990 -> 21ef988, XWayland Window removed.
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] Subsurface Node cd250 destroyed
[LOG] Callback cd2e8 -> cd2e0, SurfaceTreeNode removed.
[LOG] Callback cd280 -> cd278, SurfaceTreeNode removed.
[LOG] Callback cd350 -> cd348, SurfaceTreeNode removed.
[LOG] Executing WAYLAND_DISPLAY=wayland-2 sleep 5 && kill -9 84218
[LOG] Process Created with pid 84473
[LOG] Hyprland reached the end.
[LOG] Subsurface Node cb650 destroyed
[LOG] Callback cb6e8 -> cb6e0, SurfaceTreeNode removed.
[LOG] Callback cb680 -> cb678, SurfaceTreeNode removed.
[LOG] Callback cb750 -> cb748, SurfaceTreeNode removed.
[LOG] Callback 7a2f8 -> 7a2f0, Keyboard removed.
[LOG] Callback 7a1c0 -> 7a1b8, Keyboard removed.
[LOG] Callback 7a228 -> 7a220, Keyboard removed.
[LOG] Callback 7a290 -> 7a288, Keyboard removed.
[LOG] Destroyed keyboard 7a190
[LOG] Callback 129eb8 -> 129eb0, Mouse removed.
[LOG] Callback 129d38 -> 129d30, Mouse removed.
[LOG] Callback 786f8 -> 786f0, Keyboard removed.
[LOG] Callback 785c0 -> 785b8, Keyboard removed.
[LOG] Callback 78628 -> 78620, Keyboard removed.
[LOG] Callback 78690 -> 78688, Keyboard removed.
[LOG] Destroyed keyboard 78590
[LOG] Callback 76af8 -> 76af0, Keyboard removed.
[LOG] Callback 769c0 -> 769b8, Keyboard removed.
[LOG] Callback 76a28 -> 76a20, Keyboard removed.
[LOG] Callback 76a90 -> 76a88, Keyboard removed.
[LOG] Destroyed keyboard 76990
[LOG] Callback 1292b8 -> 1292b0, Mouse removed.
[LOG] Callback 74ef8 -> 74ef0, Keyboard removed.
[LOG] Callback 74dc0 -> 74db8, Keyboard removed.
[LOG] Callback 74e28 -> 74e20, Keyboard removed.
[LOG] Callback 74e90 -> 74e88, Keyboard removed.
[LOG] Destroyed keyboard 74d90
[LOG] Callback 732f8 -> 732f0, Keyboard removed.
[LOG] Callback 731c0 -> 731b8, Keyboard removed.
[LOG] Callback 73228 -> 73220, Keyboard removed.
[LOG] Callback 73290 -> 73288, Keyboard removed.
[LOG] Destroyed keyboard 73190
[LOG] Callback 1040e8 -> 1040e0, SwitchDevice removed.
[LOG] Callback 104080 -> 104078, SwitchDevice removed.
[LOG] Callback 716f8 -> 716f0, Keyboard removed.
[LOG] Callback 715c0 -> 715b8, Keyboard removed.
[LOG] Callback 71628 -> 71620, Keyboard removed.
[LOG] Callback 71690 -> 71688, Keyboard removed.
[LOG] Destroyed keyboard 71590
[LOG] Callback fa78 -> fa70, Keyboard removed.
[LOG] Callback f940 -> f938, Keyboard removed.
[LOG] Callback f9a8 -> f9a0, Keyboard removed.
[LOG] Callback fa10 -> fa08, Keyboard removed.
[LOG] Destroyed keyboard f910
[LOG] Destroy called for monitor eDP-1
[LOG] Removing monitor eDP-1 from realMonitors
[LOG] Callback 7bfd8 -> 7bfd0,  removed.
[LOG] Callback 7bf70 -> 7bf68,  removed.
[LOG] Callback 7bf08 -> 7bf00,  removed.
[LOG] Callback 1ad8a60 -> 1ad8a58, XWayland Window removed.
[LOG] Callback 1ad89f8 -> 1ad89f0, XWayland Window removed.
[LOG] Callback 1ad8990 -> 1ad8988, XWayland Window removed.
[LOG] Callback 1ad9e60 -> 1ad9e58, XWayland Window removed.
[LOG] Callback 1ad9df8 -> 1ad9df0, XWayland Window removed.
[LOG] Callback 1ad9d90 -> 1ad9d88, XWayland Window removed.
[LOG] Callback 157100 -> 1570f8, textInput removed.
[LOG] Callback 157098 -> 157090, textInput removed.
[LOG] Callback 157030 -> 157028, textInput removed.
[LOG] Callback 156fc8 -> 156fc0, textInput removed.

Remarks

This section seems to be the relevant one:

[ERR] onWindowRemovedTiling node null?
[LOG] Unmapped window 1ae6500 removed instantly
[LOG] New XWayland Surface created (class (null)).

The same issue can be reproduced in other KiCad tools (like pcbnew)

werdahias commented 1 year ago

@122131 thanks for testing (and reproducing)

pulsar256 commented 1 year ago

issue confirmed on 70b5c1b119bd1c350b0bdc9058298146827d669fdirty (fix clamp in monitor relative).

works fine on sway stable

ᐅ sway --version
sway version 1.8

will compare against sway-git next.

pulsar256 commented 1 year ago

issue does not affect sway git.

 ᐅ sway --version
sway version 1.9-dev-2c0f68b7 (Jan 25 2023, branch 'master')

opening the settings window in schematics editor does not result in any socket2 activity, there is a bit of xwayland activity in the logfile. Here is a session of:

[LOG] Set keyboard focus to surface bfc636c0, with window name: ergodash [ergodash/] — Schematic Editor
[LOG] New XWayland Surface created (class (null)).
[LOG] Registered signal for owner bfcb8fd0: bfcbaf20 -> bfcb9038 (owner: XWayland Window)
[LOG] Registered signal for owner bfcb8fd0: bfcbaf30 -> bfcb90a0 (owner: XWayland Window)
[LOG] Registered signal for owner bfcb8fd0: bfcbaea0 -> bfcb9108 (owner: XWayland Window)

it seems the schematics editor "thinks" there is a modal dialog open but nothing "new" shows up on the screen nor in hyprctl clients.

pulsar256 commented 1 year ago

So here is another observation. The popup can actually work / be shown. To redproduce:

The problem seems to occur once a certain horizontal size has been exceeded

broken at:

Window 89dc8bb0 -> wlroots - WL-1:
        at: 3849,9
        size: 2499,2142
        workspace: 1 (1)
        floating: 0
        monitor: 0
        class: wlroots
        title: wlroots - WL-1
        pid: 46769
        xwayland: 0
        pinned: 0
        fullscreen: 0
        fullscreenmode: 0
        fakefullscreen: 0
        grouped: 0
        swallowing: 0

working at

Window 89dc8bb0 -> wlroots - WL-1:
        at: 3849,9
        size: 2361,2142
        workspace: 1 (1)
        floating: 0
        monitor: 0
        class: wlroots
        title: wlroots - WL-1
        pid: 46769
        xwayland: 0
        pinned: 0
        fullscreen: 0
        fullscreenmode: 0
        fakefullscreen: 0
        grouped: 0
        swallowing: 0

https://user-images.githubusercontent.com/1245126/218253488-fc8554fc-875e-4015-a328-4b0725a20fb7.mp4

MathisP75 commented 1 year ago

How do you even get kicad to launch on hyprland? Mine does nothing. Even launching it from terminal produces no output.

pulsar256 commented 1 year ago

How do you even get kicad to launch on hyprland? Mine does nothing. Even launching it from terminal produces no output.

nothing special, installed the stable version and is "just works" ... at least to some degree:

community/kicad 6.0.11-1 (38.4 MiB 193.2 MiB) (Installed)
    Electronic schematic and printed circuit board (PCB) design tools
MathisP75 commented 1 year ago

Have you done any config for electron or something?

2e0byo commented 1 year ago

Have you done any config for electron or something?

My `wrapped-hyprland` contains: ```bash #!/bin/sh cd ~ export _JAVA_AWT_WM_NONREPARENTING=1 export XCURSOR_SIZE=24 export LIBVA_DRIVER_NAME=nvidia export XDG_SESSION_TYPE=wayland export GBM_BACKEND=nvidia-drm export __GLX_VENDOR_LIBRARY_NAME=nvidia export WLR_NO_HARDWARE_CURSORS=1 export MOZ_ENABLE_WAYLAND=1 export QT_QUICK_BACKEND=software # For QuteBrowser, atm... export SAL_USE_VCLPLUGIN=kf5 # Libreoffice with kde/qt toolkit. At least it handles the resolution. export LSP_USE_PLSITS=true # tell emacs lsp to use plists for deserialisation, which is apparently faster exec Hyprland ```

Most of which is almost certainly irrelevant, but I've never read kicad's source. Kicad launches for me. I suspect your issue is different from this bug, however. You might like to try under weston or the like to see if it's a hyprland issue.

pulsar256 commented 1 year ago

Have you done any config for electron or something?

kicad is not electron, but here is my set of active environment variables which might have an effect on that:

GDK_BACKEND=wayland,x11
XDG_CONFIG_HOME=$HOME/.config
XDG_CACHE_HOME=$HOME/.cache
XDG_DATA_HOME=$HOME/.local/share
XDG_STATE_HOME=$HOME/.local/state
QT_QPA_PLATFORM=xcb
QT_SCALE_FACTOR=1.5
XKB_DEFAULT_LAYOUT=eu
_JAVA_AWT_WM_NONREPARENTING=1
_JAVA_OPTIONS="-Drecreate.x11.input.method=true -Dawt.ime.disabled=true -Dawt.useSystemAAFontSettings=on"
MathisP75 commented 1 year ago

I successfully launched it on another user on hyprland, so it's not even my wrapper somehow, it must be something I did on that user, maybe in my config.

MathisP75 commented 1 year ago

Ok, it was the FONT IN MY GTK3 CONFIG. Why the hell does that prevent KiCad from launching.

MathisP75 commented 1 year ago

I got it to work and opening the settings freezes mine too.

122131 commented 1 year ago

This seems fixed with hyprland 0.23.0beta-2, wlroots 0.16.2-1, xorg-xwayland 22.1.8-1 and kicad 7.0.1-1.

pulsar256 commented 1 year ago

This seems fixed with hyprland 0.23.0beta-2, wlroots 0.16.2-1, xorg-xwayland 22.1.8-1 and kicad 7.0.1-1.

confirmed.

zerovijay commented 11 months ago

Please help me i try to learn kicad on low spec Linux mechine 4GP Ram with dual-core amd x64 cpu with running on fedora 39 I try to jump window to window while looking at components the mouse cursor freezing and all so I try to add new foot print it's going to crash any solution for this please.

2e0byo commented 11 months ago

@zerovijay off topic here: you're better off asking in the normal channels for kicad. On low spec turning anti-aliasing off helps a lot; there are other renderer tweaks you cn try. But better to ask on the forum.