Tiny Core Linux
Tiny Core Extensions => TCE Bugs => Topic started by: GNUser on June 23, 2025, 09:52:53 AM
-
Hello Juanito and friends.
Recently there were several big updates to TCL16 x86_64 (including to gtk3). One of them broke sfwbar's ability to show tooltips: Now when I hover over a systray icon, instead of showing the tooltip sfwbar crashes :'(
Running sfwbar with debug flag consistently shows the following at time of crash:
$ sfwbar -d
...
(sfwbar:8528): Gdk-WARNING **: 09:40:36.229: Couldn't map window 0x555b5d9fb9b0 as subsurface because its parent is not mapped.
(sfwbar:8528): Gdk-WARNING **: 09:40:36.230: Couldn't map window 0x555b5d9fb9b0 as subsurface because its parent is not mapped.
Segmentation fault
The subsurface-related warnings always happen immediately before the crash.
I asked the sfwbar for insight and am waiting for his response. I already tried recompiling sfwbar against the updated extensions with no luck.
Maybe gtk-layer-shell needs to be updated? That's my best guess at this point. Do the warnings above suggest a root cause to anyone?
-
Hi Juanito. I'm unable to recompile gtk-layer-shell to see if it fixes sfwbar's problem.
I tried the steps here: http://repo.tinycorelinux.net/14.x/x86_64/tcz/src/gtk-layer-shell/compile_gtk-layer-shell
and this is the result:
$ ninja -C build
ninja: Entering directory `build'
[1/1] Generating src/gtk-layer-shell-0.vapi with a custom command
FAILED: src/gtk-layer-shell-0.vapi
/usr/local/bin/vapigen --quiet --library=gtk-layer-shell-0 --directory=/mnt/data/Downloads/gtk-layer-shell-0.8.1/build/src --pkg=gtk+-3.0 --metadatadir=/mnt/data/Downloads/gtk-layer-shell-0.8.1/src /mnt/data/Downloads/gtk-layer-shell-0.8.1/build/src/GtkLayerShell-0.1.gir
GtkLayerShell-0.1.gir:13.3-13.17: error: unknown child element `doc:format' in `repository'
ninja: build stopped: subcommand failed.
Would you be able to recompile gtk-layer-shell?
-
I'm going to try updating gtk-layer-shell rather than simply recompiling the old version. I'll report back.
-
Same error when trying to compile latest version of gtk-shell layer:
bruno@x230:~/Downloads/gtk-layer-shell-0.9.2$ time ninja -C build
ninja: Entering directory `build'
[20/21] Generating src/gtk-layer-shell-0.vapi with a custom command
FAILED: src/gtk-layer-shell-0.vapi
/usr/local/bin/vapigen --quiet --library=gtk-layer-shell-0 --directory=/mnt/data/Downloads/gtk-layer-shell-0.9.2/build/src --pkg=gtk+-3.0 --metadatadir=/mnt/data/Downloads/gtk-layer-shell-0.9.2/src /mnt/data/Downloads/gtk-layer-shell-0.9.2/build/src/GtkLayerShell-0.1.gir
GtkLayerShell-0.1.gir:13.3-13.17: error: unknown child element `doc:format' in `repository'
[21/21] Generating src/GtkLayerShell-0.1.typelib with a custom command
ninja: build stopped: subcommand failed.
Command exited with non-zero status 1
real 0m 6.37s
user 0m 10.94s
sys 0m 0.90s
I don't think I can get past the above without help. I guess sfwbar is out of service for now :(
-
sfwbar works fine when I downgrade gtk3 to version 3.24.39. I guess this is my workaround for now.
I'm pretty sure that the problem is that gtk-layer-shell needs to be updated to be in sync with the new gtk3 version. But I'm stuck because I can't get gtk-layer-shell to compile.
-
Hi GNUser
I take it you saw this:
https://github.com/wmww/gtk-layer-shell/issues/38
-
Hi Rich. Thank you for that. Yes, I saw it. And I also know that gtk-layer-shell is sfwbar's main dependency.
I'd love to be able to recompile gtk-layer-shell to see if that makes sfwbar work with the new gtk3 . Any idea how to fix this:
bruno@x230:~/Downloads/gtk-layer-shell-0.9.2$ time ninja -C build
ninja: Entering directory `build'
[20/21] Generating src/gtk-layer-shell-0.vapi with a custom command
FAILED: src/gtk-layer-shell-0.vapi
/usr/local/bin/vapigen --quiet --library=gtk-layer-shell-0 --directory=/mnt/data/Downloads/gtk-layer-shell-0.9.2/build/src --pkg=gtk+-3.0 --metadatadir=/mnt/data/Downloads/gtk-layer-shell-0.9.2/src /mnt/data/Downloads/gtk-layer-shell-0.9.2/build/src/GtkLayerShell-0.1.gir
GtkLayerShell-0.1.gir:13.3-13.17: error: unknown child element `doc:format' in `repository'
[21/21] Generating src/GtkLayerShell-0.1.typelib with a custom command
ninja: build stopped: subcommand failed.
Command exited with non-zero status 1
?
-
Hi Juanito. I just found this: https://bugs.gentoo.org/953255
Maybe vala.tcz and vala-dev.tcz need to be updated before gtk-layer-shell can be compiled against the new gtk3?
-
You could build it with -Dvapi=false?
i.e. CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson setup --prefix=/usr/local --localstatedir=/var --buildtype=plain -Dvapi=false ../
In the meantime, I'll look at vala
-
updated vala posted - gtk-layer-shell builds now, but I leave the extension to you :)
-
You could build it with -Dvapi=false?
Hi Juanito. Thanks for updating vala. But before you had a chance to do so, I went ahead and updated gtk-layer-shell without vala using the tip you gave me above :)
I can confirm that sfwbar works well with the new gtk3 now that gtk-layer-shell has been updated.
New set of gtk-layer-shell extensions have been submitted.