WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: recent upgrade broke sfwbar tooltips  (Read 122 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
recent upgrade broke sfwbar tooltips
« 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:

Code: [Select]
$ 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?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #1 on: June 23, 2025, 10:02:49 AM »
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:

Code: [Select]
$ 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?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #2 on: June 23, 2025, 10:04:48 AM »
I'm going to try updating gtk-layer-shell rather than simply recompiling the old version. I'll report back.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #3 on: June 23, 2025, 10:08:45 AM »
Same error when trying to compile latest version of gtk-shell layer:

Code: [Select]
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 :(

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #4 on: June 23, 2025, 10:27:36 AM »
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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 12164
Re: recent upgrade broke sfwbar tooltips
« Reply #5 on: June 23, 2025, 10:41:36 AM »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #6 on: June 23, 2025, 10:49:29 AM »
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:
Code: [Select]
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
?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #7 on: June 23, 2025, 11:00:41 AM »
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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15206
Re: recent upgrade broke sfwbar tooltips
« Reply #8 on: June 23, 2025, 11:02:01 AM »
You could build it with -Dvapi=false?

i.e.
Code: [Select]
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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15206
Re: recent upgrade broke sfwbar tooltips
« Reply #9 on: June 23, 2025, 11:20:55 AM »
updated vala posted - gtk-layer-shell builds now, but I leave the extension to you  :)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1627
Re: recent upgrade broke sfwbar tooltips
« Reply #10 on: June 23, 2025, 11:30:45 AM »
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.