Launchpad has imported 39 comments from the remote bug at https://bugs.kde.org/show_bug.cgi?id=156759.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2008-01-27T06:32:03+00:00 muesli wrote: Version: (using Devel) Installed from: Compiled sources OS: Linux Having mounted a remote samba share via cifs (or smbfs) i noticed dolphin crashes / freezes when trying to change the sort mode or view mode on a directory that my user has no write-permissions on the server. (yet the share is being mounted as rw). Changing the mount options to ro (read-only) fixes the issue, yet I think dolphin shouldn't crash / freeze in such a situation, but handle the error gracefully. It appears it tries to write a lock-file in this directory - which it obviously fails to do. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/0 ------------------------------------------------------------------------ On 2008-04-26T14:24:33+00:00 Marco Krohn wrote: I experience the same kind of freeze of dolphin on my NAS (mounted "rw") when trying to switch the view mode from "icons" to "details". However, I have write permissions on the directory. BTW: Thanks a lot for dolphin - it is a great application! Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/1 ------------------------------------------------------------------------ On 2008-06-03T14:14:55+00:00 Christian Weilbach wrote: I have the problem, too, with trunk (kdebase rev. 816127). If I remove the .directory.lock file by hand (which I can do as the same user as dolphin runs on cifs), dolphin unfreezes and changes the settings. I guess it should a) not freeze on any view mode changes and at least timeout and b) should work in default here. But this is only my 2 pence. I hope you fix it somehow. Cheers, duns Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/2 ------------------------------------------------------------------------ On 2008-07-06T19:44:48+00:00 Ian Dickerson wrote: I can confirm Dolphin hangs on change of view mode while navigating cifs mount. When run from command line, it complains of "problem deleting stale lockfile". Deleting .directory.lock manually does unfreeze but only until the next view change. Since I mount most of my home directory over cifs, this is a bit of showstopper. Using Dolphin Version 1.0.99 KDE 4.00.83 (KDE 4.0.83 (KDE 4.1 Beta2) Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/3 ------------------------------------------------------------------------ On 2008-07-06T21:27:20+00:00 Peter-penz19 wrote: The issue is on my TODO-list and I've increased the priority, but I cannot promise that it will be fixed until KDE 4.1 final. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/4 ------------------------------------------------------------------------ On 2008-07-13T21:17:38+00:00 Toma-u wrote: Confirmed. Makes file management impossible for those folders, is there a temp workaround or can you explain more about the cause? Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/5 ------------------------------------------------------------------------ On 2008-07-14T07:17:47+00:00 Peter-penz19 wrote: @Tom: A temporary workaround is to enable "(x) Use common view properties for all folders", by this Dolphin won't write the .directory files. The fix should not be difficult I hope, but the next 2 weeks I've quite less time for Dolphin :-( Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/6 ------------------------------------------------------------------------ On 2008-07-19T14:44:47+00:00 Peter-penz19 wrote: @David: I cannot reproduce this issue - although I've write access to my samba-share, Dolphin (correctly) stores the .directory files mirrored inside ~/.kde4/share/apps/dolphin -> no locking. I had a look at the code and from my point of view Dolphin should never try to write on non-local directory. Inside ViewProperties.cpp there is the following check (simplified here - 'url' is the input, m_filePath the path where the .directory file will be written): KUrl cleanUrl(url); cleanUrl.cleanPath(); m_filepath = cleanUrl.path(); ... if (cleanUrl.isLocalFile()) { const QFileInfo info(m_filepath); if (!info.isWritable()) { m_filepath = destinationDir("local") + m_filepath; } } else { m_filepath = destinationDir("remote") + m_filepath; } Where destinationDir() is implemented like this: QString ViewProperties::destinationDir(const QString& subDir) const { QString basePath = KGlobal::mainComponent().componentName(); basePath.append("/view_properties/").append(subDir); return KStandardDirs::locateLocal("data", basePath); } I'm confused now as cleanUrl.isLocalFile() should return false in the case of cifs/smbfs and hence never may touch the .directory file. And even if true would be returned, then isWritable() may not return true if it is not writable. >From a quick look at this code: Do you see a general flaw here? Thanks! Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/7 ------------------------------------------------------------------------ On 2008-07-19T15:00:25+00:00 Toma-u wrote: (for me this is about cifs mounted shares, so that would be /home/toma/someserver/networkshare/) Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/8 ------------------------------------------------------------------------ On 2008-07-19T15:08:25+00:00 Peter-penz19 wrote: @Tom: Ah, this would explain why at least cleanUrl.isLocalFile() returns true. Hmm, I'm still wondering when fileInfo.isWriteable() returns true why it still locks... Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/9 ------------------------------------------------------------------------ On 2008-07-19T15:37:58+00:00 Toma-u wrote: yes, it looks like dolphin checks the timestamp on the .directory file like: "m_node->timestamp() < settings->viewPropsTimestamp()". I'm pretty sure this is error prone for mounted devices, as it will probablt get the server timestamp. So if the date/time on the server does not match exactly the one on the client, this could cause trouble in theory. I just can't see how it could make dolphin hang though. Maybe this helps. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/10 ------------------------------------------------------------------------ On 2008-08-04T15:59:17+00:00 Peter-penz19 wrote: *** Bug 162816 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/11 ------------------------------------------------------------------------ On 2008-08-05T12:27:47+00:00 Peter-penz19 wrote: *** Bug 168407 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/12 ------------------------------------------------------------------------ On 2008-08-05T12:27:55+00:00 Peter-penz19 wrote: *** Bug 151112 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/13 ------------------------------------------------------------------------ On 2008-08-06T11:59:57+00:00 Cwales wrote: Confirming I have this bug also - openSUSE x86_64 rpms, using a CIFS- mounted filesystem. Trying to change the view to detailed view, to image preview or any other change to the basic folder view causes Dolphin to crash. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/14 ------------------------------------------------------------------------ On 2008-08-11T14:19:03+00:00 Cwales wrote: Additional behaviour I've observed: Dolphin will crash if you try to switch view or sort mode on ANY directory, whilst you have a SMBFS/CIFS directory open. So, if you have an SMBFS/CIFS window open, split the view, use the second pane to navigate through the local filesystem and then try and change view/sort mode on the local fs, Dolphin will freeze as there is an SMBFS/CIFS window open, even though this is not the directory you are trying to sort. This applies even if the SMBFS/CIFS system is open in a completely Dolphin window; changing view or sort on the local fs will still cause Dolphin to freeze. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/15 ------------------------------------------------------------------------ On 2008-08-18T11:07:18+00:00 Danielstefanmader wrote: It seems to me that this bug also affects Konqueror, not only Dolphin. Since networking is a somewhat essential feature of a Linux box I'd be very happy to see this bug fixed soon! (Along with the printing issues :) I am using the KDE4:factory repo from the openSUSE Buildservice for the future 11.1 release. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/16 ------------------------------------------------------------------------ On 2008-09-13T18:31:38+00:00 Danielstefanmader wrote: Is there any news on this issue? It makes everyday real-life usage experience with KDE4 a hellish nightmare... Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/17 ------------------------------------------------------------------------ On 2008-09-13T18:54:39+00:00 Gregor Rosenauer wrote: same here with KDE 4.1.1, thanks for the workaround, Christian Weilbach! I'd even build dolphin from SVN for this issue to get resolved, please get back to this bug as soon as you can, Peter Penz. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/18 ------------------------------------------------------------------------ On 2008-09-15T19:54:36+00:00 David Faure wrote: Doh, I first tested with a NFS mount, but those work fine. With smbmount I see "couldn't lock local file" indeed, for a readonly mount (this is because smbmount doesn't adjust permissions like nfsmount does, for a readonly mount, so the permissions seem to indicate that the directory is writable, while it is not). Ah, with a readwrite mount I finally get the bug. WARNING: Problem deleting stale lockfile /<path>/.directory.lock WARNING: Problem deleting stale lockfile /<path>/.directory.lock etc. forever. Definitely a KLockFile bug. Investigation showed: lockFile() always returns LockFail, even though it creates the lock file fine. 173 if (st_buf != st_buf2 || S_ISLNK(st_buf.st_mode) || S_ISLNK(st_buf2.st_mode)) 174 { 175 // SMBFS supports hardlinks by copying the file, as a result the above test will always fail 176 if ((st_buf.st_nlink == 1) && (st_buf2.st_nlink == 1) && (st_buf.st_ino != st_buf2.st_ino)) 177 { [...] 181 } 182 return KLockFile::LockFail; The first if() is indeed always false, but the second one too: st_buf.st_nlink is 2, st_buf2.st_nlink is 2 as well, and the st_ino differ indeed. So I have a patch which fixes this, but KLockFile is still VERY slow locking that file (i.e. every time I click on the view mode change button!), because of the slow testLinkCountSupport() code that the snipped code in the above if runs... Ouch I wanted to ask the author of the code about all this, but that's Waldo... Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/19 ------------------------------------------------------------------------ On 2008-09-15T20:00:44+00:00 David Faure wrote: Created attachment 27434 patch Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/20 ------------------------------------------------------------------------ On 2008-09-17T12:11:19+00:00 David Faure wrote: Dirk says he has a patch that replaces all this code with an atomic move instead. Sounds good to me :) Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/21 ------------------------------------------------------------------------ On 2008-09-19T21:45:24+00:00 David Faure wrote: *** Bug 151680 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/22 ------------------------------------------------------------------------ On 2008-09-19T21:46:02+00:00 David Faure wrote: *** Bug 165245 has been marked as a duplicate of this bug. *** Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/23 ------------------------------------------------------------------------ On 2008-09-19T23:26:34+00:00 Bjoern Voigt wrote: For all users which can not wait for an KDE update. Here is a workaround: Add the option "serverino" when mounting a CIFS share. I tested this which Samba 3.x on the server side. I do not know if this works with Windows on the server side too. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/24 ------------------------------------------------------------------------ On 2008-10-04T11:27:52+00:00 Gregor Rosenauer wrote: bjoern, thanks very much for the tip - works here too! Still looking forward to the atomic fix, though,-) Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/25 ------------------------------------------------------------------------ On 2008-10-05T09:57:49+00:00 Jon Severinsson wrote: bjoern: Thanks for the tip. It solved the problem for me on two out of three shares. Just a warning though: According to the mount.cifs man page you should NOT use this workaround if your share spans more than one disk partition on the server, as that would give you duplicate inode numbers on the client (two files, same mount, same inode number = trouble). Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/26 ------------------------------------------------------------------------ On 2008-11-06T19:04:23+00:00 Danielstefanmader wrote: Any news on thuis issue? This bug is still not fixed in 4.1.3 which is an annoyance since it seriously affects networking experience. I would very much appreciate any improvements here! Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/28 ------------------------------------------------------------------------ On 2008-11-08T15:04:05+00:00 Peter-penz19 wrote: @David: The issue has already 100 votes, should we apply your patch in the meantime? It's unclear for me currently until when Dirk can apply his patch. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/29 ------------------------------------------------------------------------ On 2008-11-08T20:09:59+00:00 Danielstefanmader wrote: May I ask which Dirk that would be? Dirk Müller from the openSUSE team? If so, please bug him a little more to apply his patch! Thank you very much! Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/30 ------------------------------------------------------------------------ On 2008-12-19T15:04:29+00:00 Mueller-kde wrote: Porting the patch to 4.2 and 4.1 branch. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/31 ------------------------------------------------------------------------ On 2009-01-14T16:03:38+00:00 Solo0815 wrote: The Bug is not fixed in 4.2RC1. Hopefully it's fixed until the final version. Thx in advance. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/32 ------------------------------------------------------------------------ On 2009-01-16T20:16:56+00:00 jofko wrote: just adding console output: dolphin(5786)/kio (KDirListerCache) KDirListerCache::forgetDirs: DolphinDirLister(0x8644c38) item moved into cache: KUrl("file:///home/jofko") dolphin(5786)/kio (KDirListerCache) KDirListerCache::listDir: Listing directory: KUrl("file:///home/jofko/kaktus") dolphin(5786)/kio (KDirWatch) KDirWatchPrivate::addEntry: Added Dir "/home/jofko/kaktus" for "" ["KDirWatch-2"] dolphin(5786)/kio (KDirWatch) KDirWatchPrivate::useINotify: trying to use inotify for monitoring dolphin(5786)/kio (KDirWatch) KDirWatchPrivate::useINotify: inotify successfully used for monitoring dolphin(5786) MetaDataWidget::setFile: KUrl("file:///home/jofko/kaktus") dolphin(5786)/kio (KDirListerCache) KDirListerCache::slotResult: finished listing KUrl("file:///home/jofko/kaktus") dolphin(5786)/kio (KIOJob) KDirModel::indexForUrl: KUrl("file:///home/jofko") not found dolphin(5786)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig: WARNING: Problem deleting stale lockfile /home/jofko/kaktus/.directory.lock WARNING: Problem deleting stale lockfile /home/jofko/kaktus/.directory.lock Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/33 ------------------------------------------------------------------------ On 2009-01-23T00:20:42+00:00 Mueller-kde wrote: SVN commit 915410 by mueller: add a workaround for cifs/samba 2.x oddity. better fix in trunk. BUG: 156759 M +3 -1 klockfile_unix.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=915410 Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/34 ------------------------------------------------------------------------ On 2009-02-02T15:34:08+00:00 Danielstefanmader wrote: Only partially fixed here in 4.2 from http://download.opensuse.org/repositories/KDE:/KDE4:/Factory:/Desktop/openSUSE_11.1/ As it seems, it works OK in smaller shares but still crashes Dolphin in larger folders: mader@santenay:/home/02_optstaff> dolphin -v Qt: 4.4.3 KDE: 4.2.00 (KDE 4.2.0) "release 83.1" Dolphin: 1.2 mader@santenay:/home/02_optstaff> dolphin "/usr/bin/dolphin(14480)" Error in thread 140428661770064 : "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files" "/usr/bin/dolphin(14480)" Error in thread 140428661770064 : "QLocalSocket::connectToServer: Invalid name" dolphin(14480): Attempt to use QAction "close_tab" with KXMLGUIFactory! dolphin(14480): Attempt to use QAction "show_info_panel" with KXMLGUIFactory! dolphin(14480): Attempt to use QAction "show_folders_panel" with KXMLGUIFactory! dolphin(14480): Attempt to use QAction "show_terminal_panel" with KXMLGUIFactory! dolphin(14480): Attempt to use QAction "show_places_panel" with KXMLGUIFactory! mader@santenay:/home/02_optstaff> WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock WARNING: Problem deleting stale lockfile /home/02_optstaff/.directory.lock [...] Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/38 ------------------------------------------------------------------------ On 2009-02-07T10:49:46+00:00 Jux wrote: I can not confirm this - I've created 10k files for testing purposes and everything works fine. My files are at 0byte size (maybe that's the reason why it works?). But it seems not to depend on the amount of files ... for i in `seq 1 10000` ; do touch $i ; done Qt: 4.4.3 KDE: 4.2.00 (KDE 4.2.0) "release 88.2" Dolphin: 1.2 Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/39 ------------------------------------------------------------------------ On 2009-02-07T11:41:10+00:00 Danielstefanmader wrote: Dirk confirmed yesterday that the patch is incomplete. It does not depend on the amount of files or the size of the share, though. The problem persists with an existing .directory.lock file in the respective share. Deleting it was a workaround for me, but Dirk wants to fix the stale lock issue completely and reassigned it to him. https://bugzilla.novell.com/show_bug.cgi?id=414339 Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/40 ------------------------------------------------------------------------ On 2010-05-07T20:24:36+00:00 psych787 wrote: I can also confirm this bug. However, in my case appears to show up when accessing root UNIX shares and there is no accessible .directory.lock file. This bug not only freezes dolphin but also all applications which are trying to access the share (including konsole windows). Worse, many of these processes (including dolphin) share instances, and *cannot be terminated even by SysRq commands*. As a result, rebooting is necessary. This is a severe bug, and needs to be treated as such. Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/41 ------------------------------------------------------------------------ On 2016-06-01T23:03:08+00:00 Ivost-v wrote: I even have this problem with Dolphin 16.04.1 Reply at: https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/291565/comments/42 ** Bug watch added: Novell/SUSE Bugzilla #414339 https://bugzilla.novell.com/show_bug.cgi?id=414339 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/291565 Title: dolphin - konqueror - cifs crash To manage notifications about this bug go to: https://bugs.launchpad.net/kde-baseapps/+bug/291565/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs