Meta.Rectangle is deprecated, use Mtk.Rectangle instead

Bug #2034664 reported by Daniel van Vugt
44
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-shell-extension-tiling-assistant (Ubuntu)
Fix Released
Undecided
Jeremy Bícha
Mantic
Fix Released
Undecided
Jeremy Bícha
gnome-shell-extension-ubuntu-dock (Ubuntu)
Fix Released
Undecided
Marco Trevisan (Treviño)
Mantic
Fix Released
Undecided
Marco Trevisan (Treviño)

Bug Description

[ Impact ]

The gnome-shell 45.rc log fills with:

Meta.Rectangle is deprecated, use Mtk.Rectangle instead

[ Test case ]

Run ubuntu with ubuntu extensions enabled (only).
journalctl /usr/bin/gnome-shell should not contain any reference to Meta.Rectangle deprecation

[ Regression potential ]

Introspected types are not defined and so extensions may try to use undefined code.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell-extension-tiling-assistant (Ubuntu):
status: New → Confirmed
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Confirmed → Fix Committed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in gnome-shell-extension-tiling-assistant (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Confirmed → In Progress
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/2034664

tags: added: iso-testing
Changed in gnome-shell-extension-tiling-assistant (Ubuntu):
status: In Progress → Fix Committed
Jeremy Bícha (jbicha)
Changed in gnome-shell-extension-tiling-assistant (Ubuntu):
assignee: Marco Trevisan (Treviño) (3v1n0) → Jeremy Bícha (jbicha)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-tiling-assistant - 44-1ubuntu1

---------------
gnome-shell-extension-tiling-assistant (44-1ubuntu1) mantic; urgency=medium

  * Merge with debian, remaining changes:
    - Rename extension to gnome-shell-extension-ubuntu-tiling-assistant
    - debian/control: Suggests gnome-shell-extension-prefs
    - d/p: tilingWindowManager: Override window constraints style

gnome-shell-extension-tiling-assistant (44-1) experimental; urgency=medium

  * New upstream release
    - Officially support GNOME Shell 45 (Closes: #1052109) (LP: #2034664)
  * debian/control: Bump minimum GNOME Shell to 45 to match metadata.json
  * Drop all patches except locale patch

gnome-shell-extension-tiling-assistant (41-3) unstable; urgency=medium

  * debian/gbp.conf: Use debian/unstable branch
  * debian/control: Do not support gnome-shell 45

gnome-shell-extension-tiling-assistant (41-2) unstable; urgency=medium

  * Upload to unstable. (Closes: #1041580)
  * debian/control.in:
      - Bumped Standards-Version to 4.6.2.
      - Adjusted gnome-shell versions in Depends field in package stanza to
        support GNOME 43 to 45.
  * debian/copyright: updated packaging data.
  * debian/patches/series: commented out GNOME 45 support patches for now.

 -- Jeremy Bícha <email address hidden> Mon, 25 Sep 2023 11:46:07 -0400

Changed in gnome-shell-extension-tiling-assistant (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

I still have the problem
corrado@corrado-n17-mm-1004:~$ apt policy gnome-shell-extension-tiling-assistant
gnome-shell-extension-tiling-assistant:
  Installed: (none)
  Candidate: (none)
  Version table:
corrado@corrado-n17-mm-1004:~$ apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
 *** 87ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n17-mm-1004:~$
corrado@corrado-n17-mm-1004:~$ apt policy gnome-shell-extension-ubuntu-tiling-assistant
gnome-shell-extension-ubuntu-tiling-assistant:
  Installed: 44-1ubuntu1
  Candidate: 44-1ubuntu1
  Version table:
 *** 44-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n17-mm-1004:~$

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I know...

$ grep -r Meta.Rectangle /usr/share/gnome-shell/extensions/
/<email address hidden>/appIcons.js: const rect = new Meta.Rectangle();

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Fix Committed → Triaged
status: Triaged → Fix Committed
description: updated
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hey, gnome-shell-extension-ubuntu-dock is not something that we (release team) are planning to accept ahead of Mantic release, so we're going to let it be in the unapproved queue and consider this for a 0-day SRU.

Revision history for this message
corrado venturini (corradoventu) wrote :

gnome-shell-extension-ubuntu-dock is installed in Ubuntu Full install in the repository mantic/main so you (relese team) should explain...

https://cdimages.ubuntu.com/daily-live/pending/mantic-desktop-amd64.manifest

corrado@corrado-n4-mm-1005:~/Videos$ apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
 *** 87ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n4-mm-1005:~/Videos$ apt show gnome-shell-extension-ubuntu-dock
Package: gnome-shell-extension-ubuntu-dock
Version: 87ubuntu1
Priority: optional
Section: gnome
Origin: Ubuntu
Maintainer: Marco Trevisan <email address hidden>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 913 kB
Depends: gnome-shell (<< 46~), gnome-shell (>= 45~), dconf-gsettings-backend | gsettings-backend
Replaces: gnome-shell-extension-dashtodock
Homepage: https://github.com/micheleg/dash-to-dock/blob/ubuntu-dock/README.md
Task: ubuntu-desktop-minimal, ubuntu-desktop, edubuntu-desktop-gnome
Download-Size: 117 kB
APT-Manual-Installed: no
APT-Sources: http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
Description: Ubuntu Dock for GNOME Shell
 A dock for the Gnome Shell, default Ubuntu experience.
 .
 This extension is a modified version of Dash To Dock with different defaults.
 Dash To Dock can be installed to replace it and give more (but unsupported)
 configuration options.

corrado@corrado-n4-mm-1005:~/Videos$

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Corrado, I think this is not a big deal. The deprecation warning is just a warning, so everything should still work even when using Meta instead of Mtk.

This is an update that we can also get at later point, so I think Utkarsh is fine to wait (and I also was expecting this to happen, thus I adapted the bug report to the SRU template).

description: updated
Revision history for this message
corrado venturini (corradoventu) wrote :

Yes The deprecation warning is just a warning, but I have the log full of warning messages and i want debug a problem my journalctl is almost unusable

Revision history for this message
Daniel van Vugt (vanvugt) wrote (last edit ):

Only if a message happens frequently will it be a big performance problem. Because then it's triggering a filesystem journal flush every 5 seconds, which blocks in the log write, which blocks the shell, which is seen as screen stutter.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This bug is ready for verification. Due to the status mantic was in when the package was accepted, the tooling failed to add the template comment to this bug, and add the tags, and I did all of that manually now.

tags: added: verification-needed verification-needed-mantic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-ubuntu-dock - 87ubuntu2

---------------
gnome-shell-extension-ubuntu-dock (87ubuntu2) mantic; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * locationsWorker: Exit with the main script exit code (LP: #2038783)

  [ Stuart Hayhurst ]
  * appIcons: Use Mtk.Rectangle instead of Meta.Rectangle (LP: #2034664)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 09 Oct 2023 03:04:54 +0200

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
corrado venturini (corradoventu) wrote :

Ok, problem solved on my Ubuntu Noble
corrado@corrado-n2-nn-1029:~$ apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu2
  Candidate: 87ubuntu2
  Version table:
 *** 87ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu noble/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n2-nn-1029:~$

Revision history for this message
Angel D. Segarra (angel-segarra) wrote :

how can I install gnome-shell-extension-ubuntu-dock (87ubuntu2) for mantic? I don't see it in proposed.

Revision history for this message
Pablo Hörtner (redtux2000) wrote :

Hi Angel, maybe your sources list needs to be adjusted accordingly? I have it in the sources:

apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
     87ubuntu2 100
        100 http://mirror.easyname.at/ubuntu-archive mantic-proposed/main amd64 Packages
        100 http://mirror.easyname.at/ubuntu-archive mantic-proposed/main i386 Packages
 *** 87ubuntu1 500
        500 http://mirror.easyname.at/ubuntu-archive mantic/main amd64 Packages
        500 http://mirror.easyname.at/ubuntu-archive mantic/main i386 Packages
        100 /var/lib/dpkg/status

Regarding the bug, I can confirm that by removing the gnome-shell-extension-ubuntu-dock package I could get rid of those log warnings (although the ubuntu-desktop-minimal package depends on gnome-shell-extension-ubuntu-dock).

Revision history for this message
Angel D. Segarra (angel-segarra) wrote :

Thanks Pablo, I must've done something wrong. Installed it now and issue solved for me on mantic.

Timo Aaltonen (tjaalton)
tags: added: verification-done verification-done-mantic
removed: verification-needed verification-needed-mantic
Revision history for this message
corrado venturini (corradoventu) wrote :

NOT solved on my mantic
corrado@corrado-n6-mantic:~$ apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
 *** 87ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n6-mantic:~$

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

you don't have mantic-proposed enabled

Revision history for this message
corrado venturini (corradoventu) wrote :

Also enabling proposed gnome-shell-extension-ubuntu-dock is NOT upgraded.
corrado@corrado-n6-mantic:~$ apt policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
     87ubuntu2 100
        100 http://archive.ubuntu.com/ubuntu mantic-proposed/main amd64 Packages
        100 http://archive.ubuntu.com/ubuntu mantic-proposed/main i386 Packages
 *** 87ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status
corrado@corrado-n6-mantic:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  firmware-sof-signed
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
corrado@corrado-n6-mantic:~$

Revision history for this message
Simon Engelsman (simon-engelsman) wrote :

Hello,

The priority of manic-proposed is lower (100) than mantic (500). You can override it in `/etc/apt/preferences.d`, see `/usr/share/doc/apt/examples` or manually install the package you want from mantic-proposed:

```
apt-get install gnome-shell-extension-ubuntu-dock=87ubuntu2
```

Revision history for this message
corrado venturini (corradoventu) wrote :

Thanks, after new install and restart problem is solved
thanks again

Revision history for this message
Angel D. Segarra (angel-segarra) wrote :

Hi, should gnome-shell-extension-ubuntu-dock 87ubuntu2 have already migrated from mantic-proposed? I'm assuming this process is automatic. Thanks.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It was blocked waiting on bug 2038783 verification but is unblocked now.

Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for gnome-shell-extension-ubuntu-dock has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell-extension-ubuntu-dock - 87ubuntu2

---------------
gnome-shell-extension-ubuntu-dock (87ubuntu2) mantic; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * locationsWorker: Exit with the main script exit code (LP: #2038783)

  [ Stuart Hayhurst ]
  * appIcons: Use Mtk.Rectangle instead of Meta.Rectangle (LP: #2034664)

 -- Marco Trevisan (Treviño) <email address hidden> Mon, 09 Oct 2023 03:04:54 +0200

Changed in gnome-shell-extension-ubuntu-dock (Ubuntu Mantic):
status: Fix Committed → Fix Released
Revision history for this message
geole0 (geole0) wrote :

Hello
it seems to mee that it is not fixed

 sudo apt install --reinstall gnome-shell-extension-ubuntu-dock
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 5 non mis à jour.
Il est nécessaire de prendre 117 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de :1 http://fr.archive.ubuntu.com/ubuntu mantic-updates/main amd64 gnome-shell-extension-ubuntu-dock all 87ubuntu2 [117 kB]
117 ko réceptionnés en 0s (417 ko/s)
(Lecture de la base de données... 214994 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../gnome-shell-extension-ubuntu-dock_87ubuntu2_all.deb ...
Dépaquetage de gnome-shell-extension-ubuntu-dock (87ubuntu2) sur (87ubuntu2) ...
Paramétrage de gnome-shell-extension-ubuntu-dock (87ubuntu2) ...
Traitement des actions différées (« triggers ») pour libglib2.0-0:amd64 (2.78.0-2) ...

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 23.10
Release: 23.10
Codename: mantic

date
mar. 28 nov. 2023 18:30:53 CET
a@a:~$

Revision history for this message
Jeremy Bícha (jbicha) wrote :

geoleo0, please file a new bug if you are experiencing an issue, because comments on closed bugs might not be seen.

If you do file a bug, I encourage you to provide details in English. I believe you can prefix a command with something like LANGUAGE=en so like this:

$ LANGUAGE=en sudo apt install

Please note that you need to log out and log back in after installing this update.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

geoleo0, you can find the cause with:

grep -r Meta.Rectangle /usr/share/gnome-shell/extensions/ ~/.local/share/gnome-shell/

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

Why do we have to file a new bug for this. The task for mantic says it's fix released, but it clearly isn't.

alan@ziggy:~$ grep -r Meta.Rectangle /usr/share/gnome-shell/extensions/
/<email address hidden>/appIcons.js: const rect = new Meta.Rectangle();
alan@ziggy:~$ dpkg -S /<email address hidden>/appIcons.js
gnome-shell-extension-ubuntu-dock: /<email address hidden>/appIcons.js
alan@ziggy:~$ apt-cache policy gnome-shell-extension-ubuntu-dock
gnome-shell-extension-ubuntu-dock:
  Installed: 87ubuntu1
  Candidate: 87ubuntu1
  Version table:
 *** 87ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu mantic/main i386 Packages
        100 /var/lib/dpkg/status

This is fixed in noble, but not mantic.

I see no SRU pending: https://ubuntu-archive-team.ubuntu.com/pending-sru

This bug was filed against mantic, it's a mantic bug. So the status of 'fixed released' is clearly just incorrect, surely?

Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

alan@ziggy:~$ sudo journalctl -b0 | grep Meta.Rectangle | wc -l
1836

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Alan, the fix for mantic is released in version 87ubuntu2, not 87ubuntu1. It was published to mantic updates last November so I'm not sure why you wouldn't have received it yet.

You can grab it directly from:
https://launchpad.net/ubuntu/+archive/primary/+files/gnome-shell-extension-ubuntu-dock_87ubuntu2_all.deb

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.