quickshell icon indicating copy to clipboard operation
quickshell copied to clipboard

Crash in HyprlandFocusGrab

Open TheSunCat opened this issue 7 months ago • 1 comments

General crash information

General information
===== Build Information =====
Git Revision: d1a172751d62af47c6b5bccd7545768ebd2cb2c4
Buildtime Qt Version: 6.8.2
Build Type: RelWithDebInfo
Compiler: Clang (19.1.7)
Complie Flags: 

Build configuration:
  Distributor: Official-Nix-Flake
  Distributor provided debuginfo: TRUE
  Disable precompild headers (dev): OFF
  Build tests (dev): OFF
  ASAN (dev): OFF
  Keep Frame Pointers (dev): OFF
  Crash Handling: TRUE
  Use jemalloc: TRUE
  Unix Sockets: ON
  Wayland: TRUE
    Wlroots Layer-Shell: ON
    Session Lock: ON
    Foreign Toplevel Management: ON
    Hyprland: TRUE
      Hyprland IPC: ON
      Hyprland Global Shortcuts: ON
      Hyprland Focus Grabbing: ON
      Hyprland Surface Extensions: ON
    Screencopy: TRUE
      Image Copy Capture: ON
      Wlroots Screencopy: ON
      Hyprland Toplevel Export: ON
  X11: ON
  I3/Sway: TRUE
    I3/Sway IPC: ON
  System Tray: ON
  PipeWire: TRUE
  Mpris: ON
  Pam: TRUE
  Greetd: ON
  UPower: ON
  Notifications: ON

===== Runtime Information =====
Runtime Qt Version: 6.8.2
Crashed process ID: 333640
Run ID: 0s4792rgss
Shell ID: c68d38b89bfbbbae76d4851a1e4494e4
Config Path: /home/mat/.config/quickshell/shell.qml

===== Report Integrity =====
Minidump save status: 0
Log save status: 0
Binary copy status: 0

===== System Information =====

/etc/os-release:
ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.05.20250224.0196c01"
CPE_NAME="cpe:/o:nixos:nixos:25.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.05 (Warbler)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.05 (Warbler)"
VERSION_CODENAME=warbler
VERSION_ID="25.05"

/etc/lsb-release:
DISTRIB_CODENAME=warbler
DISTRIB_DESCRIPTION="NixOS 25.05 (Warbler)"
DISTRIB_ID=nixos
DISTRIB_RELEASE="25.05"
LSB_VERSION="25.05 (Warbler)"

What caused the crash

I added a submenu to the system tray based off of https://github.com/AlephNought0/Faeryshell/blob/master/bar/left/Submenu.qml It crashes after running for a bit, while periodically printing this:

ERROR quickshell.incubator: Destroyed incubation controller QObject(0x7efd6ebfeac0) is not known to EngineGeneration(0x7efd6ea89040) , this may cause memory corruption
ERROR quickshell.incubator: Current registered incuabation controllers QList(0x7efd6ebdfb50, 0x7efd6ebdfb50, [many more addresses])

The code that crashed: https://git.allpurposem.at/mat/Quickbar/src/branch/quickshell-crash

Minidump

Managed to accidentally delete it, but it was still in my terminal scrollback so here is (most of) the file.

minidump.log

Log file

log.qslog.log

Configuration

quickshell.zip

Backtrace

