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 711794 - Crash because of error while querying tracker
Crash because of error while querying tracker
Status: RESOLVED INCOMPLETE
Product: gnome-documents
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-11-10 20:01 UTC by Miha
Modified: 2015-10-30 18:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
all: Use unique and meaningful debug messages (5.03 KB, patch)
2013-11-25 17:38 UTC, Debarshi Ray
committed Details | Review

Description Miha 2013-11-10 20:01:08 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
Comment 1 Miha 2013-11-11 13:44:51 UTC
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]
Comment 2 Debarshi Ray 2013-11-25 17:16:32 UTC
(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.
Comment 3 Debarshi Ray 2013-11-25 17:38:38 UTC
Created attachment 261468 [details] [review]
all: Use unique and meaningful debug messages
Comment 4 Debarshi Ray 2013-11-25 17:43:58 UTC
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.
Comment 5 Miha 2013-11-27 08:41:19 UTC
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.
Comment 6 Debarshi Ray 2013-11-27 11:56:23 UTC
(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.
Comment 7 Debarshi Ray 2014-03-28 15:21:44 UTC
ping
Comment 8 Debarshi Ray 2015-10-30 18:19:00 UTC
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.