GNOME Bugzilla – Bug 711794
Crash because of error while querying tracker
Last modified: 2015-10-30 18:19:00 UTC
Gnome Documents crashes quite often - at least once or twice a day, even the stable 3.8.x releases from the Fedora 19 repositories. During my testing today latest Gnome Documents (built with jhbuild) crashed two times, in both cases with the same message: 1.) Gjs-Message: JS LOG: Error querying tracker: [boxed instance proxy GIName:GLib.Error jsobj@0x7f1f5a153e80 native@0x1b9f550] 2.) Gjs-Message: JS LOG: Error querying tracker: [boxed instance proxy GIName:GLib.Error jsobj@0x7f009429c5b0 native@0x74e1240] Both times it crashed when I wasn't actively using Gnome Documents - I was using web browser and Gnome Documents was just waiting in the backgroud. Between launch and crash there were some other warnings that are probably not that important but I will post them here anyway: Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "canberra-gtk-module" Gjs-Message: JS LOG: Can't find a valid getting started PDF document Gjs-Message: JS LOG: Error updating the cache: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.OnlineMiners.GData was not provided by any .service files error: The metadata does not have a thumbnail property (gnome-documents:32337): GnomeDesktop-WARNING **: Unable to create loader for mime type application/msword: Unrecognized image file format (gnome-documents:32337): GnomeDesktop-WARNING **: Error creating thumbnail for file:///home/miha/Downloads/TRENING%20ALPINISTOV%20IN%20SPORTNIH%20PLEZALCEV.doc: Unrecognized image file format error: The metadata does not have a thumbnail property (gnome-documents:32337): GnomeDesktop-WARNING **: Unable to create loader for mime type application/msword: Unrecognized image file format (gnome-documents:32337): GnomeDesktop-WARNING **: Error creating thumbnail for file:///home/miha/Downloads/Ultrastar%20deluxe/Songs/S/Sarah%20Connor%20-%20Living%20to%20love%20you/Sarah%20Connor%20-%20Living%20to%20love%20you.doc: Unrecognized image file format error: The metadata does not have a thumbnail property (gnome-documents:32337): GnomeDesktop-WARNING **: Unable to create loader for mime type application/msword: Unrecognized image file format (gnome-documents:32337): GnomeDesktop-WARNING **: Error creating thumbnail for file:///home/miha/Dropbox/Documents/ra%C4%8D/HEVC/JCTVC-N1005_v3.doc: Unrecognized image file format
The same crash appears with Gnome Documents 3.8.5 in Fedora 19. It again happened when I was using some other program (coincidence?). Here are last couple of lines of output before the crash: (gnome-documents:319): EvinceView-CRITICAL **: ev_page_cache_get_annot_mapping: assertion `page >= 0 && page < cache->n_pages' failed (gnome-documents:319): EvinceView-CRITICAL **: ev_page_cache_get_annot_mapping: assertion `page >= 0 && page < cache->n_pages' failed error: The metadata does not have a thumbnail property (gnome-documents:319): GnomeDesktop-WARNING **: Unable to create loader for mime type application/msword: Unrecognized image file format (gnome-documents:319): GnomeDesktop-WARNING **: Error creating thumbnail for file:///home/miha/Dropbox/Documents/ra%C4%8D/HEVC/JCTVC-N1005_v3.doc: Unrecognized image file format JS LOG: Error querying tracker: [boxed instance proxy GIName:GLib.Error jsobj@0x7f6342a9d160 native@0x7f62c00279c0]
(In reply to comment #0) > Gnome Documents crashes quite often - at least once or twice a day, even the > stable 3.8.x releases from the Fedora 19 repositories. During my testing today > latest Gnome Documents (built with jhbuild) crashed two times, in both cases > with the same message: > > 1.) Gjs-Message: JS LOG: Error querying tracker: [boxed instance proxy > GIName:GLib.Error jsobj@0x7f1f5a153e80 native@0x1b9f550] > 2.) Gjs-Message: JS LOG: Error querying tracker: [boxed instance proxy > GIName:GLib.Error jsobj@0x7f009429c5b0 native@0x74e1240] Looks like we are only printing the GError object / pointer, instead of the actual error message. :-( > Both times it crashed when I wasn't actively using Gnome Documents - I was > using web browser and Gnome Documents was just waiting in the backgroud. Did you use the gnome-shell overview to search? A quick glance at the code says that the search provider was being used. > Gjs-Message: JS LOG: Error updating the cache: Gio.DBusError: > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name > org.gnome.OnlineMiners.GData was not provided by any .service files This is because gnome-online-miners is missing. The rest should be harmless.
Created attachment 261468 [details] [review] all: Use unique and meaningful debug messages
Could you please provide some kind of a backtrace? You might also want to try out the attached patch which should emit unique and meaningful debug messages. If you choose to do that make sure that you are running search provider from the correct prefix with respect to gnome-shell.
I patched Gnome Documents 3.8.5 with the above patch and used it for a couple of hours, but it hasn't crashed yet. I also tested git version a bit, but it is hard to use because of bug 711789 [1] - one can move around document only one page at a time, because the slider doesn't appear on click. > You might also want to try out the attached patch which should emit unique and > meaningful debug messages. If you choose to do that make sure that you are > running search provider from the correct prefix with respect to gnome-shell. How do I make sure that I am running search provider from the correct prefix? Do you mean system (Fedora 19) version vs. jhbuild version? [1] https://bugzilla.gnome.org/show_bug.cgi?id=711789.
(In reply to comment #5) > I patched Gnome Documents 3.8.5 with the above patch and used it for a couple > of hours, but it hasn't crashed yet. I also tested git version a bit, but it is > hard to use because of bug 711789 [1] - one can move around document only one > page at a time, because the slider doesn't appear on click. If you are playing with Git, then you could try out the gnome-3-8 branch. That is where 3.8.5 comes from. $ git fetch origin $ git branch --track gnome-3-8 origin/gnome-3-8 $ git checkout gnome-3-8 > > You might also want to try out the attached patch which should emit unique and > > meaningful debug messages. If you choose to do that make sure that you are > > running search provider from the correct prefix with respect to gnome-shell. > > How do I make sure that I am running search provider from the correct prefix? > Do you mean system (Fedora 19) version vs. jhbuild version? Yes, I meant system version vs. jhbuild version. I *think* it should be enough to have your jhbuilt gnome-documents application running because the application itself provides the DBus interfaces required for the search provider.
ping
It's been a while and we still don't know what was going on here. Let's close this as INCOMPLETE. Please re-open if you encounter this again, or have more information.