Bug 348062 - KBuildsycoca assert "hash != 0"
Summary: KBuildsycoca assert "hash != 0"
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kservice
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-05-21 14:52 UTC by Aleix Pol
Modified: 2018-02-14 18:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleix Pol 2015-05-21 14:52:36 UTC
Application: kbuildsycoca5 (5.11.0)
 (Compiled from sources)
Qt Version: 5.5.0
Operating System: Linux 4.0.2-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
After waking up from suspension, it crashed. It's the first time I got this.

-- Backtrace:
Application: KBuildSycoca (kbuildsycoca5), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f0172c754b7 in raise () from /usr/lib/libc.so.6
#7  0x00007f0172c7688a in abort () from /usr/lib/libc.so.6
#8  0x00007f01738b714a in qt_message_fatal (context=..., message=...) at /home/kde-devel/frameworks/qt55/qtbase/src/corelib/global/qlogging.cpp:1575
#9  0x00007f01738b38b6 in QMessageLogger::fatal (this=0x7fffe6ccc4c0, msg=0x7f0173bcfd40 "ASSERT: \"%s\" in file %s, line %d") at /home/kde-devel/frameworks/qt55/qtbase/src/corelib/global/qlogging.cpp:777
#10 0x00007f01738acb2e in qt_assert (assertion=0x457337 "hash != 0", file=0x456cd8 "/home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp", line=842) at /home/kde-devel/frameworks/qt55/qtbase/src/corelib/global/qglobal.cpp:2960
#11 0x00000000004325ce in KBuildSycoca::calcResourceHash (resourceSubDir=..., filename=...) at /home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp:842
#12 0x000000000042c771 in KBuildSycoca::createEntry (this=0x27bb6e0, file=..., addToFactory=true) at /home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp:117
#13 0x000000000042d79f in KBuildSycoca::build (this=0x27bb6e0) at /home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp:273
#14 0x000000000042eae7 in KBuildSycoca::recreate (this=0x27bb6e0) at /home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp:418
#15 0x0000000000431e09 in main (argc=1, argv=0x7fffe6ccd6d8) at /home/kde-devel/frameworks/kservice/src/kbuildsycoca/kbuildsycoca.cpp:788

Reported using DrKonqi
Comment 1 David Faure 2015-09-19 22:14:40 UTC
There was a qWarning above that crash, it would have been quite useful to see what it said ;)

    qCWarning(SYCOCA) << "File not found or not readable:" << filename << "found:" << files;
Comment 2 David Faure 2017-07-25 11:17:26 UTC
I just hit this today when playing with "make uninstall".

The desktop file gets removed, kbuildsycoca.cpp fails to open it, hash is 0, boom. I'll look into it ;)
Comment 3 David Faure 2017-07-25 11:26:51 UTC
KBuildSycoca::calcResourceHash: File not found or not readable: "fsview_part.desktop" found: ()
Comment 4 Aleix Pol 2018-02-14 18:20:29 UTC
Haven't seen this since