kbuildsycoca4 aborts after upgrade KDE 4.0.1 -> 4.0.2

Bug #199145 reported by Bruno Henriques
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kde4libs (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: kde4libs-bin

release: Kubuntu Gutsy, used along with KDE 3.5.9
Version: 4:4.0.2-0ubuntu1~gutsy1~ppa2
Source: deb http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main

Description: After upgrading from 4.0.1 to 4.0.2 I can't run KDE4 packages (except Konsole, only have kde4-core installed). I allways get a SIGABRT from kbuildsycoca4.

Running kbuildsycoca4 from CLI has this output:

kbuildsycoca4 running...
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/lib/kde4/share/mime/text/plain.xml"
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/share/mime/application/nx-session.xml"
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/share/mime/application/x-dbm.xml"
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/share/mime/application/x-mswinurl.xml"
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/share/mime/image/x-niff.xml"
kbuildsycoca4(13752) KBuildMimeTypeFactory::createEntry: Missing <comment> field in "/usr/share/mime/text/x-ksysv-log.xml"
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/firefox.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/kchmviewer.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/kde/kontactdcop.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/lastfm.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/lynx.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/nxclient.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-base.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-base.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-calc.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-calc.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-draw.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-draw.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-impress.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-impress.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-math.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-template.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/ooo-writer.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/ooo-writer.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/restricted-manager.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/screensavers/plasma.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/speedcrunch.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/swkde.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/synaptic-kde.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/synaptic.desktop" is not compliant with XDG standard (missing trailing semicolon).
"KConfigIni: In file /usr/share/applications/wine-browsedrive.desktop, line 2: " "Invalid escape sequence "\ "."
"KConfigIni: In file /usr/share/applications/wine-browsedrive.desktop, line 3: " "Invalid escape sequence "\ "."
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry Categories in "/usr/share/applications/winefix.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/winefix.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/xmms-pl.desktop" is not compliant with XDG standard (missing trailing semicolon).
kbuildsycoca4(13752) KConfigGroup::readXdgListEntry: List entry MimeType in "/usr/share/applications/xmms.desktop" is not compliant with XDG standard (missing trailing semicolon).
ASSERT: "!st.isEmpty()" in file /build/buildd/kde4libs-4.0.2/kdecore/services/kservice.cpp, line 235
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kbuildsycoca4 path = <unknown> pid = 13752
sock_file=/home/bruno/.kde4/socket-laptop/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching directly.

Running Dolphin opens the graphical part after receiving the KCrash popups and can't even deal with the file:/// protocol, which is normal due to the Sycoca problem. I have no problems with 3.5.9 .

Right now I don't have ( and never had ) set KDEDIR / KDEDIRS, but have tried it as well with no results.

bruno@laptop:/usr/lib/kde4/bin$ env | grep KDE
KDE_MULTIHEAD=false
KDE_NO_IPV6=TRUE
KDE_FULL_SESSION=true
KDE_SESSION_UID=
KDE_FORK_SLAVES=0

Related branches

Revision history for this message
Fred Hermanns (fintan) wrote :

I can confirm this as of yesterday.
Same issues after update to kde4.0.2

Revision history for this message
Yözen Hernández (yhernand) wrote :

Confirmed here too, after the same update.
Same error output at the end when I run kbuildsycoca4 in the terminal.

Revision history for this message
Murz (murznn) wrote :

Confirmed too with Kubuntu Hardy amd64 update at 2008-03-04 and with Kubuntu Gutsy i386 when updated from http://ppa.launchpad.net/kubuntu-members-kde4/ubuntu gutsy main

Revision history for this message
reagle (joseph.reagle) wrote :

Me three.

Revision history for this message
Duane (duanehubbard+launchpad) wrote :

Me four.

Changed in kde4libs:
status: New → Confirmed
Revision history for this message
Bogdan Gribincea (bogdan-gribincea) wrote :

I think it's related to this bug http://bugs.kde.org/show_bug.cgi?id=158779
I reported this bug to the kubuntu developers and they advised me to only submit the bug upstream at KDE
To check if that's the cause you should look for any .desktop files in your /usr/share/applications/ directory that have an invalid MimeType. In my case it was "MimeType=;" in Swiftfox.desktop

Revision history for this message
Guillaume Martres (smarter) wrote :

This bug comes from a buggy .desktop files, like /usr/share/applications/Swiftfox.desktop which should not contains a MimeType field
The assert has been turned into a warning in trunk, see attached patch backported from r781958.

Workaround:
- use "sudo update-desktop-database -v 2>&1|grep invalid" to find which .desktop files make kbuildsycoca4 crashes
- remove it or correct it

Revision history for this message
Yözen Hernández (yhernand) wrote :

running "sudo update-desktop-database -v 2>&1|grep invalid" resulted in no output, so I am not sure if this is the problem (at least for me). I will just wait for updated debs since I am not knowledgeable enough to apply patches and build packages for myself.

If there's any thing someone like a typical end-user can do to help, I would be willing to do it.

Revision history for this message
Bruno Henriques (bruno-m-henriques) wrote :

No output from "sudo update-desktop-database -v 2>&1 | grep invalid", but "sudo update-desktop-database -v " has lots of these:

File '/usr/share/applications/wine-notepad.desktop' lacks MimeType key
File '/usr/share/applications/wine-uninstaller.desktop' lacks MimeType key
File '/usr/share/applications/wine-winecfg.desktop' lacks MimeType key
File '/usr/share/applications/yelp.desktop' lacks MimeType key

Does it count?

Revision history for this message
Murz (murznn) wrote :

In my system:
sudo update-desktop-database -v 2>&1 | grep invalid
File '/usr/share/applications/Swiftfox.desktop' contains invalid MIME type '' that is missing a slash

$ sudo update-desktop-database -v
Search path is now: [/usr/local/share/applications, /usr/share/applications]
File '/usr/share/applications/jockey-kde.desktop' lacks MimeType key
File '/usr/share/applications/hp-sendfax.desktop' lacks MimeType key
File '/usr/share/applications/nvidia-settings.desktop' lacks MimeType key
...And a lot of other files

I have removed /usr/share/applications/Swiftfox.desktop and after thats KDE4 apps goes to starts successfully!

Revision history for this message
Yözen Hernández (yhernand) wrote :

I believe I may have solved my problem as kbuildsycoca4 no longer crashes, but I have yet to try logging into kde4.

I did not get output using the command above, but I did try running kbuildsycoca4 again in the terminal and I took note of all files which it claimed were not compliant with the XDG standard and which were in the ~/.local/share/applications folder. I noticed that for all of those it said they were missing a trailing semicolon in the MimeType list.

I opened all of the files it mentioned that were only in that directory, and added a semicolon to the end of the MimeType line in each. I saved all of the files and ran kbuildsycoca4 again. I still got the error with files in the folder /usr/share/applications/ but those did not seem to cause a problem. I even realized I missed one file (googleearth.desktop) which it still complained about, but no crash. Instead, it just says that it parsed those files and then it ends without problems. I will try logging into KDE4 later and will try this on a different machine as well.

This is a very strange problem which may crop up again if you change the MimeTypes of some applications, of maybe if you update one of those problematic programs' packages and they ship with "non-compliant" .desktop files.

Revision history for this message
Bruno Henriques (bruno-m-henriques) wrote :

The culprit:
/home/bruno/.local/share/applications/Swiftfox.desktop

Had edited all the .desktop files it complained, still crashed, removed Swiftfox.desktop, it now complains about a lot more .desktop files but doesn't crash and I can now run KDE4 System Settings.

Seems the .desktop files were'nt guilty, at least in my case. Will try KDE 4.0.2 now.

Revision history for this message
Yözen Hernández (yhernand) wrote :

KDE4 works now for me as well on both of my machines. It is probable that the Swiftfox.desktop file is guilty because I had deleted mine while I was editing the rest for the missing semicolon. I deleted it because it was left over from a previous installation even though I had uninstalled it.

Could more people please post their success with just trying to delete that file, please? This bug may not be a problem in kde4libs at all. Or it may be, but only due to some weird formatting in that particular file.

Revision history for this message
Bruno Henriques (bruno-m-henriques) wrote :

I can run KDE 4.0.2 now without problems, after deleting Swiftfox.desktop .

Revision history for this message
Duane (duanehubbard+launchpad) wrote :

Using the "sudo update-desktop-database -v 2>&1 | grep invalid" I found that I had to remove /usr/share/applications/timevault.desktop; I had a bad install of Timevault about a year ago, and thought I had removed everything since then - I guess I was wrong.

Revision history for this message
Shaved Wookie (shavedwookie) wrote :

Deleting Swiftfox.desktop lets me log in now, although I still get kbuildsycoca crashes.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package kde4libs - 4:4.0.2-0ubuntu2

---------------
kde4libs (4:4.0.2-0ubuntu2) hardy; urgency=low

  * Add kubuntu_02_allow_malformed_desktop_files.diff from Guillaume
    Martres, backport of upstream. Closes LP: #199145

 -- Jonathan Riddell <email address hidden> Tue, 11 Mar 2008 17:26:30 +0000

Changed in kde4libs:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.