/usr/bin/gnome-software:11:gs_plugin_snap_set_app_pixbuf_from_data:load_icon:gs_plugin_refine_app:gs_plugin_loader_run_refine:gs_plugin_loader_search_thread_cb
Bug #1708140 reported by
errors.ubuntu.com bug bridge
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-software (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Unassigned | ||
Zesty |
Fix Released
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
errors.ubuntu.com [1] is showing crashes in the icon caching code. Inspection and testing of this code doesn't show any reason why this code path can occur.
[Test Case]
1. Check errors.ubuntu.com for crash reports in the icon cache code
Expected result:
Errors do not occur.
Observed result:
Errors occur.
[Regression Potential]
Some risk of introducing new bugs in the icon handling code. The code is similar to what has been released into Artful, but needed to be modified to work with the older version of gnome-software in Xenial (the Zesty change is the same as Artful).
[1] https:/
description: | updated |
To post a comment you must log in.
The code seems to be doing:
g_autofree gchar *data = NULL;
gsize data_len;
if (g_file_ get_contents (cache_fn, &data, &data_len, &local_error) && plugin_ snap_set_ app_pixbuf_ from_data (app, data, data_len, &local_error))
gs_
And entering gs_plugin_ snap_set_ app_pixbuf_ from_data with data set to NULL.
That suggests that g_file_get_contents has returned TRUE but set data to NULL.