Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: A certain post makes the post width too big, causing posts to be cut off #1219

Closed
ghost opened this issue Nov 25, 2024 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Nov 25, 2024

Describe the bug

Post(s?) are wider than the window causing the posts to be cut off.
Screenshot From 2024-11-25 17-42-35

Steps To Reproduce

Open this post in Tuba.

Logs and/or Screenshots

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:06.644: GtkImage 0x55cf5c7718d0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:06.651: GtkImage 0x55cf5ce97e50 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:06.651: GtkImage 0x55cf5c736390 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:06.653: GtkImage 0x55cf5cf56b60 (image) reported min height -17, but sizes must be >= 0
:1: HTML parser error : htmlParseEntityRef: no name
with a old fashioned web log (forgot that "blog" is a combination of "web log" &
                                                                               ^
:1: HTML parser error : htmlParseEntityRef: no name
ugh, because the instance moderation load is too high. I'd only do it for bots &
                                                                               ^

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.499: GtkImage 0x55cf5e44aef0 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.499: GtkImage 0x55cf5e450150 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.510: GtkImage 0x55cf5e4b0170 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.510: GtkImage 0x55cf5e4b4a30 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.517: GtkImage 0x55cf5e571d00 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.517: GtkImage 0x55cf5e5762d0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.520: GtkImage 0x55cf5e5d1f70 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.520: GtkImage 0x55cf5e5d63a0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.524: GtkLabel 0x55cf5e685390 (label) reported min width 2400 and natural width 447 in measure() with for_size=300; natural size must be >= min size

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.524: GtkImage 0x55cf5e652190 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.529: GtkImage 0x55cf5e755960 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.533: GtkImage 0x55cf5e80d510 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.533: GtkImage 0x55cf5e812ca0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.539: GtkImage 0x55cf5e86f450 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.541: GtkImage 0x55cf5e930700 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.543: GtkImage 0x55cf5e98dac0 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.543: GtkImage 0x55cf5e991fb0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.546: GtkImage 0x55cf5ea4ea00 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.546: GtkImage 0x55cf5ea52f90 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.548: GtkImage 0x55cf5eab8d90 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.548: GtkImage 0x55cf5eabd2f0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.552: GtkImage 0x55cf5eb7a7c0 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.552: GtkImage 0x55cf5eb7edc0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.557: GtkImage 0x55cf5ebe3aa0 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.557: GtkImage 0x55cf5ebe8200 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.560: GtkImage 0x55cf5eca5110 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.566: GtkImage 0x55cf5ed123b0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.569: GtkImage 0x55cf5ed72510 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.572: GtkImage 0x55cf5ee379d0 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.577: GtkImage 0x55cf5eea71c0 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.577: GtkImage 0x55cf5eeab880 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.583: GtkImage 0x55cf5ef07580 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.586: GtkImage 0x55cf5f029a40 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.591: GtkImage 0x55cf5f0bca60 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.591: GtkImage 0x55cf5f0c1090 (image) reported min height -16, but sizes must be >= 0

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.593: GtkImage 0x55cf5f17e080 (image) reported min height -17, but sizes must be >= 0

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.594: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2702 px, 1268 px available

(dev.geopjr.Tuba:2): Gtk-WARNING **: 18:22:10.622: GtkLabel 0x55cf5e685390 (label) reported min width 2400 and natural width 1750 in measure() with for_size=125; natural size must be >= min size

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.711: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.725: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.764: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.784: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.800: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.816: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.834: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.850: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.869: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.882: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.891: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.899: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 18:22:10.907: AdwToastOverlay 0x55cf574675f0 exceeds TubaDialogsMainWindow width: requested 2738 px, 1268 px available

Instance Backend

GoToSocial

Operating System

Fedora Workstation 41

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime)
prefix: /app
flatpak: true
version: 0.8.4 (production)
gtk: 4.14.5 (4.14.4)
libadwaita: 1.5.5 (1.5.3)
libsoup: 3.4.4 (3.4.4)
libgtksourceview: 5.12.1 (5.12.1)

Additional Context

No response

@ghost ghost added the bug Something isn't working label Nov 25, 2024
@GeopJr
Copy link
Owner

GeopJr commented Nov 25, 2024

