Summary: | KDE Partition Manager crashes when opening partition information on USB drive | ||
---|---|---|---|
Product: | [Applications] partitionmanager | Reporter: | dsincubus |
Component: | general | Assignee: | Andrius Štikonas <andrius> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aryan100jangid, Balykin_nikita, bS.xx7_37, campanstefanioan, cdalxndr, chavdarpet, cmetek, daveharas, Inguaruz, jackmietz, jaredisawesome20, kdebugs.xx, Lance, m.hassani.de, mattia.verga, mauritiusforextrader, mcmailface, pablitok, proteus5, serrega.f, stapiax, subscriber, tux34000, vitutivitu, yerimyah1 |
Priority: | NOR | Keywords: | drkonqi |
Version: | 4.0.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.2.0 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi attachment-24613-0.html attachment-21024-0.html |
Description
dsincubus
2019-10-25 05:46:26 UTC
I've seen this backtrace before but I was never able to reliably reproduce it myself. Would you be able to try the following patch (to the kpmcore repository)? It should print partition()->capacity() to the terminal, just to double check that we are not dividing by 0. Note this patch does not fix crash, this is just for diagnostics. diff --git a/src/gui/partwidget.cpp b/src/gui/partwidget.cpp index 57ebf23..e3ff2af 100644 --- a/src/gui/partwidget.cpp +++ b/src/gui/partwidget.cpp @@ -21,6 +21,8 @@ #include "fs/filesystem.h" #include "util/capacity.h" +#include <QDebug> + #include <QApplication> #include <QFontDatabase> #include <QPainter> @@ -93,6 +95,7 @@ void PartWidget::paintEvent(QPaintEvent*) if (partition() == nullptr) return; + qDebug() << partition()->capacity(); const int usedPercentage = static_cast<int>(partition()->used() * 100 / partition()->capacity()); const int w = width() * usedPercentage / 100; The patch does not apply cleanly on kpmcore master. (In reply to Shubham from comment #2) > The patch does not apply cleanly on kpmcore master. it still applies... $ patch -p1 < 1.patch patching file src/gui/partwidget.cpp Hunk #2 succeeded at 95 with fuzz 1 Created attachment 123886 [details]
New crash information added by DrKonqi
partitionmanager (4.0.0) using Qt 5.13.1
Clicking on usb drive crashes kde partition manager
-- Backtrace (Reduced):
#6 PartWidget::paintEvent (this=0x55b255c6c410) at ./src/gui/partwidget.cpp:96
#7 0x00007f87150bfbf8 in QWidget::event (this=0x55b255c6c410, event=0x7ffda7ebf970) at kernel/qwidget.cpp:9339
#8 0x00007f871507eeac in QApplicationPrivate::notify_helper (this=this@entry=0x55b2556d8010, receiver=receiver@entry=0x55b255c6c410, e=e@entry=0x7ffda7ebf970) at kernel/qapplication.cpp:3703
#9 0x00007f87150864b0 in QApplication::notify (this=0x7ffda7ec2310, receiver=0x55b255c6c410, e=0x7ffda7ebf970) at kernel/qapplication.cpp:3449
#10 0x00007f8714279d48 in QCoreApplication::notifyInternal2 (receiver=0x55b255c6c410, event=0x7ffda7ebf970) at kernel/qcoreapplication.cpp:1095
Created attachment 124491 [details]
New crash information added by DrKonqi
partitionmanager (4.0.0) using Qt 5.13.2
- What I was doing when the application crashed:
inserted USB drive
ran partition manager
Clicked on that drive in partion manager
-- Backtrace (Reduced):
#6 PartWidget::paintEvent (this=0x55623608e6c0) at ./src/gui/partwidget.cpp:96
#7 0x00007f9def59bcb8 in QWidget::event (this=0x55623608e6c0, event=0x7ffd21d0f200) at kernel/qwidget.cpp:9339
#8 0x00007f9def55aeac in QApplicationPrivate::notify_helper (this=this@entry=0x556235925010, receiver=receiver@entry=0x55623608e6c0, e=e@entry=0x7ffd21d0f200) at kernel/qapplication.cpp:3703
#9 0x00007f9def5624b0 in QApplication::notify (this=0x7ffd21d12530, receiver=0x55623608e6c0, e=0x7ffd21d0f200) at kernel/qapplication.cpp:3449
#10 0x00007f9dee755f08 in QCoreApplication::notifyInternal2 (receiver=0x55623608e6c0, event=0x7ffd21d0f200) at kernel/qcoreapplication.cpp:1095
*** Bug 414497 has been marked as a duplicate of this bug. *** *** Bug 416230 has been marked as a duplicate of this bug. *** Andrius Štikonas 2020-05-14 00:20:23 UTC It's very likely to be fixed in kpmcore git master. If it still doesn't work in future releases (I guess 4.2.0) please reopen. *** Bug 422961 has been marked as a duplicate of this bug. *** *** Bug 423648 has been marked as a duplicate of this bug. *** *** Bug 424137 has been marked as a duplicate of this bug. *** *** Bug 424200 has been marked as a duplicate of this bug. *** *** Bug 397769 has been marked as a duplicate of this bug. *** *** Bug 384679 has been marked as a duplicate of this bug. *** *** Bug 398306 has been marked as a duplicate of this bug. *** *** Bug 409312 has been marked as a duplicate of this bug. *** *** Bug 424695 has been marked as a duplicate of this bug. *** *** Bug 425552 has been marked as a duplicate of this bug. *** Created attachment 131074 [details] attachment-24613-0.html How do I get taken off this bug watch? Since my initial issue I have actually switch distros. I'm now on Manjaro, not Debian, and I have not had this issue at all with KDE since I switched distros. So is there a way I can get removed from this mailing list? On Fri, Aug 21, 2020, 4:30 AM Andrius Štikonas <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=413418 > > Andrius Štikonas <andrius@stikonas.eu> changed: > > What |Removed |Added > > ---------------------------------------------------------------------------- > CC| | > campanstefanioan@gmail.com > > --- Comment #18 from Andrius Štikonas <andrius@stikonas.eu> --- > *** Bug 425552 has been marked as a duplicate of this bug. *** > > -- > You are receiving this mail because: > You reported the bug. There is a "never email me about this bug" checkbox right at the top of this page. Created attachment 131085 [details] attachment-21024-0.html Thank you! Very helpful and much appreciated. 😊 On Fri, Aug 21, 2020, 1:49 PM Christoph Feck <bugzilla_noreply@kde.org> wrote: > https://bugs.kde.org/show_bug.cgi?id=413418 > > --- Comment #20 from Christoph Feck <cfeck@kde.org> --- > There is a "never email me about this bug" checkbox right at the top of > this > page. > > -- > You are receiving this mail because: > You reported the bug. *** Bug 425701 has been marked as a duplicate of this bug. *** *** Bug 414624 has been marked as a duplicate of this bug. *** *** Bug 427613 has been marked as a duplicate of this bug. *** *** Bug 427671 has been marked as a duplicate of this bug. *** *** Bug 433891 has been marked as a duplicate of this bug. *** *** Bug 435915 has been marked as a duplicate of this bug. *** *** Bug 438516 has been marked as a duplicate of this bug. *** *** Bug 446233 has been marked as a duplicate of this bug. *** *** Bug 447091 has been marked as a duplicate of this bug. *** *** Bug 449804 has been marked as a duplicate of this bug. *** |