Public bug reported: I often see many of these warning on the terminal after opening gitg:
``` (gitg:4122703): GLib-CRITICAL **: 01:09:31.514: g_date_time_to_timezone: assertion 'tz != NULL' failed ``` Example repository: ``` git clone https://github.com/dracut-ng/dracut-ng.git gitg dracut-ng/ ``` I tracked down this error to ggit_signature_get_time from libgit2-glib. I added this line before the g_date_time_to_timezone call: ``` fprintf(stderr, "\nggit_signature_get_time: s->when.time=%i, s->when.offset=%i", s->when.time, s->when.offset); ``` And here is the log snippet: ``` ggit_signature_get_time: s->when.time=1622118898, s->when.offset=120 ggit_signature_get_time: s->when.time=1342777608, s->when.offset=120 ggit_signature_get_time: s->when.time=0, s->when.offset=-689439392 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=1246528786, s->when.offset=120 ggit_signature_get_time: s->when.time=0, s->when.offset=-689439392 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=0, s->when.offset=-686456912 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=0, s->when.offset=-689439392 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=0, s->when.offset=-686454672 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=0, s->when.offset=-689439392 (gitg:4128844): GLib-CRITICAL **: 01:15:51.895: g_date_time_to_timezone: assertion 'tz != NULL' failed ggit_signature_get_time: s->when.time=1342777608, s->when.offset=120 ggit_signature_get_time: s->when.time=1655678126, s->when.offset=0 ggit_signature_get_time: s->when.time=1364313355, s->when.offset=60 ``` I don't know why time is 0 and the offset negative. That data looks fishy. ProblemType: Bug DistroRelease: Ubuntu 25.10 Package: gitg 44-3 ProcVersionSignature: Ubuntu 6.17.0-6.6-generic 6.17.1 Uname: Linux 6.17.0-6-generic x86_64 NonfreeKernelModules: zfs ApportVersion: 2.33.1-0ubuntu3 Architecture: amd64 CasperMD5CheckResult: pass CurrentDesktop: ubuntu:GNOME Date: Thu Nov 27 01:10:04 2025 InstallationDate: Installed on 2022-03-20 (1347 days ago) InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012) SourcePackage: gitg UpgradeStatus: Upgraded to questing on 2025-10-17 (40 days ago) ** Affects: gitg (Ubuntu) Importance: Undecided Status: New ** Affects: libgit2-glib (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug questing wayland-session ** Also affects: libgit2-glib (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2133136 Title: many GLib-CRITICAL: g_date_time_to_timezone: assertion 'tz != NULL' failed To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gitg/+bug/2133136/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
