Open gouvinb opened 1 year ago
Sorry, couldn't reproduce.
/gtk/gtk/gtkimagedefinition.c
Looks like Adwaita GTK theme missing from your system or broken.
So by installing gnome-themes-extra on my machine, it still crashes randomly, but the error message changes. And this time, it's very similar to issue #45. Here are the logs:
I'll take a closer look at it over the weekend.
Despite my best effort, still no luck: it refuses to crash, as well on my main machine, as on a clean nwg-shell install. Could you try removing arguments one by one from the command? Maybe this is going to tell us a bit more.
I'm testing to better target the problem, currently I have the following results:
nwg-drawer -r
=> no crashnwg-drawer -fm nautilus -nocats -r
=> fatal error: unexpected signal during runtime execution
I'll update the issue as soon as I've found the problem.
After many tests, I crash randomly whenever I use the -nocats
argument. The rest seems fine.
Description
I have a
nwg-drawer
process in background, and when i run the commandpkill -USR1 nwg-drawer
,nwg-drawer
panic randomly.This problem is very similar in behavior to issue #45, but the logs are different.
Actual result
nwg-drawer -fm nautilus -nocats -nofs -o 1 -ovl -r
in a first terminalpkill -USR1 nwg-drawer
Log
/tmp/gouvinb/nwg-drawer-2023-02-15T23-55-10.log
```log time="2023-02-15T23:55:10+01:00" level=info msg="Data dir: /home/gouvinb/.local/share/nwg-drawer" time="2023-02-15T23:55:10+01:00" level=info msg="term: foot" time="2023-02-15T23:55:10+01:00" level=info msg="lang: fr_FR" time="2023-02-15T23:55:10+01:00" level=info msg="Config dir: /home/gouvinb/.config/nwg-drawer" time="2023-02-15T23:55:10+01:00" level=info msg="Found 0 pinned items" time="2023-02-15T23:55:10+01:00" level=info msg="Found 155 desktop files" time="2023-02-15T23:55:10+01:00" level=info msg="Skipped 59 duplicates; 26 .desktop entries hidden by \"NoDisplay=true\"" time="2023-02-15T23:55:10+01:00" level=info msg="/home/gouvinb/.config/nwg-drawer/preferred-apps.json file not found" time="2023-02-15T23:55:10+01:00" level=info msg="/home/gouvinb/.config/nwg-drawer/excluded-dirs file not found" time="2023-02-15T23:55:10+01:00" level=info msg="Preferring dark theme variants" time="2023-02-15T23:55:10+01:00" level=info msg="Using style from /home/gouvinb/.config/nwg-drawer/drawer.css" time="2023-02-15T23:55:10+01:00" level=warning msg="userDirsFile /home/gouvinb/.config/user-dirs.dirs not found, using defaults" time="2023-02-15T23:55:10+01:00" level=info msg="UI created in 259 ms. Thank you for your patience." time="2023-02-15T23:55:38+01:00" level=info msg="env vars: []; command: '/usr/bin/slack'; args: [-s]\n" time="2023-02-15T23:55:39+01:00" level=info msg="env vars: []; command: '/usr/bin/discord'; args: []\n" time="2023-02-15T23:55:45+01:00" level=info msg="env vars: []; command: '/usr/bin/google-chrome-stable'; args: []\n" ** Gtk:ERROR:../gtk/gtk/gtkimagedefinition.c:287:gtk_image_definition_unref: code should not be reached Bail out! Gtk:ERROR:../gtk/gtk/gtkimagedefinition.c:287:gtk_image_definition_unref: code should not be reached SIGABRT: abort PC=0x7f9e9dc808ec m=5 sigcode=18446744073709551610 signal arrived during cgo execution goroutine 1 [syscall]: runtime.cgocall(0x555f61fde0e0, 0xc00012da48) runtime/cgocall.go:158 +0x5c fp=0xc00012da20 sp=0xc00012d9e8 pc=0x555f61e467bc github.com/gotk3/gotk3/gtk._Cfunc_gtk_main() _cgo_gotypes.go:17432 +0x45 fp=0xc00012da48 sp=0xc00012da20 pc=0x555f61f4afa5 github.com/gotk3/gotk3/gtk.Main(...) github.com/gotk3/gotk3@v0.6.1/gtk/gtk.go:1241 main.main() ./main.go:591 +0x217e fp=0xc00012df80 sp=0xc00012da48 pc=0x555f61fbcd9e runtime.main() runtime/proc.go:250 +0x213 fp=0xc00012dfe0 sp=0xc00012df80 pc=0x555f61e7a513 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00012dfe8 sp=0xc00012dfe0 pc=0x555f61ea7d01 goroutine 2 [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:363 +0xd6 fp=0xc00005efb0 sp=0xc00005ef90 pc=0x555f61e7a8d6 runtime.goparkunlock(...) runtime/proc.go:369 runtime.forcegchelper() runtime/proc.go:302 +0xad fp=0xc00005efe0 sp=0xc00005efb0 pc=0x555f61e7a76d runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005efe8 sp=0xc00005efe0 pc=0x555f61ea7d01 created by runtime.init.6 runtime/proc.go:290 +0x25 goroutine 3 [GC sweep wait]: runtime.gopark(0x1?, 0x0?, 0x0?, 0x0?, 0x0?) runtime/proc.go:363 +0xd6 fp=0xc00005f790 sp=0xc00005f770 pc=0x555f61e7a8d6 runtime.goparkunlock(...) runtime/proc.go:369 runtime.bgsweep(0x0?) runtime/mgcsweep.go:297 +0xd7 fp=0xc00005f7c8 sp=0xc00005f790 pc=0x555f61e672d7 runtime.gcenable.func1() runtime/mgc.go:178 +0x26 fp=0xc00005f7e0 sp=0xc00005f7c8 pc=0x555f61e5bf26 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005f7e8 sp=0xc00005f7e0 pc=0x555f61ea7d01 created by runtime.gcenable runtime/mgc.go:178 +0x6b goroutine 4 [GC scavenge wait]: runtime.gopark(0xc000088000?, 0x555f620351b8?, 0x0?, 0x0?, 0x0?) runtime/proc.go:363 +0xd6 fp=0xc00005ff70 sp=0xc00005ff50 pc=0x555f61e7a8d6 runtime.goparkunlock(...) runtime/proc.go:369 runtime.(*scavengerState).park(0x555f6225ad40) runtime/mgcscavenge.go:389 +0x53 fp=0xc00005ffa0 sp=0xc00005ff70 pc=0x555f61e65333 runtime.bgscavenge(0x0?) runtime/mgcscavenge.go:622 +0x65 fp=0xc00005ffc8 sp=0xc00005ffa0 pc=0x555f61e65925 runtime.gcenable.func2() runtime/mgc.go:179 +0x26 fp=0xc00005ffe0 sp=0xc00005ffc8 pc=0x555f61e5bec6 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005ffe8 sp=0xc00005ffe0 pc=0x555f61ea7d01 created by runtime.gcenable runtime/mgc.go:179 +0xaa goroutine 5 [finalizer wait]: runtime.gopark(0x0?, 0x555f6212de40?, 0x0?, 0x40?, 0x1000000010?) runtime/proc.go:363 +0xd6 fp=0xc00005e628 sp=0xc00005e608 pc=0x555f61e7a8d6 runtime.goparkunlock(...) runtime/proc.go:369 runtime.runfinq() runtime/mfinal.go:180 +0x10f fp=0xc00005e7e0 sp=0xc00005e628 pc=0x555f61e5b02f runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005e7e8 sp=0xc00005e7e0 pc=0x555f61ea7d01 created by runtime.createfing runtime/mfinal.go:157 +0x45 goroutine 6 [select, locked to thread]: runtime.gopark(0xc0000607a8?, 0x2?, 0x57?, 0xac?, 0xc0000607a4?) runtime/proc.go:363 +0xd6 fp=0xc000060618 sp=0xc0000605f8 pc=0x555f61e7a8d6 runtime.selectgo(0xc0000607a8, 0xc0000607a0, 0x0?, 0x0, 0x0?, 0x1) runtime/select.go:328 +0x7bc fp=0xc000060758 sp=0xc000060618 pc=0x555f61e89d5c runtime.ensureSigM.func1() runtime/signal_unix.go:991 +0x1b4 fp=0xc0000607e0 sp=0xc000060758 pc=0x555f61e8de54 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc0000607e8 sp=0xc0000607e0 pc=0x555f61ea7d01 created by runtime.ensureSigM runtime/signal_unix.go:974 +0xbd goroutine 18 [syscall]: runtime.notetsleepg(0xffffffffffffffff?, 0xc00005a728?) runtime/lock_futex.go:236 +0x34 fp=0xc00005a7a0 sp=0xc00005a768 pc=0x555f61e4e854 os/signal.signal_recv() runtime/sigqueue.go:152 +0x2f fp=0xc00005a7c0 sp=0xc00005a7a0 pc=0x555f61ea47ef os/signal.loop() os/signal/signal_unix.go:23 +0x19 fp=0xc00005a7e0 sp=0xc00005a7c0 pc=0x555f61f0ed79 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005a7e8 sp=0xc00005a7e0 pc=0x555f61ea7d01 created by os/signal.Notify.func1.1 os/signal/signal.go:151 +0x2a goroutine 19 [chan receive]: runtime.gopark(0x555f61e46813?, 0xc000358c00?, 0xd8?, 0xae?, 0x555f00000000?) runtime/proc.go:363 +0xd6 fp=0xc00005ae70 sp=0xc00005ae50 pc=0x555f61e7a8d6 runtime.chanrecv(0xc00008c300, 0xc00005afc0, 0x1) runtime/chan.go:583 +0x49b fp=0xc00005af00 sp=0xc00005ae70 pc=0x555f61e4979b runtime.chanrecv1(0x0?, 0x0?) runtime/chan.go:442 +0x18 fp=0xc00005af28 sp=0xc00005af00 pc=0x555f61e492d8 main.main.func1() ./main.go:162 +0x55 fp=0xc00005afe0 sp=0xc00005af28 pc=0x555f61fbd7b5 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005afe8 sp=0xc00005afe0 pc=0x555f61ea7d01 created by main.main ./main.go:160 +0x22a goroutine 34 [GC worker (idle)]: runtime.gopark(0x555f61f9ecb8?, 0xc000110a80?, 0x80?, 0xa?, 0x0?) runtime/proc.go:363 +0xd6 fp=0xc00005b750 sp=0xc00005b730 pc=0x555f61e7a8d6 runtime.gcBgMarkWorker() runtime/mgc.go:1235 +0xf1 fp=0xc00005b7e0 sp=0xc00005b750 pc=0x555f61e5e091 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00005b7e8 sp=0xc00005b7e0 pc=0x555f61ea7d01 created by runtime.gcBgMarkStartWorkers runtime/mgc.go:1159 +0x25 goroutine 7 [select]: runtime.gopark(0xc00006cfb0?, 0x2?, 0xa8?, 0xce?, 0xc00006cf84?) runtime/proc.go:363 +0xd6 fp=0xc00006ce10 sp=0xc00006cdf0 pc=0x555f61e7a8d6 runtime.selectgo(0xc00006cfb0, 0xc00006cf80, 0xc00006cfa0?, 0x0, 0xc0001a24c8?, 0x1) runtime/select.go:328 +0x7bc fp=0xc00006cf50 sp=0xc00006ce10 pc=0x555f61e89d5c main.main.func6() ./main.go:541 +0x85 fp=0xc00006cfe0 sp=0xc00006cf50 pc=0x555f61fbd405 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00006cfe8 sp=0xc00006cfe0 pc=0x555f61ea7d01 created by main.main ./main.go:539 +0x216c goroutine 8 [chan receive]: runtime.gopark(0xc0003e82d0?, 0xc0003d6600?, 0x0?, 0xa0?, 0xc000061728?) runtime/proc.go:363 +0xd6 fp=0xc00006de80 sp=0xc00006de60 pc=0x555f61e7a8d6 runtime.chanrecv(0xc0003e44e0, 0x0, 0x1) runtime/chan.go:583 +0x49b fp=0xc00006df10 sp=0xc00006de80 pc=0x555f61e4979b runtime.chanrecv1(0xc0001123c0?, 0x0?) runtime/chan.go:442 +0x18 fp=0xc00006df38 sp=0xc00006df10 pc=0x555f61e492d8 main.watchFiles() ./watcher.go:55 +0x139 fp=0xc00006dfe0 sp=0xc00006df38 pc=0x555f61fc9399 runtime.goexit() runtime/asm_amd64.s:1594 +0x1 fp=0xc00006dfe8 sp=0xc00006dfe0 pc=0x555f61ea7d01 created by main.main ./main.go:589 +0x2178 goroutine 23 [syscall]: syscall.Syscall6(0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?, 0x0?) syscall/syscall_linux.go:90 +0x36 fp=0xc00048fb18 sp=0xc00048fa90 pc=0x555f61edc7d6 syscall.Syscall6(0xe8, 0x12, 0xc00048fc14, 0x7, 0xffffffffffffffff, 0x0, 0x0)