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 601504 - Does not work always "Start playing files from last posn"
Does not work always "Start playing files from last posn"
Status: RESOLVED DUPLICATE of bug 598561
Product: gvfs
Classification: Core
Component: metadata
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2009-11-11 10:00 UTC by Praveen Thirukonda
Modified: 2009-11-24 13:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
home file in gvfs-meta data folder (32.00 KB, application/octet-stream)
2009-11-17 12:59 UTC, Praveen Thirukonda
Details
home-5eea844f (32.00 KB, text/x-log)
2009-11-17 12:59 UTC, Praveen Thirukonda
Details

Description Praveen Thirukonda 2009-11-11 10:00:21 UTC
hello i have a very odd problem . videos which are stored in my home folder in videos folder when i play them totem doesnt remember the last position when i reopen them
15:28 but for videos stored in my other partition which has windows xp there the videos if i open and close then totem remebers the postion when i reopen
15:28 using ubuntu karmic koala latest updated
Comment 1 Philip Withnall 2009-11-11 11:27:47 UTC
Thanks for taking the time to report this bug.
This bug report isn't very useful because it doesn't describe the bug well. If you have time and can still reproduce the bug, please read http://bugzilla.gnome.org/bug-HOWTO.html and add a more useful description to this bug.
Specifically, we need information on the lengths of the videos, and your version of GVfs.
Comment 2 Praveen Thirukonda 2009-11-11 11:37:33 UTC
i do want to help this bug be fixed. so please specifically tell me what all info i can provide.

to provide some more details in my ubuntu karmic fully updated, i have a few avi videos ( i dont think format of video matters in this case). now they are located in the videos folder(inside my home folder)(btw even from other folders in my home folder like say documents the same video if copy pasted then also it does not work). Earlier when i freshly installed Karmic, the "Start playing files from last posn" feature worked. but few days ago it did stop working for files in my home folder. now if i copy and paste the same video file to my other partition of NTFS format which contains windows xp. and then i paster and open the video file from that partition in totem. then it does work properly. 

Gvfs version 1.4.1-0ubuntu1
Comment 3 Praveen Thirukonda 2009-11-11 11:38:04 UTC
the length of the video file is around 30 mins
Comment 4 Praveen Thirukonda 2009-11-11 12:28:43 UTC
when closing the video opened which is in home folder it gives this in command line
17:56 ** (totem:7025): WARNING **: g_file_set_attribute_string failed: DBus error org.freedesktop.DBus.Error.Failed: Unable to set metadata key
17:56 useful?
17:57 hmm i think that must be it as it doesnt do that in cmd line when i open the video from windows partition and close it
Comment 5 Bastien Nocera 2009-11-11 12:30:54 UTC
That means gvfsd-metadata fails.
Comment 6 Tomas Bzatek 2009-11-11 16:18:34 UTC
During my testing, I was confused when totem resumed playback at saved position for some videos only. It worked for mp4 and flv videos, but not for mov and ogv. Digging into gdaemonvfs.c I found totem trying to set the 'metadata::totem::position' attribute with zero-length string value. This zero-length value is however properly stored in the metadata database. Verify by calling `gvfs-info` on the video file. Cross-device metadata storage works properly.

Worth noting that I haven't seen any DBus errors, that might be a different issue (perhaps an effect of corrupted database - bug 598561).
Comment 7 Tomas Bzatek 2009-11-11 16:35:59 UTC
OK, Bastien has just cleared me the way totem stores the position:
src/totem-uri.c: #define SAVE_POSITION_THRESHOLD 5 * 60 * 1000

(In reply to comment #4)
> ** (totem:7025): WARNING **: g_file_set_attribute_string failed: DBus
> error org.freedesktop.DBus.Error.Failed: Unable to set metadata key
So the error above might indicate that the gvfsd-metadata daemon has crashed.

Can you check dmesg for any crashes?
Comment 8 Praveen Thirukonda 2009-11-11 16:47:34 UTC
[ 4638.198212] gvfsd-metadata[2185]: segfault at 8 ip 0804d2ea sp bfc479a0 error 4 in gvfsd-metadata[8048000+c000]
 dmesg message for video in home folder which doesnt save posn
Comment 9 Christian Kellner 2009-11-11 17:00:20 UTC
Hmm so this might be related to #bug 598561, or even be a dup.
Comment 10 Praveen Thirukonda 2009-11-11 18:03:04 UTC
um there is no crash in my case of gvfs and also the file is not corrupted as from the other partition it works fine so i think its not a dup. but i am not a dev so i have no idea.
Comment 11 Tomas Bzatek 2009-11-12 10:36:30 UTC
(In reply to comment #8)
> [ 4638.198212] gvfsd-metadata[2185]: segfault at 8 ip 0804d2ea sp bfc479a0
> error 4 in gvfsd-metadata[8048000+c000]
>  dmesg message for video in home folder which doesnt save posn

Any idea how you got into the crashing state? Can you please wipe your ~/.local/share/gvfs-metadata (be sure to make backup first) and try reproducing the crash? We desperately need good reproducer in order to fix the problem.
Comment 12 Praveen Thirukonda 2009-11-12 12:03:37 UTC
(In reply to comment #11)
> (In reply to comment #8)
> > [ 4638.198212] gvfsd-metadata[2185]: segfault at 8 ip 0804d2ea sp bfc479a0
> > error 4 in gvfsd-metadata[8048000+c000]
> >  dmesg message for video in home folder which doesnt save posn
> 
> Any idea how you got into the crashing state? 

i have done nothing wierd except installing many codecs.so a fully updated karmic should maybe reproduce bug
Can you please wipe your
> ~/.local/share/gvfs-metadata (be sure to make backup first) and try reproducing
> the crash?

yes this seems to have fixed the problem. can i permanently delete whatever files were there in that folder?

> We desperately need good reproducer in order to fix the problem.

also if u want or know which file u want from that folder which might be helpful to fix the bug i can share if it doesn't contain any personal info.

the total size of all files in that folder combined is only around 1.7 mb.
Comment 13 Tomas Bzatek 2009-11-16 16:39:22 UTC
(In reply to comment #12)
> can i permanently delete whatever files were there in that folder?
You can, you'll only lose user-defined emblems on files in Nautilus and saved icon positions on desktop.

> also if u want or know which file u want from that folder which might be
> helpful to fix the bug i can share if it doesn't contain any personal info.
I'd bet the file causing crashes is ~/.local/share/gvfs-metadata/home. It doesn't contain personal information unless you entered them manually. It contains file names though. Attaching the affected file here might be interesting to see how much it's corrupted, but I don't think it would help us to fix the root cause.
Comment 14 Praveen Thirukonda 2009-11-17 12:59:20 UTC
Created attachment 147970 [details]
home file in gvfs-meta data folder
Comment 15 Praveen Thirukonda 2009-11-17 12:59:56 UTC
Created attachment 147971 [details]
home-5eea844f
Comment 16 Praveen Thirukonda 2009-11-17 13:00:29 UTC
added the 2 home files in that folder. please let me know if u need anything else.
Comment 17 Alexander Larsson 2009-11-24 13:12:44 UTC
I believe this is the same as bug 598561. At least they are related so lets dup it there.

*** This bug has been marked as a duplicate of bug 598561 ***