Akunambol – Contacts visualization breakage and a possible fix
Just in case you happen to open KAddressBook, and see that the new entries display the vcard name where the name should appear, like it has happened here:
then relax. If I had a large and friendly font, I’d probably also write “Don’t panic”, on the back side of this post.
Your data is safe.
The filter works, too, and the bug is in Akonadi, but just in the tree item view, to be precise. This means that you can expect to see it again as soon as akonadi is fixed, and none of your contacts data is harmed.
To be even more specific, the bug where this is tracked is this one: https://bugs.kde.org/show_bug.cgi?id=252145
Please note that this only affects KAddressBook tree visualization, and in no way it compromises how the other application work (or visualize your contact data).
So, now that you’re more relaxed about this issue, here comes the howto part of the post:
Infact, in case you still badly need your contacts back, today I pushed a commit which (cleanly) workarounds this problem. To get it, you should do a number of things. Please note that while this procedure has worked for me like a charm, it could not work for you for many unknown reasons. Therefore, please proceed with extreme care!
- Perform a full sync, so that all of your contacts data is backed up on the server.
- Checkout the 0.2.x branch from git.
git clone git://gitorious.org/akunambol/akunambol.git
- Compile the branch as explained here (look at the section “Building Akunambol”)
- Stop Akonadi, remove (or just backup) the local contacts, and start Akonadi again. (warning:
./local/share/contactsis where all of your contacts are stored! you might want to mv it instead)akonadictl stop rm -r .local/share/contacts/ akonadictl start
- Now, remove all the cache created by Akunambol. This will ensure that Akunambol won’t think that you just deleted all of your contacts (thus deleting them from the server too) but instead will think that it has just started on an empty addressbook (thus filling it with the data you saved during Step 1).
rm -rf .kde4/share/apps/akunambol
- Start Akunambol, and start a sync. Once it finishes you should see all of your contacts in KAddressBook again.
To close this post, yes, I know that all this procedure is a bit cumbersome, but again, if you have had this problem, don’t panic: your data is safe. You don’t need to follow these steps. You will not be able to display it correctly for the moment, but it’s only in THAT particular visualization, and all the functionality works nonetheless, including contacts searching, and other views of your contact list. Then, in case KAddressBook is really crucial to you, and you can’t afford to wait for the bugfix, you can simply use the procedure I illustrated above and everything should be fine. But actually, most of the users (me included) won’t even notice the problem…
Anyways… That’s all for now! Happy syncing! :)

Comment by Kevin Krammer — September 23, 2010 @ 11:17 pm
It should probably also be pointed out that this does not happen for any released version, this is a problem in trunk which is under heavy development.
Comment by Konrad — September 24, 2010 @ 10:15 am
What is your window decoration theme/colors – looks nicely.
Comment by ruphy — September 24, 2010 @ 11:52 am
it’s not a screenshot from my machine, but my guess is: steel color scheme with colored windeco and window tabbing.
Comment by Malte — September 25, 2010 @ 11:25 pm
@Kevin: This happened in KDE 4.5.1 and Akonadi 1.4.0 (from the Kubuntu backports).
@Konrad: ruphys guess was right, plus I set all fonts to be one or two points smaller than the default and the borders to tiny.
Comment by Konrad — September 26, 2010 @ 3:16 pm
@ruphy, @Malte: Thanks, i will give it a try
Comment by suther — January 24, 2011 @ 1:37 pm
When does this fix come as Stable-Package to kubuntu?
On 10.10 its still Version 0.2.1 in the repositories.
Comment by ruphy — January 25, 2011 @ 7:30 am
@suther:
unfortunately I don’t control the PPA, so I have no idea of when it will be updated. The person that created it is very busy, so he can’t do that. I am now looking for someone with the right skills to help me with that job.