GNOME Bugzilla – Bug 604294
gnome-system-log assert failure: gnome-system-log:ERROR:logview-log.c:910:logview_log_get_uri: assertion failed: (LOGVIEW_IS_LOG (log))
Last modified: 2020-09-26 09:41:08 UTC
this report has been filed here: https://bugs.launchpad.net/ubuntu/+source/gnome-utils/+bug/486380 "to reproduce crash: close all files in gnome-system-log fast one by one" ".
+ Trace 219550
Thread 1 (process 4854)
Bug: When you press Ctrl+W and there is no log file selected in the left widget... Must be fixed after patch 11 Apr 2013 Patch info : https://git.gnome.org/browse/gnome-system-log/commit/src/logview-manager.c?id=ad9153b8bcd8a2556d7a1f5fcca890680c4677de Patch file: From ad9153b8bcd8a2556d7a1f5fcca890680c4677de Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi <cosimoc@gnome.org> Date: Thu, 11 Apr 2013 21:25:20 +0000 Subject: manager: add some safety NULL-checks https://bugzilla.gnome.org/show_bug.cgi?id=697790 --- (limited to 'src/logview-manager.c') diff --git a/src/logview-manager.c b/src/logview-manager.c index 29dcba9..b948bfa 100644 --- a/src/logview-manager.c +++ b/src/logview-manager.c @@ -398,6 +398,10 @@ logview_manager_close_active_log (LogviewManager *manager) g_assert (LOGVIEW_IS_MANAGER (manager)); active_log = manager->priv->active_log; + if (active_log == NULL) { + return; + } + log_uri = logview_log_get_uri (active_log); file = logview_log_get_gfile (active_log); [...] -- cgit v0.9.2 Sorry, can't check master branch, problems with JHBuild and Centos6. But in older versions, checking pointer on NULL - fixed this bug.
gnome-system-log is not under active development anymore and had its last code changes more than four years ago. Its codebase has been archived at https://gitlab.gnome.org/Archive/gnome-system-log/ Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the responsibility for active development again.