Thanks for the report!

Unfortunately, it's a gtklabel/pango issue and any workarounds I do from my side end up breaking other things (#914 and many others).

This has been reported upstream and Sergey has been working on fixing it (and uses Tuba as a test case), so it will be fixed sooner than later, but it's out of my control :(

cc: @bugaevc if you need another overflowing/unwrappable post, it's this reply: https://tech.lgbt/@banaanihillo/113543742941157854

@GeopJr GeopJr closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@bugaevc
Copy link
Contributor

bugaevc commented Nov 25, 2024

Hmm that's interesting, there's only a single emoji AFAICS, so it can't be that thing. I'll look into it, but if you have time before I do please check whether gtk!7936 helps with that too.

@GeopJr
Copy link
Owner

GeopJr commented Nov 25, 2024

I've narrowed it down before to the existence of pango attributes (LWW's allocate_shapes), here's some logs on shape allocation + measuring:

Without your gtk patch -- with shape allocation
(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.126: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.126: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.131: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.131: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.138: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 172

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.138: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.148: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 2400 2400

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.148: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 172

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.148: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.153: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 2400 2400

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.153: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.153: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.153: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.154: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 133 133

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.154: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 17 19 19

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.154: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 16 16

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.154: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 172 172

(dev.geopjr.Tuba:23944): Gtk-WARNING **: 22:23:22.161: GtkLabel 0x55e21406a1e0 (label) reported min width 2400 and natural width 458 in measure() with for_size=299; natural size must be >= min size

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.161: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 299 2400 2400

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.161: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.162: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.162: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.162: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 133 133

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.162: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 17 19 19

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.162: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 16 16

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.163: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 172 172

(dev.geopjr.Tuba:23944): Gtk-WARNING **: 22:23:22.170: GtkLabel 0x55e213c9b580 (label) reported min width 2400 and natural width 458 in measure() with for_size=299; natural size must be >= min size

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.170: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 299 2400 2400

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.170: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2502 px, 693 px available

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.172: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 24 172 172

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.172: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 172 16 16

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.173: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 19 19

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.173: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 34 0 0

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.173: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 24 0 0

(dev.geopjr.Tuba:23944): Gtk-WARNING **: 22:23:22.176: GtkLabel 0x55e21406a1e0 (label) reported min width 2400 and natural width 1750 in measure() with for_size=133; natural size must be >= min size

(dev.geopjr.Tuba:23944): Tuba-WARNING **: 22:23:22.176: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 133 2400 2400

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.187: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2518 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.202: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2522 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.219: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2526 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.236: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2528 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.253: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2532 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.270: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2534 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.286: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2534 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.303: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2536 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.319: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2536 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.336: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2538 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.352: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2538 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.369: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2538 px, 693 px available

(dev.geopjr.Tuba:23944): Adwaita-WARNING **: 22:23:22.386: AdwToolbarView 0x55e213aa0aa0 exceeds TubaViewsSearch width: requested 2538 px, 693 px available
Without your gtk patch -- without shape allocation
(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.856: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 14 172

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.856: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.860: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 20 1749

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.861: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 14 172

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.861: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.865: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL -1 20 1749

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.865: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.865: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.866: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL -1 135 135

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.866: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 154 800 800

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.866: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 70 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.866: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 154 32 32

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.867: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 308 439 439

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.867: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 308 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.867: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 231 534 534

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.867: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 147 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.867: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 231 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.868: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 270 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.868: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 168 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.868: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 251 496 496

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.869: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 261 477 477

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.869: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 266 477 477

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.869: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 268 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.870: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 267 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.870: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 29 172 172

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.874: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 20 6405 6405

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.876: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 40 3308 3308

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.877: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 82 1484 1484

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.877: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 166 743 743

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.877: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 334 401 401

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.878: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 250 496 496

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.878: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 292 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.886: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 458 20 267

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.886: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 532 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.886: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 532 287 287

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.886: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.886: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.887: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL -1 135 135

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.887: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 154 800 800

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.887: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 70 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.887: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 154 32 32

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 308 439 439

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 308 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 231 534 534

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 147 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 231 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 270 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.888: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 168 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.889: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 251 496 496

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.889: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 261 477 477

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.890: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 266 477 477

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.890: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 268 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.890: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 267 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.890: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 29 172 172

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.894: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 20 6405 6405

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.896: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 40 3308 3308

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.897: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 82 1484 1484

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.897: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 166 743 743

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.898: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 334 401 401

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.898: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 250 496 496

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.899: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 292 458 458

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.906: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 458 20 267

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.906: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 568 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.907: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 568 287 287

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.907: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 24 172 172

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.907: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 172 16 16

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.907: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL -1 19 19

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.907: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 34 0 0

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.908: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 24 0 0

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.908: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 670 249 249

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.908: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 502 287 287

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.909: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 418 344 344

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.909: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 460 287 287

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.909: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 439 325 325

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.910: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 450 306 306

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.910: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 455 306 306

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.910: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 458 287 287

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.911: LabelWithWidgets.vala:239: GTK_ORIENTATION_VERTICAL 457 306 306

(dev.geopjr.Tuba:25020): Tuba-WARNING **: 22:28:33.918: LabelWithWidgets.vala:239: GTK_ORIENTATION_HORIZONTAL 287 20 458

(dev.geopjr.Tuba:25020): Gtk-WARNING **: 22:28:33.920: Trying to snapshot TubaWidgetsEmoji 0x55efc2626e30 without a current allocation
With your gtk patch -- with shape allocation -- with fix-overflow-hack
(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.711: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.711: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.723: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.723: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.742: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.742: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.754: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 2400 2400

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.754: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.754: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.758: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 2400 2400

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 17 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.759: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 106 106

(dev.geopjr.Tuba:2): Gtk-WARNING **: 22:34:06.766: GtkLabel 0x56301686f280 (label) reported min width 2400 and natural width 717 in measure() with for_size=232; natural size must be >= min size

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.766: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 232 2400 2400

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.766: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.766: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.766: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.767: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.767: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 17 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.767: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 2400 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.767: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 106 106

(dev.geopjr.Tuba:2): Gtk-WARNING **: 22:34:06.774: GtkLabel 0x56301ad116c0 (label) reported min width 2400 and natural width 717 in measure() with for_size=232; natural size must be >= min size

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.774: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 232 2400 2400

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.774: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2502 px, 714 px available

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:34:06.775: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 106 16 16

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.795: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2518 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.811: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2522 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.828: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2526 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.844: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2530 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.861: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2532 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.878: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2534 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.894: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2534 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.910: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2536 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.927: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2536 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.944: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2538 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.960: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2538 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.978: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2538 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:06.994: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2538 px, 714 px available

(dev.geopjr.Tuba:2): Adwaita-WARNING **: 22:34:07.523: AdwToolbarView 0x56301ba46ac0 exceeds TubaViewsSearch width: requested 2538 px, 714 px available
With your gtk patch -- with shape allocation -- without fix-overflow-hack
(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.152: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.152: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.158: LabelWithWidgets.vala:149: rect: x: 0, y: -12288, height: 16384, width: 16384

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.158: LabelWithWidgets.vala:150: 651 654 shapeshape

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.164: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.164: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.171: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 20 1750

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.171: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 14 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.171: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 0 0

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.180: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL -1 20 1750

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.180: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.180: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.180: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.181: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 172 722 722

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.181: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 88 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.181: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 172 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.181: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 344 399 399

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.181: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 344 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.182: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 690 247 247

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.182: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 690 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.182: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 517 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.182: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 431 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.183: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 388 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.183: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 410 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.183: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 421 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.184: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 426 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.184: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 424 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.184: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 425 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.185: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 106 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.189: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 20 7942 7942

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.191: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 40 3325 3325

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.192: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 82 1482 1482

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.192: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 166 741 741

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.193: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 334 399 399

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.193: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 670 247 247

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.193: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 502 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.194: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 460 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.194: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 439 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.198: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 327 425 425

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.198: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 568 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.198: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.198: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 16 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.198: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL -1 133 133

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.199: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 172 722 722

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.199: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 88 19 19

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.199: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 172 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.199: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 344 399 399

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.199: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 344 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.200: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 690 247 247

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.200: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 690 16 16

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.200: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 517 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.200: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 431 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.201: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 388 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.201: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 410 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.201: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 421 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.202: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 426 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.202: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 424 342 342

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.202: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 425 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.202: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 29 106 106

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.207: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 20 7942 7942

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.209: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 40 3325 3325

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.210: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 82 1482 1482

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.210: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 166 741 741

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.211: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 334 399 399

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.211: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 670 247 247

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.211: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 502 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.212: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 460 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.212: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 439 323 323

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.215: LabelWithWidgets.vala:238: GTK_ORIENTATION_HORIZONTAL 327 425 425

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.216: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 568 285 285

(dev.geopjr.Tuba:2): Tuba-WARNING **: 22:35:24.217: LabelWithWidgets.vala:238: GTK_ORIENTATION_VERTICAL 106 16 16

The only cases that wrapped correctly are the second and fourth. Second did not have any emojis.

@GeopJr
Copy link
Owner

GeopJr commented Nov 25, 2024

Even without your patch, fix-overflow-hack seems to be the cause. I wonder if we should detect natural size must be >= min size and disable fix-overflow-hack automatically

@bugaevc
Copy link
Contributor

bugaevc commented Nov 26, 2024

Try this:

diff --git a/src/Widgets/LabelWithWidgets.vala b/src/Widgets/LabelWithWidgets.vala
index 25aff282..7a891f07 100644
--- a/src/Widgets/LabelWithWidgets.vala
+++ b/src/Widgets/LabelWithWidgets.vala
@@ -98,6 +98,10 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
                        return;
                }
 
+               unowned var layout = label.get_layout ();
+               unowned var context = layout.get_context ();
+               var metrics = context.get_metrics (null, null);
+
                for (var i = 0; i < widgets.length; i++) {
                        Gtk.Requisition size;
                        Gtk.Requisition natural_size;
@@ -136,9 +140,9 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
 
                        var logical_rect = Pango.Rectangle () {
                                x = 0,
-                               y = - (widgets[i].height - (widgets[i].height / 4)) * Pango.SCALE,
+                               y = - metrics.get_ascent (),
                                width = widgets[i].width * Pango.SCALE,
-                               height = widgets[i].height * Pango.SCALE
+                               height = metrics.get_ascent () + metrics.get_descent ()
                        };
 
                        var shape = Pango.AttrShape.new (logical_rect, logical_rect);
@@ -179,16 +183,16 @@ public class Tuba.Widgets.LabelWithWidgets : Gtk.Widget, Gtk.Buildable, Gtk.Acce
                                                //  int orig_y = logical_rect.y;
                                                logical_rect.x = pango_pixels (logical_rect.x);
                                                logical_rect.y = pango_pixels (logical_rect.y);
-                                               //  logical_rect.width = pango_pixels (orig_x + logical_rect.width, 1024) - logical_rect.x;
-                                               //  logical_rect.height = pango_pixels (orig_y + logical_rect.height, 1024) - logical_rect.y;
+                                               logical_rect.width = pango_pixels (logical_rect.width);
+                                               logical_rect.height = pango_pixels (logical_rect.height);
 
                                                int offset_x;
                                                int offset_y;
                                                label.get_layout_offsets (out offset_x, out offset_y);
 
                                                var allocation = Gtk.Allocation () {
-                                                       x = logical_rect.x + offset_x,
-                                                       y = logical_rect.y + offset_y,
+                                                       x = logical_rect.x + offset_x - (widgets[i].width - logical_rect.width) / 2,
+                                                       y = logical_rect.y + offset_y - (widgets[i].height - logical_rect.height) / 2,
                                                        height = widgets[i].height,
                                                        width = widgets[i].width
                                                };

@GeopJr
Copy link
Owner

GeopJr commented Nov 26, 2024

I don't have a stable connection rn but from what I managed to test, it still overflows. The rectangle also has similar-ish dimensions: rect: x: 0, y: -15360, width: 14336, height: 19456 (without your gtk patch, with fix-overflow-hack, dimensions are pre-pango_pixels)

@GeopJr
Copy link
Owner

GeopJr commented Nov 26, 2024

(btw, instead of pango_pixels we should be using Pango.extents_to_pixels (logical_rect, null); but iirc for some reason it wouldn't work as expected, either way, I tried it now again; no difference.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants