Bug 98771 - amarok has many errors loading mp3 of CIFS network drive
Summary: amarok has many errors loading mp3 of CIFS network drive
Status: RESOLVED DUPLICATE of bug 109451
Alias: None
Product: taglib
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Amarok Developers
URL:
Keywords:
: 98767 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-07 14:26 UTC by christian
Modified: 2006-10-07 15:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description christian 2005-02-07 14:26:53 UTC
Version:            (using KDE KDE 3.3.92)
Installed from:    Compiled From Sources

From a mounted Cifs network drive(Samba) with Std. Mount options amarok fails to :

make a collection
show time remaining of mp3 playing
show khz of mp3 playing

amarok version is CVS from 7.2.2005 with kde 3.4beta2 and all new taglib and everything else.
Comment 1 Mark Kretschmann 2005-02-08 10:21:02 UTC
Christian, this is a mysterious effect indeed. But whatever it is, it can hardly be an amaroK bug.

See, to amaroK all mounted directories are the same. There is no way an application could/should have any special handling for mounted network folders. After all that's the whole point of transparency.
Comment 2 Christian Muehlhaeuser 2005-02-15 16:06:19 UTC
yup, will close this bug for now. feel free to open with further information! without there is nothing we could do. so far, the only thing we can tell is: works fine everywhere we tried it.

regards,
muesli
Comment 3 christian 2005-03-09 17:11:45 UTC
Please check Amarok with a Cifs share. If you dont have one please forward this Bugreport to someone who has a Cifs network drive. Say to him he should build a Collection of the Network drive.

Since it is probably a Taglib Problem please forward this Bug to the Taglib People.

Comment 4 Thiago Macieira 2005-03-10 03:18:12 UTC
Make sure you have a *very* recent Linux kernel, because it had a bug in its CIFS code.

If you still can reproduce using 2.6.11 or better, reopen.
Comment 5 christian 2005-03-10 15:07:41 UTC
i confirm that the bug is there in 2.6.10 2.6.11 and now i am running 2.6.1-mm1. I also check i i can play and seek files with xmms that are on the network drive-and with xmms there is no problem. With amarok i cant seek in the files and much metainformation is displayed wrong.
Comment 6 Thiago Macieira 2005-03-11 03:32:00 UTC
XMMS wouldn't be affected because it isn't a KDE application. Please try listing the directory in Konqueror and opening the file with another KDE program -- for instance, playing it with kaboodle.
Comment 7 christian 2005-03-11 03:35:56 UTC
listing with konqueror and kaboodle in 3.4 works and playing and seeking work perfectly , but not in amarok.

should i test more ?
Comment 8 Max Howell 2005-03-12 02:00:15 UTC
You simply must tell us which audio-engine you are using.
Comment 9 christian 2005-03-12 02:47:19 UTC
engine is gstreamer with alsasink
Comment 10 Thiago Macieira 2005-03-12 23:45:52 UTC
The bug report with information on the kernel bug is Bug #92347 (http://bugs.kde.org/show_bug.cgi?id=92347). See if there's anything there that can help you solve your problem with CIFS-mounted shares.
Comment 11 Greg Meyer 2005-03-19 06:52:32 UTC
*** Bug 98767 has been marked as a duplicate of this bug. ***
Comment 12 Alexandre Oliveira 2005-06-27 06:08:09 UTC
Is this still valid?
Comment 13 Mark Kretschmann 2005-09-23 16:52:11 UTC
close
Comment 14 Serhiy Kachanuk 2006-10-05 19:22:31 UTC
Amarok 1.4.3 (KDE 3.5.2, Kubuntu Package 4:3.5.2-0ubuntu18 dapper)
Linux (i686) release 2.6.15-27-686

When some smb share is mounted to lacal filesystem via smbfs, there is no seeking in files from mounted share in Amarok. In mplayer and kaffeine seeking is ok. 

Also, amarok doesn't see any tags in mp3 files from this mounted share, and again, kaffeine and mplayer shows tags ok. Tags also missing in file properties dialog from konqueror.

Amarok and Kaffeine uses xine engine.

And also tags and seeking fails with KMplayer with both mplayer and xine engine

Comment 15 Martin Aumueller 2006-10-05 21:03:44 UTC
I can confirm this problem, but the reason is not clear to me. However, it seems to be a problem at quite a low level:
- taglib checks if the file is writable, this is done by verifying if the return value of 'access("filename",W_OK)' is 0
- the permissions on the file as listed by ls and the return value of this access call indicate that the file is writable
- however, actually opening the file for reading with 'fopen("filename", "rb+") fails (and touch(1)ing non-existing files in a writable directory on this cifs share fails as well)

In my case, the server was samba 3.0.22 as found in ubuntu edgy. The client kernel was 2.6.17-1.2187_FC5 on fedora 5 using the -tcifs on the mount command line. The smb share had the option 'writable = no' in the smb.conf file.

The problem could probably worked around in taglib by trying to open a file again for reading only if opening for both reading & writing failed.
Comment 16 Martin Aumueller 2006-10-05 22:11:54 UTC
The problem is not specific to the cifs implementation, but also happens when using -tsmb. But it can be worked around, by mounting the non-writable filesystem read-only (-oro mount option). However, ls -l still shows the files to be writable, but the access test used in taglib works correctly then.
Comment 17 Scott Wheeler 2006-10-05 22:26:26 UTC

*** This bug has been marked as a duplicate of 10945 ***
Comment 18 Martin Aumueller 2006-10-05 22:57:17 UTC
It seems that it should have been marked a duplicate of http://bugs.kde.org/show_bug.cgi?id=109451
Comment 19 Serhiy Kachanuk 2006-10-06 11:04:26 UTC
Yes, mounting with read-only solved this problem for me, tanks a lot!
Comment 20 Mark Kretschmann 2006-10-07 15:18:26 UTC
yup, wrong dupe
Comment 21 Mark Kretschmann 2006-10-07 15:18:50 UTC

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