Summary: | Crash in KActivities::Experimental::Stats::ResultSet::ResultSet | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-activities-stats | Reporter: | johnwamba |
Component: | general | Assignee: | Ivan Čukić <ivan.cukic> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | bhush94, chanbalamb, eli, fademind, Hamburger1984, haukebass, helder_bertoldo, ivan.cukic, notmart, plasma-bugs, qneverless, rdieter, sombragris, V.Yacovlev, valeriodean |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
johnwamba
2015-05-01 03:15:44 UTC
seems issues in the new private library for activities statistics *** Bug 346966 has been marked as a duplicate of this bug. *** Also my display power management system doesn't work no more. The screen goes blank during video whacking and the power management page in system settings refuses to work complaining about to be unable to load the module configuration. It remember me the plasma 5.1 days. :-) *** Bug 347006 has been marked as a duplicate of this bug. *** Last bug report have debug symbols Thread 1 (Thread 0x7fd64bf1d900 (LWP 3573)): [KCrash Handler] #6 Common::Database::execQuery (this=0x0, query=..., ignoreErrors=ignoreErrors@entry=false) at ../../../../../../lib/kactivities-stats/src/common/database/Database.cpp:207 #7 0x00007fd557b4b04f in initQuery (this=0x5a534c0) at ../../../../../../lib/kactivities-stats/src/lib/stats/resultset.cpp:163 #8 KActivities::Experimental::Stats::ResultSet::ResultSet (this=<optimized out>, query=...) at ../../../../../../lib/kactivities-stats/src/lib/stats/resultset.cpp:385 #9 0x00007fd557b574e7 in Private (parent=0x5a535d0, query=..., this=0x5a536a0) at ../../../../../../lib/kactivities-stats/src/lib/stats/resultmodel.cpp:59 #10 KActivities::Experimental::Stats::ResultModel::ResultModel (this=0x5a535d0, query=..., parent=<optimized out>) at ../../../../../../lib/kactivities-stats/src/lib/stats/resultmodel.cpp:303 #11 0x00007fd5135e1adf in RecentAppsModel::refresh (this=0x5a520d0) at ../../../applets/kicker/plugin/recentappsmodel.cpp:166 #12 0x00007fd5135dbd5d in RootModel::extendEntryList (this=this@entry=0x5a515b0) at ../../../applets/kicker/plugin/rootmodel.cpp:183 #13 0x00007fd5135dc3d0 in RootModel::RootModel (this=0x5a515b0, parent=<optimized out>) at ../../../applets/kicker/plugin/rootmodel.cpp:53 #14 0x00007fd5135d6880 in QQmlElement (this=0x5a515b0) at /usr/include/qt5/QtQml/qqmlprivate.h:93 #15 QQmlPrivate::createInto<RootModel> (memory=0x5a515b0) at /usr/include/qt5/QtQml/qqmlprivate.h:102 #16 0x00007fd65d1e560b in QQmlType::create (this=this@entry=0x7fd514027bc0) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlmetatype.cpp:713 #17 0x00007fd65d24c90a in QQmlObjectCreator::createInstance (this=this@entry=0x5a40720, index=5, parent=0x5a50d90, isContextObject=isContextObject@entry=false) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:1061 #18 0x00007fd65d24e24d in QQmlObjectCreator::setPropertyBinding (this=this@entry=0x5a40720, property=property@entry=0x7fd5140208c8, binding=binding@entry=0x7fd514297c48) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:774 #19 0x00007fd65d24ef81 in QQmlObjectCreator::setupBindings (this=this@entry=0x5a40720, bindingsToSkip=...) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:733 #20 0x00007fd65d24b48d in QQmlObjectCreator::populateInstance (this=this@entry=0x5a40720, index=0, instance=0x0, instance@entry=0x5a50d90, bindingTarget=0x0, bindingTarget@entry=0x5a50d90, valueTypeProperty=valueTypeProperty@entry=0x0, bindingsToSkip=...) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:1348 #21 0x00007fd65d24c13d in QQmlObjectCreator::createInstance (this=this@entry=0x5a40720, index=index@entry=0, parent=parent@entry=0x0, isContextObject=isContextObject@entry=true) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:1184 #22 0x00007fd65d24d09c in QQmlObjectCreator::create (this=0x5a40720, subComponentIndex=-1, parent=parent@entry=0x0, interrupt=interrupt@entry=0x7ffe3958b490) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlobjectcreator.cpp:222 #23 0x00007fd65d1d2237 in QQmlIncubatorPrivate::incubate (this=0x4601230, i=...) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlincubator.cpp:302 #24 0x00007fd65d1d2b41 in QQmlIncubationController::incubateFor (this=this@entry=0x5a34de0, msecs=<optimized out>) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlincubator.cpp:395 #25 0x00007fd65f43d85c in incubate (this=0x5a34dd0) at ../../../src/kdeclarative/private/qmlobject_p.h:63 #26 KDeclarative::QmlObjectIncubationController::incubatingObjectCountChanged (this=0x5a34dd0, count=1) at ../../../src/kdeclarative/private/qmlobject_p.h:79 #27 0x00007fd65d1d2922 in QQmlEnginePrivate::incubate (this=0x45e4900, i=..., forContext=<optimized out>) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlincubator.cpp:97 #28 0x00007fd65d1ce0dc in QQmlComponent::create (this=<optimized out>, incubator=..., context=<optimized out>, context@entry=0x0, forContext=forContext@entry=0x0) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/qml/qml/qqmlcomponent.cpp:1068 #29 0x00007fd65f42de5c in KDeclarative::QmlObject::completeInitialization (this=0x5817fe0, initialProperties=...) at ../../../src/kdeclarative/qmlobject.cpp:270 #30 0x00007fd65fbe24da in PlasmaQuick::AppletQuickItem::init (this=this@entry=0x4590910) at ../../../src/plasmaquick/appletquickitem.cpp:494 #31 0x00007fd630aaf6d4 in AppletInterface::init (this=0x4590910) at ../../../../src/scriptengines/qml/plasmoid/appletinterface.cpp:175 #32 0x00007fd65fbe35e8 in PlasmaQuick::AppletQuickItem::itemChange (this=0x4590910, change=QQuickItem::ItemSceneChange, value=...) at ../../../src/plasmaquick/appletquickitem.cpp:697 #33 0x00007fd660a5280d in QQuickItemPrivate::refWindow (this=this@entry=0x5407490, c=c@entry=0x2360970) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/quick/items/qquickitem.cpp:2800 #34 0x00007fd660a53483 in QQuickItem::setParentItem (this=this@entry=0x4590910, parentItem=0x2383080) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/quick/items/qquickitem.cpp:2542 #35 0x00007fd660a54fd9 in QQuickItem::qt_metacall (this=this@entry=0x4590910, _c=_c@entry=QMetaObject::WriteProperty, _id=0, _a=_a@entry=0x7ffe3958bc90) at .moc/moc_qquickitem.cpp:904 #36 0x00007fd65fbe3667 in PlasmaQuick::AppletQuickItem::qt_metacall (this=this@entry=0x4590910, _c=_c@entry=QMetaObject::WriteProperty, _id=<optimized out>, _a=_a@entry=0x7ffe3958bc90) at ./moc_appletquickitem.cpp:304 #37 0x00007fd630ab0609 in AppletInterface::qt_metacall (this=0x4590910, _c=QMetaObject::WriteProperty, _id=<optimized out>, _a=0x7ffe3958bc90) at ./moc_appletinterface.cpp:515 #38 0x00007fd65aee5d52 in QMetaProperty::write (this=this@entry=0x7ffe3958bd40, object=object@entry=0x4590910, value=...) at kernel/qmetaobject.cpp:2935 #39 0x00007fd65af1321f in QObject::setProperty (this=0x4590910, name=name@entry=0x7fd630ac7550 "parent", value=...) at kernel/qobject.cpp:3863 #40 0x00007fd630ab5a89 in ContainmentInterface::appletAddedForward (this=0x2383080, applet=<optimized out>) at ../../../../src/scriptengines/qml/plasmoid/containmentinterface.cpp:702 #41 0x00007fd65af094ba in call (a=0x7ffe3958bf60, r=0x2383080, this=0x246c150) at ../../src/corelib/kernel/qobject_impl.h:124 #42 QMetaObject::activate (sender=sender@entry=0x2366510, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe3958bf60) at kernel/qobject.cpp:3702 #43 0x00007fd65af0a1b7 in QMetaObject::activate (sender=sender@entry=0x2366510, m=m@entry=0x7fd6600d7440 <Plasma::Containment::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffe3958bf60) at kernel/qobject.cpp:3582 #44 0x00007fd65fe4ef6f in Plasma::Containment::appletAdded (this=this@entry=0x2366510, _t1=0x58a76e0) at ./moc_containment.cpp:377 #45 0x00007fd65fe5109d in Plasma::Containment::addApplet (this=0x2366510, applet=applet@entry=0x58a76e0) at ../../../src/plasma/containment.cpp:459 #46 0x00007fd65fe6499c in Plasma::ContainmentPrivate::createApplet (this=0x2380d30, name=..., args=..., id=id@entry=0) at ../../../src/plasma/private/containment_p.cpp:216 #47 0x00007fd65fe4f67b in Plasma::Containment::createApplet (this=<optimized out>, name=..., args=...) at ../../../src/plasma/containment.cpp:366 #48 0x00007fd630ab3908 in ContainmentInterface::createApplet (this=0x2383080, plugin=..., args=..., pos=...) at ../../../../src/scriptengines/qml/plasmoid/containmentinterface.cpp:237 #49 0x00007fd630abcdf9 in ContainmentInterface::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=0x45b26b0) at ./moc_containmentinterface.cpp:217 #50 0x00007fd65af0a86a in QObject::event (this=this@entry=0x2383080, e=e@entry=0x458f1e0) at kernel/qobject.cpp:1245 #51 0x00007fd660a5003b in QQuickItem::event (this=this@entry=0x2383080, ev=ev@entry=0x458f1e0) at /usr/src/debug/qtdeclarative-opensource-src-5.4.1/src/quick/items/qquickitem.cpp:7305 #52 0x00007fd630aafa66 in AppletInterface::event (this=0x2383080, event=0x458f1e0) at ../../../../src/scriptengines/qml/plasmoid/appletinterface.cpp:694 #53 0x00007fd65b7c595c in QApplicationPrivate::notify_helper (this=this@entry=0x1ee26a0, receiver=receiver@entry=0x2383080, e=e@entry=0x458f1e0) at kernel/qapplication.cpp:3720 #54 0x00007fd65b7cada0 in QApplication::notify (this=0x7ffe3958c9a0, receiver=0x2383080, e=0x458f1e0) at kernel/qapplication.cpp:3503 #55 0x00007fd65aed96eb in QCoreApplication::notifyInternal (this=0x7ffe3958c9a0, receiver=0x2383080, event=event@entry=0x458f1e0) at kernel/qcoreapplication.cpp:935 #56 0x00007fd65aedb72b in sendEvent (event=0x458f1e0, receiver=<optimized out>) at kernel/qcoreapplication.h:228 #57 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0x1ed7f20) at kernel/qcoreapplication.cpp:1552 #58 0x00007fd65aedbd28 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1410 #59 0x00007fd65af313d3 in postEventSourceDispatch (s=0x1f333f0) at kernel/qeventdispatcher_glib.cpp:271 #60 0x00007fd655d5d7fb in g_main_dispatch (context=0x7fd63c0016f0) at gmain.c:3111 #61 g_main_context_dispatch (context=context@entry=0x7fd63c0016f0) at gmain.c:3710 #62 0x00007fd655d5db98 in g_main_context_iterate (context=context@entry=0x7fd63c0016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3781 #63 0x00007fd655d5dc4c in g_main_context_iteration (context=0x7fd63c0016f0, may_block=1) at gmain.c:3842 #64 0x00007fd65af317c7 in QEventDispatcherGlib::processEvents (this=0x1f3a360, flags=...) at kernel/qeventdispatcher_glib.cpp:418 #65 0x00007fd65aed6f82 in QEventLoop::exec (this=this@entry=0x7ffe3958c820, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204 #66 0x00007fd65aedea2c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188 #67 0x00007fd65b201f9c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1507 #68 0x00007fd65b7c1645 in QApplication::exec () at kernel/qapplication.cpp:2956 #69 0x000000000042ee83 in main (argc=4, argv=<optimized out>) at ../../shell/main.cpp:154 Reported using DrKonqi *** Bug 346852 has been marked as a duplicate of this bug. *** Can confirm this bug. The crashing plasmashell is contained in the package plasma-workspace-5.3.0-3.fc21.x86_64. ..when launching plasmashell from a terminal window I get the following output right before the crash: ----------------------------------- andreas@localhost $ plasmashell -n [...] Database is not open: "kactivities_db_resources_140044490807552_readonly" "/home/andreas/.local/share/kactivitymanagerd/resources/database" QSqlError("-1", "Error opening database", "out of memory") Application::crashHandler() called with signal 11; recent crashes: 1 /usr/bin/plasmashell -n --crashes 1 & Too many crashes in short order or respawning disabled, not restarting automatically. KCrash: Application 'plasmashell' crashing... KCrash: Attempting to start /usr/libexec/drkonqi from kdeinit sock_file=/run/user/1000/kdeinit5__0 [...] ----------------------------------- Seen this so much, it's clearly a valid bug *** Bug 347082 has been marked as a duplicate of this bug. *** What happens if you: 1) restart 2) log in into terminal 3) mv ~/.local/share/kactivitymanagerd/resources ~/.local/share/kactivitymanagerd/resources.backup 4) log in to plasma Hi Ivan, The directory kactivitymanagerd didn't exist in ~/.local/share/. I created it, rebooted and logged in to plasma. Still the same error... Thread 1 (Thread 0x7f7d2f682900 (LWP 1845)): [KCrash Handler] #5 0x00007f7c346d226e in Common::Database::execQuery(QString const&, bool) const () at /lib64/libKF5ActivitiesExperimentalStats.so.1 #6 0x00007f7c346be04f in KActivities::Experimental::Stats::ResultSet::ResultSet(KActivities::Experimental::Stats::Query) () at /lib64/libKF5ActivitiesExperimentalStats.so.1 #7 0x00007f7c346ca4e7 in KActivities::Experimental::Stats::ResultModel::ResultModel(KActivities::Experimental::Stats::Query, QObject*) () at /lib64/libKF5ActivitiesExperimentalStats.so.1 [...] Restarting plasmashell from a terminal afterwards also still prints the "Database not open" error I posted above.. Then you need to find what directory it uses on your system. The default is .local, but a distribution can change it. 'echo $XDG_DATA_HOME' might help there. Also, it would be useful to get: 1) the listing of all files you have in $XDG_DATA_HOME/kactivitymanagerd/resources/ (before you move it) 2) The whole output of plasmashell and kactivitymanagerd (for the later, you can do a kactivitymanagerd stop; kactivitymanagerd start-daemon;) Well.. maybe it's a (also) a distribution issue. $XDG_DATA_HOME isn't. Setting it to $HOME/.local/share (via export XDG_DATA_HOME=$HOME/.local/share) didn't change anything. Where should XDG_DATA_HOME be set? Then you'll just have to find kactivitymanagerd directory somewhere in your hidden directories under $HOME. (find ~ -name kactivitymanagerd) There's just the empty folder a ~/.local/share/kactivitymangerd I just created. So perhaps someone else will have to continue from here. Which packet or application creates the initial kactivitymanagerd directory and its content? Can I trigger this application to recreate the directory structure? It is created by kactivitymanagerd on start. Can you do kactivitymanagerd stop kactivitymanagerd start and post the output? 10:26:55 andreas ~ $ which kactivitymanagerd /bin/kactivitymanagerd 10:27:02 andreas ~ $ kactivitymanagerd stop; kactivitymanagerd start kactivitymanagerd: Unexpected argument 'stop'. kactivitymanagerd: Use --help to get a list of available command line options. kactivitymanagerd: Unexpected argument 'start'. kactivitymanagerd: Use --help to get a list of available command line options. 10:27:04 andreas ~ $ kactivitymanagerd --help Usage: kactivitymanagerd [Qt-options] [KDE-options] KDE Activity Management Service Generic options: --help Show help about options --help-qt Show Qt specific options --help-kde Show KDE specific options --help-all Show all options --author Show author information -v, --version Show version information --license Show license information -- End of options 10:27:14 andreas@ ~ $ kactivitymanagerd -v Qt: 4.8.6 KDE Development Platform: 4.14.7 KDE Activity Manager: 3.0 You need to update your system. It is using kactivitymanagerd from KDE4 with Plasma 5. I installed all the latest packages. So maybe it's not packaged for fedora 21 yet? You should have kf5-kactivities installed instead of kactivities. If fedora allows installing plasma 5 without kf5-kactivities, you should file a bug report and point them to https://community.kde.org/Frameworks/Coinstallability Okay - for me it's probably a fedora bug then. There's just a kactivities package and kf5-kactivities-libs, kf5-kactivities-devel and kf5-kactivities-debug. Plasma-workspace depends on kactivities.x86_64 4.13.3-6.fc21 and kf5-kactivities-libs.x86_64 5.9.0-1.fc21 (where kactivities should be kf5-kactivities, which doesn't exist right now). for fedora 21 the maintainers seem to have excluded kf5-kactivities from the build to not obsolete kactivities for users remaining on kde4 for now - see https://bugzilla.redhat.com/show_bug.cgi?id=1132715 maybe an upgrade to fedora 22 will resolve that issue for me. Thanks for your patience, @Ivan No problem. kf5-kactivities is designed to support old plasma as well. So, 'kde4' will work with kf5-kactivities without regressions. I have no idea why Fedora chose to stick with old kactivities. Most other distros switched to kf5 version even if they stuck with old Plasma. Oh well. Found a kactivities-4.13.3 package lying somewhere in my system. I removed it, reinstalled kactivities-framework, rebooted (just to be sure) and behold, I was using Plasma in all its glory. In my case it was definitely a case of kactivities4 wreaking havoc with the new shell. Thanks to Ivan who with his pointers helped me troubleshoot the issue. The next release of kactivities will report this issue to the cerr properly. Easier to get a nice error message than to debug this again. :)
> Thanks to Ivan who with his pointers helped me troubleshoot the issue.
No problem
There is a problem though. In many cases Dolphin may require kactivities4 as a dependency. So perhaps a small update in the techbase documentation advising of this fact and of ways to compile dolphin without requiring kactivities4 may be useful. Thanks again for the great help. As the wiki page clearly states (at least, clear to me :) ), the library from 4.x can be installed (and that is what Dolphin requires). Dolphin does not need the service from 4.x - it will communicate with the 5.x service without any problems. It is even advised to use the new service even with the old library because it received many improvements since. *** Bug 347305 has been marked as a duplicate of this bug. *** *** Bug 347839 has been marked as a duplicate of this bug. *** *** Bug 348585 has been marked as a duplicate of this bug. *** *** Bug 349980 has been marked as a duplicate of this bug. *** *** Bug 350921 has been marked as a duplicate of this bug. *** |