After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782740 - Crashes after dismissing "review updates" dialogue early
Crashes after dismissing "review updates" dialogue early
Status: RESOLVED OBSOLETE
Product: gnome-software
Classification: Applications
Component: General
3.24.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-05-17 11:25 UTC by Bastien Nocera
Modified: 2018-01-24 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2017-05-17 11:25:22 UTC
gnome-software-3.24.3-1.fc26.x86_64

  • #0 gtk_stack_set_visible_child_name
  • #1 get_installed_updates_cb
    at gs-update-dialog.c line 196
  • #2 g_task_return_now
  • #3 complete_in_idle_cb
  • #4 g_idle_dispatch
  • #5 g_main_context_dispatch
  • #6 g_main_context_iterate.isra
  • #7 g_main_context_iteration
  • #8 g_application_run
  • #9 main
    at gs-main.c line 59
  • #1 get_installed_updates_cb
    at gs-update-dialog.c line 196
$1 = (GError_autoptr) 0x5571c0429600
(gdb) p error->
code     domain   message  
(gdb) p error->code 
$2 = 19
(gdb) p error->domain 
$3 = 289
(gdb) p error->message 
$4 = (gchar *) 0x5571c1527ca0 "Operation was cancelled"
(gdb) list
191		}
192	
193		/* no results */
194		if (gs_app_list_length (list) == 0) {
195			g_debug ("no installed updates to show");
196			gtk_stack_set_visible_child_name (GTK_STACK (dialog->stack), "empty");
197			return;
198		}
199	
200		/* set the header title using any one of the applications */
(gdb) p list
$5 = (GsAppList_autoptr) 0x0

My guess is that:
175 ↦       gs_stop_spinner (GTK_SPINNER (dialog->spinner));•
is poking at memory it shouldn't.

If the call is cancelled because the dialog was destroyed, you're doing something bad. That's probably wasn't breaking the error as well (the error code isn't GS_PLUGIN_ERROR_CANCELLED/2), and the list is NULL despite being checked for NULL a second earlier.
Comment 1 GNOME Infrastructure Team 2018-01-24 17:35:39 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-software/issues/177.