Summary: | Unhelpful error message: The resource '~/.kde/share/apps/kabc/std.vcf' is locked by application ''. | ||
---|---|---|---|
Product: | kab3 | Reporter: | Tristan Miller <psychonaut> |
Component: | general | Assignee: | Tobias Koenig <tokoe> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | normal | CC: | chemie1, djdarkmanx, ralf |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Tristan Miller
2005-02-24 17:56:52 UTC
Confirming bug still exists with KDE 3.4. *** Bug 106384 has been marked as a duplicate of this bug. *** *** This bug has been marked as a duplicate of 100388 *** How has this bug been fixed? The report for "fixed" Bug 100388 (which has a higher number, by the way, which means this bug couldn't have duplicated it) gives no indication that a patch has been committed to the source tree. Read it again: just erase the lock files. There were no changes to the source code. If you want to make a comment, make there. *** This bug has been marked as a duplicate of 100388 *** I don't believe you've read this bug report. I am well aware that the "solution" is to erase the lock files. The problem is that there is no way any user will know that he is supposed to do this without first reading that bug report. This bug report requests that KMail/KAddressbook implement an error handler to erase the files for the user. Let me spell it out for you then: TALK IN BUG 100388 That's the one the maintainer closed. He considers it fixed. So you need to convince him. DO NOT REOPEN this bug report. Talk in the other one. *** This bug has been marked as a duplicate of 100388 *** This is not a duplicate. Bug 100388 is about not being able to update KAddressbook entries. This report is different; it is about error handling and automatic maintenance of lock files. If the maintainer doesn't want to fix it, then he can mark it as WONTFIX. But DUPLICATE isn't an acceptable resolution as the two reports address different problems. In other words, the solution to Bug 100388 is not a solution for this bug. If you believe the maintainer of Bug 100388 can help with this bug, then I'm happy to post a comment in that report referring him to this one. On Sat, May 28, 2005 at 04:13:26PM -0000, Tristan Miller wrote: Would you stop flooding the bug tracking system please? Discussion can also be done by private mail! Ciao, Tobias This bug still exists in KDE 3.5.2. The error message has to be improved. In German it says Ressource '/home/tmk/.kde/share/apps/kabc/std.vcf' gesperrt durch Programm ''. Nobody can understand, what went wrong when this message is displayed... This unhelpful message appeared to me after Kontact crashed. Two lock files were deep in the .kde tree. If this happens to an average user she will be lost, because there is no easy way to unlock the address book. SVN commit 538959 by tokoe: Show the name of the locking application and make the error message more verbose BUGS:100188 M +4 -4 lock.cpp --- branches/KDE/3.5/kdelibs/kabc/lock.cpp #538958:538959 @@ -55,9 +55,9 @@ { QFile file( filename ); if ( !file.open( IO_ReadOnly ) ) return false; - + QTextStream t( &file ); - t >> pid >> ws >> app; + t >> pid >> endl >> app; return true; } @@ -102,8 +102,8 @@ QString identifier( mIdentifier ); identifier.replace( '_', '/' ); - mError = i18n("The resource '%1' is locked by application '%2'.") - .arg( identifier ).arg( app ); + mError = i18n("The address book '%1' is locked by application '%2'.\nIf you believe this is incorrect, just remove the lock file from '%3'") + .arg( identifier ).arg( app ).arg( locateLocal( "data", "kabc/lock/*.lock" ) ); return false; } } KDE 4.1: The resource '/home/djdarkman/.kde4/share/apps/kabc/std.vcf' is locked by application ''. This bug still exists. The problem may be because, it(the resource) was previously locked, but didn't get unlocked, and the process that locked it doesn't exist, and kaddresbook doesn't realize this. This bug is still there in KDE 3.5.9. Nearly every time I want to add an address, I get this message (maybe due to shutting down my system without stopping kmail). In most cases I just go on (forget this contact) - but today I read '~/.kde/share/apps/kabc/std.vcf' blocked - and went "rm '~/.kde/share/apps/kabc/std.vcf' " -- Uh. I fear I deleted dozens of contacts! Very misleading! Please please please: Just state the name of the lock file. Check if there is an active process accessing the file or delete lock files at login-time. And even better: please add a button: Ignore / Delete LOCK-File. Regards Ralf The development of the old KAddressBook will be discontinued for KDE 4.4. Since the new application has the same name, but a completly new code base we close all bug reports against the old version and ask the submitters to resend there reports against the new product. |