Bug 354415 - packagekit backend: package removal fails, crash
Summary: packagekit backend: package removal fails, crash
Status: RESOLVED FIXED
Alias: None
Product: muon
Classification: Unmaintained
Component: discover (show other bugs)
Version: 5.4.2
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-26 18:29 UTC by Rex Dieter
Modified: 2015-10-28 01:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rex Dieter 2015-10-26 18:29:33 UTC
Using muon-discover-5.4.2-1.fc23.x86_64 (fedora 23, x86_64)
When trying to remove a package, I get promtped by policykit (expected), then see an error box:
"PackageKit Error -- Muon Discover
Operataion not supported"  OK.

I click OK, application crashes, backtrace available,
https://retrace.fedoraproject.org/faf/reports/815918/


Reproducible: Always
Comment 1 Rex Dieter 2015-10-26 18:32:04 UTC
Copy and paste of downstream backtrace:

1	ref (inlined)	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	/usr/include/qt5/QtCore/qrefcount.h	54
2	PackageKitResource::installedPackageId() const	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	/usr/include/qt5/QtCore/qstring.h	878
3	availablePackageId (inlined)	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	../../../../libmuon/backends/PackageKitBackend/PackageKitResource.cpp	63
4	PackageKitResource::availableVersion() const	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	../../../../libmuon/backends/PackageKitBackend/PackageKitResource.cpp	106
5	qt_static_metacall	/lib64/libMuonCommon.so	/usr/src/debug/muon-5.4.1/x86_64-redhat-linux-gnu/libmuon/moc_AbstractResource.cpp	279
6	qt_metacall	/lib64/libMuonCommon.so	/usr/src/debug/muon-5.4.1/x86_64-redhat-linux-gnu/libmuon/moc_AbstractResource.cpp	329
7	qt_metacall (inlined)	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	/usr/src/debug/muon-5.4.1/x86_64-redhat-linux-gnu/libmuon/backends/PackageKitBackend/moc_PackageKitResource.cpp	158
8	AppPackageKitResource::qt_metacall(QMetaObject::Call, int, void**)	/usr/lib64/qt5/plugins/muon/muon-pkbackend.so	/usr/src/debug/muon-5.4.1/x86_64-redhat-linux-gnu/libmuon/backends/PackageKitBackend/moc_AppPackageKitResource.cpp	84
9	LoadProperty<ReadAccessor::Direct>	/lib64/libQt5Qml.so.5	/usr/src/debug/qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4qobjectwrapper.cpp	177
10	getProperty	/lib64/libQt5Qml.so.5	/usr/src/debug/qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4qobjectwrapper.cpp	390
11	QV4::QObjectWrapper::getQmlProperty(QQmlContextData*, QV4::String*, QV4::QObjectWrapper::RevisionMode, bool*, bool)	/lib64/libQt5Qml.so.5	/usr/src/debug/qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4qobjectwrapper.cpp	271
12	getProperty	/lib64/libQt5Qml.so.5	/usr/src/debug/qtdeclarative-opensource-src-5.5.0/src/qml/jsruntime/qv4runtime.cpp	683
13	anonymous function	/etc/faf/unknown filename	0x7f8e7e1f7256
Comment 2 Rex Dieter 2015-10-27 15:24:11 UTC
I suspect this may be related to a similar problem we (fedora) hit with apper on removal failures too, see also bug #315063
Comment 3 Aleix Pol 2015-10-28 01:21:00 UTC
Git commit 3c1cccdb7f9b0d53da3e2e22bfafe2cefd5fc577 by Aleix Pol.
Committed on 28/10/2015 at 01:16.
Pushed by apol into branch 'Plasma/5.4'.

Fix package removal on PackageKit

Allow PackageKit to remove dependencies if necessary. Shouldn't be a
problem.
Fixes removal in Fedora (see bugs attached) and Archlinux.
Related: bug 315063

M  +2    -1    libmuon/backends/PackageKitBackend/PKTransaction.cpp

http://commits.kde.org/muon/3c1cccdb7f9b0d53da3e2e22bfafe2cefd5fc577