This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kbuildsycoca5 assertion fail

Tags: None
(comma "," separated)
genericity
Registered Member
Posts
5
Karma
0

kbuildsycoca5 assertion fail

Sat Jun 11, 2022 3:45 am
I was using kdesrc-build to build kservice, but the newly-built kbuildsycoca5 keeps crashing at the assertion "Q_ASSERT(offer.service()->offset() != 0)" at kbuildservicefactory.cpp:393.
Seems that the crash was caused by files installed by wps-office into mime/packages, which looks like this:
Code: Select all
$cat packages/application-msword.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/msword">
        <comment>Microsoft Word 文档</comment>
        <glob-deleteall/>
        <glob pattern="*.doc"/>
    </mime-type>
</mime-info>

While files from other software looks like this:
Code: Select all
$cat /usr/share/mime/packages/audacity.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-audacity-project">
    <sub-class-of type="text/xml"/>
    <comment>Audacity project</comment>
    <glob pattern="*.aup"/>
  </mime-type>
</mime-info>

Seems the "bad" file has two things that the "good" file hasn't:
    1. Chinese characters
    2. "glob-deleteall" tag

So is the first mime file actually invalid and need fixing, or is it a bug in kservice?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]