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 394455 - tracker-thumbnailer fails if ~/.thumbnails/normal does not exist
tracker-thumbnailer fails if ~/.thumbnails/normal does not exist
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Jamie McCracken
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2007-01-08 23:36 UTC by Michael Biebl
Modified: 2007-01-11 00:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
tracker-0.5.3-thumbnailer-create-dir.patch (1.46 KB, patch)
2007-01-10 00:01 UTC, Saleem Abdulrasool
none Details | Review
tracker-0.5.3-thumbnailer-create-dir.patch (1.46 KB, patch)
2007-01-10 04:07 UTC, Saleem Abdulrasool
none Details | Review

Description Michael Biebl 2007-01-08 23:36:38 UTC
If the ~/.thumbnails/normal directory does not exist, a call to tracker-thumbailer fails:

# tracker-thumbnailer test.jpg image/jpeg normal

** ERROR **: file tracker-thumbnailer.c: line 164 (main): assertion failed: ((fp = g_fopen (thumbnail_filename, "r")))
aborting...

tracker-thumbnailer should create the directory if not yet existent.
Comment 1 Saleem Abdulrasool 2007-01-09 21:57:36 UTC
Able to reproduce this with tracker-0.5.3
Comment 2 Saleem Abdulrasool 2007-01-10 00:01:53 UTC
Created attachment 79908 [details] [review]
tracker-0.5.3-thumbnailer-create-dir.patch

Please test this patch (it should apply against svn r373 and the 0.5.3 release).
Comment 3 Saleem Abdulrasool 2007-01-10 04:07:37 UTC
Created attachment 79919 [details] [review]
tracker-0.5.3-thumbnailer-create-dir.patch

Fixed a minor typo (somehow, a . ended up in the patch)
Comment 4 Jamie McCracken 2007-01-11 00:20:09 UTC
Fixed in svn