Summary: | Software updater crashed when I clicked the tray icon | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Dima Ryazanov <dima> |
Component: | Updates (interactive) | Assignee: | Aleix Pol <aleixpol> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, andrew.dema, andysem, arvindgrathore, automaticjack, avsa242, enrico.gueli+kdebug, ianhaney89, jens.goller, juergen, linux, marek.kruk, mattbiernat, meriutacornel, rvystavnoy, shane, sitter, stasnel, ualacepersa, upasaka.derringer, valmirduarte2012, yohan1987 |
Priority: | NOR | Keywords: | drkonqi |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi New crash information added by DrKonqi Output of muon-updater --nofork &> log; xz -9 log && echo "log.xz" Output of muon-updater --nofork &> log; xz -9 log && echo "log.xz" aptlog info as requested Output of aptlog commands verboselog.tar.xz New crash information added by DrKonqi |
Description
Dima Ryazanov
2013-11-13 03:42:27 UTC
This is now happening every time. I get this message in stdout: Couldn't find the package: "wine1.6-i386" I just added Wine's PPA for Ubuntu ("sudo add-apt-repository ppa:ubuntu-wine/ppa"), so I'm guessing that's related. *** Bug 327761 has been marked as a duplicate of this bug. *** Created attachment 83705 [details]
New crash information added by DrKonqi
muon-updater (2.1.1) on KDE Platform 4.11.2 using Qt 4.8.4
I had a problem updating a while back with muon downloading a config file. I left it running overnight and it never completed when i killed process removed locks and cleaned up This kept on happening
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x22e8110, resources=...) at /build/buildd/muon-2.1.1/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x20ce3a0) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x20ce3a0) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007f73c71d6485 in ResourcesModel::qt_static_metacall (_o=0x20e4130, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
Created attachment 83749 [details]
New crash information added by DrKonqi
muon-updater (2.1.1) on KDE Platform 4.11.2 using Qt 4.8.4
- What I was doing when the application crashed:
Just opened the Muon Updater. The crash seem to be introduced after a previous system update.
- Unusual behavior I noticed:
No special unusual behavior.
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x1cb8b00, resources=...) at /build/buildd/muon-2.1.1/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x1cb9620) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x1cb9620) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007faf6def9485 in ResourcesModel::qt_static_metacall (_o=0x1be0e70, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
*** Bug 328088 has been marked as a duplicate of this bug. *** I fixed my problem by rebuilding Xapian with the command: sudo update-apt-xapian-index -f No idea why Xapian broke *** Bug 328269 has been marked as a duplicate of this bug. *** Created attachment 83972 [details]
New crash information added by DrKonqi
muon-updater (2.1.1) on KDE Platform 4.11.2 using Qt 4.8.4
- What I was doing when the application crashed:Muon Updater crash every time I click the icon on the toolbar
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x114c9c0, resources=...) at /build/buildd/muon-2.1.1/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x114c350) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x114c350) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007fa274cff485 in ResourcesModel::qt_static_metacall (_o=0x1070660, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
*** Bug 328536 has been marked as a duplicate of this bug. *** *** Bug 328633 has been marked as a duplicate of this bug. *** *** Bug 328875 has been marked as a duplicate of this bug. *** *** Bug 328931 has been marked as a duplicate of this bug. *** *** Bug 328475 has been marked as a duplicate of this bug. *** Created attachment 84437 [details]
New crash information added by DrKonqi
muon-updater (2.1.1) on KDE Platform 4.11.3 using Qt 4.8.4
- What I was doing when the application crashed:
Clicking the update icon in the system tray results in Muon update manager crashing every time.
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x25525f0, resources=...) at /build/buildd/muon-2.1.1/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x2540590) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x2540590) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007f9ea3197485 in ResourcesModel::qt_static_metacall (_o=0x2652b40, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
*** Bug 329614 has been marked as a duplicate of this bug. *** *** Bug 329725 has been marked as a duplicate of this bug. *** Rebuilding the Xapian index as described in comment 6 did not resolve the issue for me. *** Bug 329755 has been marked as a duplicate of this bug. *** 2.1.2: http://quickgit.kde.org/?p=muon.git&a=blob&h=bc323388a1fe39aae325545ae0bd178a645fc9b4&hb=01dcf56267dfa0480840cf4fb0d0be900708d562&f=updater%2FUpdateModel%2FUpdateModel.cpp foreach(AbstractResource* res, resources) { UpdateItem *updateItem = new UpdateItem(res); if (res->isFromSecureOrigin()) { securityItem->appendChild(updateItem); >>>>> } else if(!res->isTechnical()) { <<<<<< why it would crash there is beyond me unfortunately. *** Bug 329760 has been marked as a duplicate of this bug. *** Does it always happen? If so, can I get the valgrind execution output maybe? Dear Aleix, thanks for your reply! Some days ago I removed a HP printer/scanner package from my computer. Since that day Muon didn't crash anymore. Regards Jens Am Donnerstag, den 09.01.2014, 14:09 +0000 schrieb Aleix Pol:A leix Pol <aleixpol@kde.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |aleixpol@kde.org > > --- Comment #21 from Aleix Pol <aleixpol@kde.org> --- > Does it always happen? If so, can I get the valgrind execution output maybe? > Dear Harald,
some days ago I removed a HP printer/scanner package from my computer.
Since then Muon didn't crash anymore. I'll keep an eye on it and give
more information when it should happen again.
Many thanks and regards
Jens
Am Donnerstag, den 09.01.2014, 12:07 +0000 schrieb Harald Sitter:
> https://bugs.kde.org/show_bug.cgi?id=327544
>
> Harald Sitter <sitter@kde.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> CC| |sitter@kde.org
> Version|2.1.1 |2.1.2
>
> --- Comment #19 from Harald Sitter <sitter@kde.org> ---
> 2.1.2:
> http://quickgit.kde.org/?p=muon.git&a=blob&h=bc323388a1fe39aae325545ae0bd178a645fc9b4&hb=01dcf56267dfa0480840cf4fb0d0be900708d562&f=updater%2FUpdateModel%2FUpdateModel.cpp
>
> foreach(AbstractResource* res, resources) {
> UpdateItem *updateItem = new UpdateItem(res);
> if (res->isFromSecureOrigin()) {
> securityItem->appendChild(updateItem);
> >>>>> } else if(!res->isTechnical()) { <<<<<<
>
> why it would crash there is beyond me unfortunately.
>
Created attachment 84534 [details]
New crash information added by DrKonqi
muon-updater (2.1.1) on KDE Platform 4.11.3 using Qt 4.8.4
- What I was doing when the application crashed:
tested " sudo update-apt-xapian-index -f" as a fix... Negative.
this did not fix my problem either.
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x1eda9f0, resources=...) at /build/buildd/muon-2.1.1/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x1eda470) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x1eda470) at /build/buildd/muon-2.1.1/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007f57bbbc8485 in ResourcesModel::qt_static_metacall (_o=0x1cfee40, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.1/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
Created attachment 84651 [details]
New crash information added by DrKonqi
muon-updater (2.1.2) on KDE Platform 4.12.0 using Qt 4.8.4
- What I was doing when the application crashed:
I clicked the updater icon in the tray, it showed the updater window and after a few seconds crashed.
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x1023990, resources=...) at /build/buildd/muon-2.1.2/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0xfd17f0) at /build/buildd/muon-2.1.2/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0xfd17f0) at /build/buildd/muon-2.1.2/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.2/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007f6b24daf355 in ResourcesModel::qt_static_metacall (_o=0x1035590, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.2/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
*** Bug 330421 has been marked as a duplicate of this bug. *** *** Bug 330484 has been marked as a duplicate of this bug. *** *** Bug 330516 has been marked as a duplicate of this bug. *** We are having a hard time getting to the bottom of this and really need some more information on this. Can anyone still reproduce this reliably? If so, please run `kdebugdialog`, active everything and after that run muon-updater from a terminal: muon-updater --noforok &> log; xz -9 log && echo "log.xz" Then wait for the crash, so the crash handler dialog comes up. DO NOT CLOSE THE CRASH DIALOG. Your terminal should return and print "log.xz", this file is now in the terminal's current directory. Please attach the file to this report. Additionally, please run the following in a terminal *while* the crash handler dialog is active: gcore `pidof muon-updater` && xz -9 core.`pidof muon-updater` && echo core.`pidof muon-updater`.xz This will take quite a while since it's compressing the entire memory of the application. Once it is done the last line will be the name of the compressed file, something like "core.31686.xz", that was created in the terminal's current directory. Please attach the file to this report (should be somewhere around 20MiB). With the additional information we should be able to track the cause for this down (one can hope anyway :)) Created attachment 84897 [details]
Output of muon-updater --nofork &> log; xz -9 log && echo "log.xz"
Output of
muon-updater --nofork &> log; xz -9 log && echo "log.xz"
(corrected a small typo in the command line)
As the core file is too big to be added as an attachment (it's 19MB), I've put it in my Dropbox: https://www.dropbox.com/s/n4j0xxdoo7z1igh/core.16677.xz It's the output of sudo gcore `pidof muon-updater` && xz -9 core.`pidof muon-updater` && echo core.`pidof muon-updater`.xz (note the leading "sudo" otherwise the dump didn't work) Thank you. Created attachment 84898 [details]
Output of muon-updater --nofork &> log; xz -9 log && echo "log.xz"
Output of
muon-updater --nofork &> log; xz -9 log && echo "log.xz"
Output of sudo gcore `pidof muon-updater` && xz -9 core.`pidof muon-updater` && echo core.`pidof muon-updater`.xz is available on http : / / smallhaven.com / core.3345.xz (Sorry, you'll have to remove the spaces) Thanks for keeping the interest up and thanks to enrico for posting the typo correction. Git commit 2992e8b979eede6048929e43d869d91ccfb43742 by Aleix Pol. Committed on 30/01/2014 at 16:18. Pushed by apol into branch '2.1'. Make sure we don't provide null packages Sometimes, apparently, some packages aren't listed when all Application instances are created. This would become a crash in some special situations, especially the cases where the architecture of the package is specified as a suffix to the package name (e.g. primus-libs-ia32). This patch fixes that crash by not reporting these, but then we still have the problem that these won't be listed as updates. M +4 -2 libmuon/backends/ApplicationBackend/ApplicationUpdates.cpp http://commits.kde.org/muon/2992e8b979eede6048929e43d869d91ccfb43742 Hi everyone. So we found out what causes the crash and introduced measures to prevent it in the short term. To get this resolved properly we'll have to find out why exactly some packages cannot be resolved, which is a bit tricky. Shane and Enrico, if you could upload the log files generated by this it would be really great: echo "____/etc/apt/sources.list" > aptlog cat /etc/apt/sources.list >> aptlog echo "____/etc/apt/sources.list.d/" >> aptlog cat /etc/apt/sources.list.d/* >> aptlog echo "___aptcache" >> aptlog apt-cache show primus-libs-ia32 >> aptlog xz -9 aptlog echo "aptlog.xz" Created attachment 84912 [details]
aptlog info as requested
Output of the following, as requested:
echo "____/etc/apt/sources.list" > aptlog
cat /etc/apt/sources.list >> aptlog
echo "____/etc/apt/sources.list.d/" >> aptlog
cat /etc/apt/sources.list.d/* >> aptlog
echo "___aptcache" >> aptlog
apt-cache show primus-libs-ia32 >> aptlog
xz -9 aptlog
echo "aptlog.xz"
Created attachment 84917 [details]
Output of aptlog commands
Here's my aptlog.xz after running these commands:
echo "____/etc/apt/sources.list" > aptlog
cat /etc/apt/sources.list >> aptlog
echo "____/etc/apt/sources.list.d/" >> aptlog
cat /etc/apt/sources.list.d/* >> aptlog
echo "___aptcache" >> aptlog
apt-cache show primus-libs-ia32 >> aptlog
xz -9 aptlog
echo "aptlog.xz"
Thanks for all your effort!
Enrico
Still unable to reproduce unfortunately, going to do one last try before we'll have to look into somewhat more extreme measure.... The following commands will basically collect every bit of low level information about your available and installed packages, (hopefully) allowing me to replicate your exact package situation. Or at least manually track why exactly your muons cannot find the package primus-libs-ia32. Should this also fail I'll have to ask you to do manual debugging of the muon-updater itself, which is always a gigantic pain, so I'd rather avoid that ^^ Please attach the tar.xz created by: rm -rf verboselog mkdir verboselog cd verboselog touch log echo "___apt-cache-show___" >> log apt-cache show primus-libs-ia32 >> log echo "___apt-cache-policy___" >> log apt-cache policy primus-libs-ia32 >> log echo "___dpkg-get-selections___" >> log dpkg --get-selections '*' >> log echo "___dpkg-query___" >> log dpkg-query -W --showformat='${binary:Package};${Version};${Status}\n' | grep -v deinstall >> log echo "___apt-cache-dump___" >> log apt-cache dump >> log cp -r /etc/apt etc-apt cp -r /var/log/dpkg* . cp -r /var/log/apt . cd .. rm verboselog.tar verboselog.tar.xz tar -cf verboselog.tar verboselog rm -rf verboselog xz -9 verboselog.tar echo "verboselog.tar.xz" Created attachment 84920 [details]
verboselog.tar.xz
Good luck and thanks again!
Here it is. I've put the commands into a Bash script, and run it with "sudo bash verboselog.sh" The output is at https://www.dropbox.com/s/wm8gybite4ipsb5/verboselog.tar.xz #!/bin/sh set -e rm -rf verboselog mkdir verboselog cd verboselog touch log echo "___apt-cache-show___" >> log apt-cache show primus-libs-ia32 >> log echo "___apt-cache-policy___" >> log apt-cache policy primus-libs-ia32 >> log echo "___dpkg-get-selections___" >> log dpkg --get-selections '*' >> log echo "___dpkg-query___" >> log dpkg-query -W --showformat='${binary:Package};${Version};${Status}\n' \ | grep -v deinstall >> log echo "___apt-cache-dump___" >> log apt-cache dump >> log cp -r /etc/apt etc-apt cp -r /var/log/dpkg* . cp -r /var/log/apt . cd .. set +e rm verboselog.tar verboselog.tar.xz set -e tar -cf verboselog.tar verboselog rm -rf verboselog xz -9 verboselog.tar echo "verboselog.tar.xz" Thanks guys, I found the issue. To work around the issue you can use the following command or wait for Muon 2.1.3, which will be available in about 7 days: sudo apt-get dist-upgrade Analysis ======= upgrades from nvidia-331.20 on xorgedgers will pull in bumblebee, bumblebee depends on primus depends on libprimus-libs-ia32:i386. However muon-updater cannot resolve libpriums-libs-ia32 because of the architecture difference. In particular QApt::Package::isMultiArchDuplicate() apparently yields the wrong value. This is supposedly because it uses > d->packageIter.Group().FindPkg() rather than > d->packageIter.Group().FindPreferredPkg() which would yield the correct result. The function comments that it attempts to check whether /this/ is the best possible version of a multiarch package, which appears to not be what FindPkg is doing, rather it is checking whether it is the host architectures' duplicate package (i.e. in order to have the function return false the package needs to be :amd64 when running amd64...). However primus-libs-ia32 has no actual native version, there only is the i386 version, so isMultiArchDuplicate leads to it being discarded even tough it is the preferred package, or rather it is the only possible package. Recommendation solution a) use FindPreferredPkg inside isMultiArchDuplicate b) kDebug() when a package is being discarded be it because of duplicatedness or other factors, to improve debugability of similar issues c) evaluate whether discarding packages based on duplicatedness is even an acceptable thing to do in the update/upgrade use case Also there's other weirdness with the updater exposed by this particular package lineup, needs separate investigation and doesn't seem related to the bug at hand though. Beware dist-upgrade. It broke my system due to an Nvidia/Bumblebee issue. The solution for me was sudo apt-get remove --purge bumblebee after dist-upgrade. More details here: http://askubuntu.com/questions/399153/after-apt-get-upgrade-system-always-boot-to-low-graphics-mode Now I'll wait and see what it does for Muon. Thanks for all your time on this Harald! BTW, I came out of it better off. Fixed a distortion issue I was having with my graphics driveres. :-D This appears to have fixed it. Muon updater ran successfully today. Thanks again, Harald! I did apt-get dist-upgrade. It didn't finish due to some broken nvidia-opencl packages. I solved the issue by removing all OpenCL-related packages and doing dist-upgrade again. And then, muon-updater got back to work. Thank you all :) Created attachment 85994 [details]
New crash information added by DrKonqi
muon-updater (2.1.2) on KDE Platform 4.11.3 using Qt 4.8.4
- What I was doing when the application crashed:
I noticed I hadn't been getting the notification popup for updates lately, and opened Update Manager from the K Menu.
The application crashed shortly after opening the window and never listed available updates.
I was also surfing with Firefox and downloading files using KTorrent at the time, and was on a VPN.
-- Backtrace (Reduced):
#6 UpdateModel::setResources (this=0x10205d0, resources=...) at /build/buildd/muon-2.1.2/updater/UpdateModel/UpdateModel.cpp:248
#7 0x00000000004111a9 in UpdaterWidget::populateUpdateModel (this=this@entry=0x11041a0) at /build/buildd/muon-2.1.2/updater/UpdaterWidget.cpp:163
#8 0x000000000041127e in UpdaterWidget::activityChanged (this=0x11041a0) at /build/buildd/muon-2.1.2/updater/UpdaterWidget.cpp:148
#9 0x000000000040d2b5 in UpdaterWidget::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /build/buildd/muon-2.1.2/obj-x86_64-linux-gnu/updater/moc_UpdaterWidget.cpp:72
[...]
#11 0x00007f48b8b97355 in ResourcesModel::qt_static_metacall (_o=0x106ab50, _id=0, _a=0x0, _c=<optimized out>) at /build/buildd/muon-2.1.2/obj-x86_64-linux-gnu/libmuon/moc_ResourcesModel.cpp:90
Can somebody confirm this is still a problem? Can't speak for everyone, but it's certainly resolved for me. Thanks! Please re-open if anybody can reproduce. |