https://bugs.kde.org/show_bug.cgi?id=413418
--- Comment #1 from Andrius Štikonas <andr...@stikonas.eu> --- 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; -- You are receiving this mail because: You are watching all bug changes.