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 685905 - crash if tracker is not available
crash if tracker is not available
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-10-10 18:21 UTC by Olivier Blin
Modified: 2016-03-31 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] media-manager: fix crash when tracker is not available (2.81 KB, patch)
2012-10-10 18:22 UTC, Olivier Blin
none Details | Review
media-manager: fix crash when tracker is not available (797 bytes, patch)
2012-10-11 00:10 UTC, Zeeshan Ali
committed Details | Review

Description Olivier Blin 2012-10-10 18:21:39 UTC
When tracker is not available, gnome-boxes crashes at start:

(gnome-boxes:21720): Boxes-CRITICAL **: media-manager.vala:27: Error connecting to Tracker: 
               GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Tracker1 was not provided by any .service files
Program received signal SIGSEGV, Segmentation fault.
tracker_sparql_connection_query_async (self=0x0, cancellable=0x0, _callback_=0x444db0 
               <boxes_media_manager_list_installer_medias_ready>, _user_data_=0x1756e70) at 
               /home/martyn/Source/tracker/src/libtracker-sparql/tracker-connection.vala:82
Comment 1 Olivier Blin 2012-10-10 18:22:45 UTC
Created attachment 226189 [details] [review]
[PATCH] media-manager: fix crash when tracker is not available
Comment 2 Zeeshan Ali 2012-10-11 00:10:34 UTC
Created attachment 226222 [details] [review]
media-manager: fix crash when tracker is not available

Your patch looks good but I'd prefer this simpler version.
Comment 3 Olivier Blin 2012-10-11 08:23:32 UTC
Yep, this will work, as long as no other source is probed after tracker.
Thanks!
Comment 4 Christophe Fergeau 2012-10-11 09:17:44 UTC
Review of attachment 226222 [details] [review]:

ACK
Comment 5 Zeeshan Ali 2012-10-11 12:16:57 UTC
Attachment 226222 [details] pushed as f0d5f65 - media-manager: fix crash when tracker is not available