(gdb) bt -full #0 0x00007f8226bb365b in QMetaObject::cast (this=0x558a1c5e51d0 ProxyWindowBase::staticMetaObject, obj=0x7f821d4a9200) at /build/qtbase-everywhere-src-6.8.2/src/corelib/kernel/qmetaobject.cpp:397 No locals. #1 0x0000558a1c417015 in QMetaObject::cast (this=0x558a1c5e51d0 ProxyWindowBase::staticMetaObject, obj=0x7f821d4a9200) at /nix/store/ma3srbzm2ws7impa7ixw6qh623sd8bax-qtbase-6.8.2/include/QtCore/qobjectdefs.h:241 No locals. #2 qobject_cast<ProxyWindowBase*> (object=0x7f821d4a9200) at /nix/store/ma3srbzm2ws7impa7ixw6qh623sd8bax-qtbase-6.8.2/include/QtCore/qobject.h:426 No locals. #3 qs::hyprland::HyprlandFocusGrab::syncWindows (this=0x7f821d5ee3c0) at /build/qq2qhii6ayzx9wmmwrip1s9lwx6jnlzf-source/src/wayland/hyprland/focus_grab/qml.cpp:89 proxyWindow = windowObject = 0x7f821d4a9200 __range2 = __begin2 = {i = 0x7f81f7b69900} __end2 = newProxy = {<QListSpecialMethods<ProxyWindowBase*>> = {<QListSpecialMethodsBase<ProxyWindowBase*>> = {<No data fields>}, <No data fields>}, d = {d = 0x7f821e843880, ptr = 0x7f821e843890, size = 2}} #4 0x0000558a1c416f17 in qs::hyprland::HyprlandFocusGrab::setWindows (this=, windows=...) at /build/qq2qhii6ayzx9wmmwrip1s9lwx6jnlzf-source/src/wayland/hyprland/focus_grab/qml.cpp:42 No locals. #5 0x0000558a1c414250 in qs::hyprland::HyprlandFocusGrab::qt_static_metacall (_o=0x7f821d4a9200, _o@entry=0x7f821d5ee3c0, _c=_c@entry=QMetaObject::WriteProperty, _id=, _a=) at src/wayland/hyprland/focus_grab/quickshell-hyprland-focus-grab_autogen/EWIEGA46WW/moc_qml.cpp:188 _v = _t = #6 0x0000558a1c4144d5 in qs::hyprland::HyprlandFocusGrab::qt_metacall (this=0x7f821d5ee3c0, _c=QMetaObject::WriteProperty, _id=1, _a=0x0) at src/wayland/hyprland/focus_grab/quickshell-hyprland-focus-grab_autogen/EWIEGA46WW/moc_qml.cpp:227 No locals. #7 0x00007f82278bc779 in QV4::Object::metacall (this=0x7f81f727d678, call=QMetaObject::WriteProperty, index=, a=0x7ffcd8881160) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4object_p.h:347 No locals. #8 QV4::ReferenceObject::writeBackQV4::Heap::Sequence (ref=, internalIndex=) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4referenceobject_p.h:154 flags = 8 status = -1 a = {0x7f81f5b83ac0, 0x0, 0x7ffcd888113c, 0x7ffcd8881138, 0x7ffcd8881134} scope = object = scope = object = flags = status = a = variant = a = #9 QV4::Sequence::storeReference (this=this@entry=0x7f81f727d670) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4sequenceobject.cpp:476 No locals. #10 0x00007f82278bdfa1 in QV4::Sequence::containerPutIndexed (this=0x7f81f727d670, index=6, value=...) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4sequenceobject.cpp:400 count = 6 valueType = {d_ptr = 0x7f8227096900 <QtPrivate::QMetaTypeInterfaceWrapper<QObject*>::metaType>} element = {d = {static MaxInternalSize = 24, data = { data = "\000\016x\n\202\177", '\000' <repeats 17 times>, shared = 0x7f820a780e00, _forAlignment = 6.9266273386410075e-310}, is_shared = 0, is_null = 0, packedType = 35049244351040}} #11 0x00007f82277cf4cc in QV4::Object::put (this=0x7f81f727d670, idx=6, v=..., receiver=0x7f81f727d670) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4object_p.h:283 No locals. #12 QV4::ArrayPrototype::method_push (b=, thisObject=, argv=, argc=1) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4arrayobject.cpp:700 i = ei = scope = {engine = 0x7f81f615fd00, mark = 0x7f81f727d670} instance = {ptr = 0x7f81f727d670} len = 6 #13 0x00007f82278b49bf in QV4::FunctionObject::call (this=0x7ffcd8881308, thisObject=0x7f81f727d620, argv=0x7f81f727d638, argc=1) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4functionobject_p.h:187 call = #14 QV4::Runtime::CallPropertyLookup::call (engine=0x7f81f615fd00, base=..., index=, argv=0x7f81f727d638, argc=1) at /build/qtdeclarative-everywhere-src-6.8.2/src/qml/jsruntime/qv4runtime.cpp:1562 l = 0x7f820d92ff00 f = {QV4::StaticValue = {_val = 140196163188384, static ExponentMask = 9218868437227405312, static Top1Mask = 9223372036854775808, static Upper3Mask = 3940649673949184, static Lower5Mask = 31, static ManagedMask = 9219149912204115968, static DoubleMask = 9220275812110958592, static NumberMask = 9219220280948293632, static IntOrBoolMask = 9219290649692471296, static IntCompatMask = 9219712862157537280, static EncodeMask = 9220346180855136256, static DoubleDiscriminator = 1407374883553280, static NumberDiscriminator = 351843720888320}, <No data fields>} message = {d = {d = 0x7f82223687c0, ptr = 0x4161e244b3d08800 <error: Cannot access memory at address 0x4161e244b3d08800>, size = 5}, static _empty = 0 u'\000'} #15 0x00007f8220605a8b in ?? () No symbol table info available. #16 0x0000000000000000 in ?? () No symbol table info available.

Executable

No response

TheSunCat avatar Mar 01 '25 22:03 TheSunCat