Repeated "time zone updated" notifications when "Automatic Time Zone" enabled

Bug #1971130 reported by Matias Piipari
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am seeing repeated "time zone updated" notifications when "Automatic Time Zone" is enabled in Settings > Date & Time in gnome-control-center on 22.04, whilst my gnome session continues to be active (without me taking any time related actions). The timezone itself continues to be correct (and unchanged).

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.0-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon May 2 10:26:46 2022
DisplayManager: gdm3
InstallationDate: Installed on 2022-03-26 (36 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220321)
RelatedPackageVersions: mutter-common 42.0-3ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Matias Piipari (mz2) wrote :
Matias Piipari (mz2)
description: updated
Revision history for this message
Matias Piipari (mz2) wrote :
Download full text (25.3 KiB)

I left a terminal session tailing `/var/log/syslog` to track what's happening at the time when the notification shows up, and indeed managed to observe it happen again, with a fragment of system logs found below. Looks like NetworkManager fires off a `CONNECTED_SITE` state change, and the location is updated -> notification fires, even if timezone has not changed.

I think the condition that triggers the unnecessary notification is the _location_ changing even if the timezone has not changed, and for whatever reason the location keeps flickering between either Denmark or Germany (both in CET).

Here goes the log example:

```
May 2 15:19:41 iris NetworkManager[4609]: <info> [1651493981.4907] manager: NetworkManager state is now CONNECTED_SITE
May 2 15:19:41 iris dbus-daemon[4607]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.10' (uid=0 pid=4609 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
May 2 15:19:41 iris systemd[1]: Starting Network Manager Script Dispatcher Service...
May 2 15:19:41 iris dbus-daemon[4607]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 2 15:19:41 iris systemd[1]: Started Network Manager Script Dispatcher Service.
May 2 15:19:41 iris NetworkManager[4609]: <info> [1651493981.7719] manager: NetworkManager state is now CONNECTED_GLOBAL
May 2 15:19:46 iris wpa_supplicant[4694]: TDLS: Invalid frame - payloadtype=1 category=240 action=26
May 2 15:19:51 iris systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
May 2 15:19:52 iris gsd-datetime[7371]: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
May 2 15:19:52 iris gsd-datetime[7371]: message repeated 71 times: [ g_object_ref: assertion 'G_IS_OBJECT (object)' failed]
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_has_coords: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_city_name: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_country: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_has_coords: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_city_name: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_country: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_has_coords: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_city_name: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_country: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_has_coords: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_city_name: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_get_country: assertion 'loc != NULL' failed
May 2 15:19:52 iris gsd-datetime[7371]: gweather_location_has_coords: assertion 'loc != NULL' failed
May 2 15:...

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

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

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
djandiek (djandiek) wrote :

I am having this happen to me as well in the past few days. If this is an old bug then why did I just suddenly start having the issue?

Nov 4 06:47:25 : gweather_location_get_city_name: assertion 'loc != NULL' failed
Nov 4 06:47:25 : gweather_location_get_country: assertion 'loc != NULL' failed
Nov 4 06:47:25 : gweather_location_has_coords: assertion 'loc != NULL' failed

Operating System: Ubuntu 22.04.1 LTS
          Kernel: Linux 6.0.5-060005-generic
    Architecture: x86-64
 Hardware Vendor: HP
  Hardware Model: HP Spectre x360 2-in-1 Laptop 14-ef0xxx

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

Other bug subscribers

Remote bug watches

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