Bug 421017 - KDE Partition Manager crashes each time I try to open it
Summary: KDE Partition Manager crashes each time I try to open it
Status: RESOLVED FIXED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 4.1.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords: drkonqi
: 422331 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-05-04 18:51 UTC by Bartek Wreczycki
Modified: 2020-06-06 12:58 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (14.00 KB, patch)
2020-05-13 17:39 UTC, Titus Rwantare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartek Wreczycki 2020-05-04 18:51:07 UTC
Application: partitionmanager (4.1.0)

Qt Version: 5.12.8
Frameworks Version: 5.68.0
Operating System: Linux 5.4.0-28-generic x86_64
Windowing system: X11
Distribution: Ubuntu 20.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I opened KDE Partition Manager and waited for it to scan for storage media and then it crashed, it seemed to crash when scanning for partitions on a portable hard drive. GParted works though, so it must be a problem with KDE Partition Manager.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Partition Manager (partitionmanager), signal: Floating point exception
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3a5819b800 (LWP 13234))]

Thread 11 (Thread 0x7f3a41bcb700 (LWP 13244)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3a41bcacd0, fd=18) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=18, buf=0x7f3a41bcacd0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3a5a25089f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3a5a207cfe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3a5a208152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3a5a208533 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f3a424ebe9a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#7  0x00007f3a5a231931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7f3a423cc700 (LWP 13243)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3a423cbce0, fd=16) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=16, buf=0x7f3a423cbce0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3a5a25089f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3a5a207cfe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3a5a208152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3a5a2082e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f3a5a208331 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f3a5a231931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f3a42dae700 (LWP 13242)):
#0  0x00007f3a5a20772f in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f3a5a2080db in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3a5a2082e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3a5bad3583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3a5ba7a4db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3a5d29d05f in  () at /lib/x86_64-linux-gnu/libkpmcore.so.9
#6  0x00007f3a5b8b39d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f3a435af700 (LWP 13241)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55be1b3587c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55be1b358778, cond=0x55be1b3587a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55be1b3587a0, mutex=0x55be1b358778) at pthread_cond_wait.c:638
#3  0x00007f3a4e10b3db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f3a4e10afeb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f3a43db0700 (LWP 13240)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55be1b3587c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55be1b358778, cond=0x55be1b3587a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55be1b3587a0, mutex=0x55be1b358778) at pthread_cond_wait.c:638
#3  0x00007f3a4e10b3db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f3a4e10afeb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f3a4ca26700 (LWP 13239)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55be1b3587c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55be1b358778, cond=0x55be1b3587a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55be1b3587a0, mutex=0x55be1b358778) at pthread_cond_wait.c:638
#3  0x00007f3a4e10b3db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f3a4e10afeb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f3a4d227700 (LWP 13238)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55be1b3587c8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55be1b358778, cond=0x55be1b3587a0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55be1b3587a0, mutex=0x55be1b358778) at pthread_cond_wait.c:638
#3  0x00007f3a4e10b3db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f3a4e10afeb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f3a4db7d700 (LWP 13237)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55be1b6e9660) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55be1b6e9610, cond=0x55be1b6e9638) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55be1b6e9638, mutex=0x55be1b6e9610) at pthread_cond_wait.c:638
#3  0x00007f3a4e10b3db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007f3a4e10afeb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f3a559ab700 (LWP 13236)):
#0  0x00007f3a5a255350 in g_mutex_lock () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f3a5a2082ce in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3a5bad3583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f3a5ba7a4db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f3a5b8b2785 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3a5b320efa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f3a5b8b39d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f3a572e7700 (LWP 13235)):
#0  0x00007f3a5b53596f in __GI___poll (fds=0x7f3a572e6ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3a5a144c1a in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f3a5a14690a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3a57ae6298 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f3a5b8b39d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f3a5aa4f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3a5b542103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f3a5819b800 (LWP 13234)):
[KCrash Handler]
#6  0x00007f3a5d2a84e5 in PartWidget::paintEvent(QPaintEvent*) () at /lib/x86_64-linux-gnu/libkpmcore.so.9
#7  0x00007f3a5c4d62b6 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f3a5c493a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f3a5c49d0f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f3a5ba7b93a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f3a5c4cef4a in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007f3a5c4cf799 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007f3a5c4d0423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007f3a5c4cf4a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f3a5c4d0423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f3a5c4cf4a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f3a5c4d0423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f3a5c4d0306 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f3a5c4d0306 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f3a5c4cf4a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f3a5c4a5bfc in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f3a5c4a5dc1 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f3a5c4be385 in QWidgetPrivate::syncBackingStore() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f3a5c4d6cac in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f3a5c5eb148 in QMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f3a5cfec9ab in KMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#27 0x00007f3a5d0375bb in KXmlGuiWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#28 0x00007f3a5c493a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f3a5c49d0f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f3a5ba7b93a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f3a5c4a6e53 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007f3a5c4a7db0 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007f3a5c4c0231 in QWidget::repaint(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007f3a5c4c02a0 in QWidget::repaint() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x000055be19a4509b in  ()
#36 0x000055be19a3bd91 in  ()
#37 0x000055be19a2d03e in  ()
#38 0x000055be19a03a61 in  ()
#39 0x00007f3a5baa7d5a in QObject::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f3a5c4d625d in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f3a5c5eb148 in QMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007f3a5cfec9ab in KMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#43 0x00007f3a5d0375bb in KXmlGuiWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#44 0x00007f3a5c493a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f3a5c49d0f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#46 0x00007f3a5ba7b93a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#47 0x00007f3a5ba7e5b8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#48 0x00007f3a5bad3f67 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#49 0x00007f3a5a207fbd in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#50 0x00007f3a5a208240 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#51 0x00007f3a5a2082e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#52 0x00007f3a5bad3565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#53 0x00007f3a5ba7a4db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#54 0x00007f3a5ba82246 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#55 0x000055be19a02b99 in main ()
[Inferior 1 (process 13234) detached]

Possible duplicates by query: bug 420793, bug 420792, bug 420134, bug 419826, bug 419798.

Reported using DrKonqi
Comment 1 Andrius Štikonas 2020-05-04 19:31:30 UTC
Can you try to run partition manager with

KPMCORE_DEBUG=y partitionmanager

and see at what stage exactly it crashes.

Also it might be useful to have backtrace with debug symbols... But let's get output with KPMCORE_DEBUG=y first.
Comment 2 Bartek Wreczycki 2020-05-04 20:38:13 UTC
Hello Andrius Štikonas, KDE Partition Manager seems to crash when it's scanning for devices and scans /dev/sdb which is my external hard drive. Below is the output for KPMCORE_DEBUG=y partitionmanager.

Could not load plugin for core backend  "" :  "The shared library was not found."
Loaded backend plugin:  "pmsfdiskbackendplugin"
"Command: /usr/sbin/dumpe2fs "
"Command: /usr/sbin/e2label "
"Command: /usr/sbin/mkfs.ext2 "
"Command: /usr/sbin/e2fsck -V"
"Command: /usr/sbin/tune2fs "
"Command: /usr/sbin/resize2fs "
"Command: /usr/sbin/dumpe2fs "
"Command: /usr/sbin/e2label "
"Command: /usr/sbin/mkfs.ext2 "
"Command: /usr/sbin/e2fsck -V"
"Command: /usr/sbin/tune2fs "
"Command: /usr/sbin/resize2fs "
"Command: /usr/sbin/dumpe2fs "
"Command: /usr/sbin/e2label "
"Command: /usr/sbin/mkfs.ext2 "
"Command: /usr/sbin/e2fsck -V"
"Command: /usr/sbin/tune2fs "
"Command: /usr/sbin/resize2fs "
"Command: /usr/sbin/mkswap "
"Command: /usr/sbin/mkfs.fat "
"Command: /usr/sbin/fatlabel "
"Command: /usr/sbin/mkfs.fat "
"Command: /usr/sbin/fatlabel "
"Command: /usr/sbin/ntfsresize "
"Command: /usr/sbin/ntfslabel "
"Command: /usr/sbin/mkfs.ntfs "
"Command: /usr/sbin/ntfsclone "
"Command: /usr/sbin/cryptsetup "
"Command: /usr/sbin/cryptsetup "
"Command: /usr/sbin/mkfs.fat "
"Command: /usr/sbin/fatlabel "
"Command: /usr/sbin/fsck.minix "
"Command: /usr/sbin/mkfs.minix "
"Using backend plugin: pmsfdiskbackendplugin (1)"
"Scanning devices..."
"Command: lsblk --nodeps --paths --sort name --json --output type,name"
"Command: blockdev --getsize64 /dev/loop9"
"Command: blockdev --getss /dev/loop9"
"Command: sfdisk --json /dev/loop9"
"Command: lsblk --nodeps --noheadings --output model /dev/loop9"
"Command: lsblk --nodeps --noheadings --output kname /dev/loop9"
"Command: lsblk --nodeps --noheadings --output tran /dev/loop9"
"Device found: loop9"
"Command: smartctl --all --json /dev/loop9"
smartctl initialization failed for  "/dev/loop9" :  No such file or directory
error during smart output parsing for  "/dev/loop9" :  No such file or directory
"Command: udevadm info --query=property /dev/loop9p1"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/loop9p1"
"Command: udevadm info --query=property /dev/loop9p2"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/loop9p2"
"Command: udevadm info --query=property /dev/loop9p3"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/loop9p3"
"Command: udevadm info --query=property /dev/loop9p4"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/loop9p4"
"Partition ‘/dev/loop9p1’ is not properly aligned (first sector: 1,920,221,984, modulo: 800)."
"Command: blockdev --getsize64 /dev/sda"
"Partition ‘/dev/loop9p1’ is not properly aligned (last sector: 3,736,432,267, modulo: 1,676)."
"Partition ‘/dev/loop9p2’ is not properly aligned (first sector: 1,936,028,192, modulo: 544)."
"Partition ‘/dev/loop9p2’ is not properly aligned (last sector: 3,889,681,299, modulo: 916)."
"Command: blockdev --getss /dev/sda"
"Partition ‘/dev/loop9p4’ is not properly aligned (first sector: 27,722,122, modulo: 394)."
"Partition ‘/dev/loop9p4’ is not properly aligned (last sector: 27,722,568, modulo: 841)."
"Command: sfdisk --json /dev/sda"
"Command: lsblk --nodeps --noheadings --output model /dev/sda"
"Command: lsblk --nodeps --noheadings --output tran /dev/sda"
"Command: smartctl --all --json /dev/sda"
"Device found: Hitachi HDT721010SLA360"
smartctl initialization failed for  "/dev/sda" :  No such file or directory
error during smart output parsing for  "/dev/sda" :  No such file or directory
"Command: udevadm info --query=property /dev/sda1"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda1"
"Command: ntfsresize --info --force --no-progress-bar /dev/sda1"
"Command: udevadm info --query=property /dev/sda1"
"Command: udevadm info --query=property /dev/sda1"
"Command: udevadm info --query=property /dev/sda2"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda2"
"Command: ntfsresize --info --force --no-progress-bar /dev/sda2"
"Command: udevadm info --query=property /dev/sda2"
"Command: udevadm info --query=property /dev/sda2"
"Command: udevadm info --query=property /dev/sda3"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda3"
"Command: ntfsresize --info --force --no-progress-bar /dev/sda3"
"Command: udevadm info --query=property /dev/sda3"
"Command: udevadm info --query=property /dev/sda3"
"Command: udevadm info --query=property /dev/sda4"
unknown file system type  ""  on  "/dev/sda4"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda4"
"Command: udevadm info --query=property /dev/sda5"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda5"
"Command: udevadm info --query=property /dev/sda5"
"Command: udevadm info --query=property /dev/sda5"
"Command: udevadm info --query=property /dev/sda6"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sda6"
"Command: udevadm info --query=property /dev/sda6"
"Command: udevadm info --query=property /dev/sda6"
"Partition ‘/dev/sda4’ is not properly aligned (first sector: 1,537,028,094, modulo: 2,046)."
"Command: blockdev --getsize64 /dev/sdb"
"Command: blockdev --getss /dev/sdb"
"Command: sfdisk --json /dev/sdb"
"Command: lsblk --nodeps --noheadings --output model /dev/sdb"
"Command: lsblk --nodeps --noheadings --output tran /dev/sdb"
"Device found: TOSHIBA MK5076GS"
"Command: smartctl --all --json /dev/sdb"
smartctl initialization failed for  "/dev/sdb" :  No such file or directory
error during smart output parsing for  "/dev/sdb" :  No such file or directory
"Command: udevadm info --query=property /dev/sdb1"
"Command: lsblk --noheadings --nodeps --output mountpoint /dev/sdb1"
"Command: lvm vgs --foreign --readonly --noheadings --units B --nosuffix --options vg_name"
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = partitionmanager path = /usr/bin pid = 19642
KCrash: Arguments: /usr/bin/partitionmanager 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Stopped                 KPMCORE_DEBUG=y partitionmanager
Comment 3 Andrius Štikonas 2020-05-04 20:45:19 UTC
Hmm, last command it runs is scanning for LVM.
By the way, do you happpen to use LVM? LVM scanning is run even if you don't use it (partitionmanager needs to check if you use LVM or not)

And what happens if you manually run

sudo lvm vgs --foreign --readonly --noheadings --units B --nosuffix --options vg_name
Comment 4 Bartek Wreczycki 2020-05-04 20:48:34 UTC
Hello Andrius Štikonas, the output of sudo lvm vgs --foreign --readonly --noheadings --units B --nosuffix --options vg_name is sudo: lvm: command not found.
Comment 5 Bartek Wreczycki 2020-05-04 20:58:08 UTC
After installing the lvm2 package KDE Partition Manager still crashes, and the output of sudo lvm vgs --foreign --readonly --noheadings --units B --nosuffix --options vg_name is:

/dev/sdc: open failed: No medium found
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
/dev/sdc: open failed: No medium found
/dev/sdd: open failed: No medium found
/dev/sde: open failed: No medium found
Comment 6 Andrius Štikonas 2020-05-04 21:04:15 UTC
Perhaps LVM was red herring.

Maybe Partition Manager chokes on those "/dev/sdc: open failed: No medium found"

Do these device nodes (sdc, sdd and sde) disappear when you unplug your external media? And does KDE Partition Manager crash in that case?
Comment 7 Bartek Wreczycki 2020-05-04 21:10:02 UTC
Hello, those devices are not from the external hard drive but they are from some card (SD, etc) readers built into my PC.
Comment 8 Andrius Štikonas 2020-05-04 21:38:58 UTC
(In reply to Bartek Wreczycki from comment #7)
> Hello, those devices are not from the external hard drive but they are from
> some card (SD, etc) readers built into my PC.

Hmm, I think I have some removable SD card reader which shows extra devices and it doesn't cause crash.

Maybe let's try to get a better backtrace and see if it helps.

Can you try installing at least libkpmcore9-dbgsym and partitionmanager-dbgsym
and get a new backtrace. (Installing debug symbols for more libraries in particular Qt will make backtrace even more complete...). At the moment I can only see function names in the backtrace, with debug symbols it will hopefully show where exactly crash happens.

I actually had some backtraces with PartWidget::paintEvent function before in other bugs, but I can't really see anything wrong with that function and I was never able to reliably reproduce crash that crashed in paintEvent.

By the way, that function is here https://invent.kde.org/kde/kpmcore/-/blob/master/src/gui/partwidget.cpp#L91
Comment 9 Bartek Wreczycki 2020-05-04 21:57:19 UTC
Hello, below is the backtrace with the packages libkpmcore9-dbgsym and andpartitionmanager-dbgsym installed.

Application: KDE Partition Manager (partitionmanager), signal: Floating point exception
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fcc5c680800 (LWP 37027))]

Thread 11 (Thread 0x7fcc45dac700 (LWP 37037)):
#0  0x00007fcc5fa1a96f in __GI___poll (fds=0x55b9154df170, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fcc5e6ed1ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5e6ed533 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcc5057ae9a in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fcc5e716931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fcc465ad700 (LWP 37036)):
#0  0x00007fcc5e73a33d in g_mutex_lock () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fcc5e6ec5cb in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5e6ed0db in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcc5e6ed2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fcc5e6ed331 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fcc5e716931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fcc46dae700 (LWP 37035)):
#0  0x00007fcc5fa1a96f in __GI___poll (fds=0x7fcc28004a20, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fcc5e6ed1ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5e6ed2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcc5ffb8583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fcc5ff5f4db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcc6178205f in DBusThread::run() (this=0x55b91540acf0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:120
#6  0x00007fcc5fd989d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fcc475af700 (LWP 37034)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b915552bb8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b915552b68, cond=0x55b915552b90) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b915552b90, mutex=0x55b915552b68) at pthread_cond_wait.c:638
#3  0x00007fcc525813db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fcc52580feb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fcc47db0700 (LWP 37033)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b915552bb8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b915552b68, cond=0x55b915552b90) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b915552b90, mutex=0x55b915552b68) at pthread_cond_wait.c:638
#3  0x00007fcc525813db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fcc52580feb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fcc50f03700 (LWP 37032)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b915552bb8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b915552b68, cond=0x55b915552b90) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b915552b90, mutex=0x55b915552b68) at pthread_cond_wait.c:638
#3  0x00007fcc525813db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fcc52580feb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fcc51704700 (LWP 37031)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b915552bb8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b915552b68, cond=0x55b915552b90) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b915552b90, mutex=0x55b915552b68) at pthread_cond_wait.c:638
#3  0x00007fcc525813db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fcc52580feb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fcc52046700 (LWP 37030)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b9158a9830) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55b9158a97e0, cond=0x55b9158a9808) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55b9158a9808, mutex=0x55b9158a97e0) at pthread_cond_wait.c:638
#3  0x00007fcc525813db in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#4  0x00007fcc52580feb in  () at /usr/lib/x86_64-linux-gnu/dri/r600_dri.so
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fcc59e91700 (LWP 37029)):
#0  0x00007fcc5fa1a96f in __GI___poll (fds=0x7fcc4c01a670, nfds=1, timeout=863936367) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fcc5e6ed1ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fcc5e6ed2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fcc5ffb8583 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fcc5ff5f4db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcc5fd97785 in QThread::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fcc5f805efa in  () at /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fcc5fd989d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fcc5b7cd700 (LWP 37028)):
#0  0x00007fcc5fa1a96f in __GI___poll (fds=0x7fcc5b7ccca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fcc5e629c1a in  () at /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fcc5e62b90a in xcb_wait_for_event () at /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fcc5bfcc298 in  () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fcc5fd989d2 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fcc5ef34609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fcc5fa27103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fcc5c680800 (LWP 37027)):
[KCrash Handler]
#6  0x00007fcc6178d4e5 in PartWidget::paintEvent(QPaintEvent*) (this=0x55b91559c950) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:184
#7  0x00007fcc609bb2b6 in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007fcc60978a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007fcc609820f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007fcc5ff6093a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007fcc609b3f4a in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007fcc609b4799 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007fcc609b5423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007fcc609b44a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fcc609b5423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007fcc609b44a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007fcc609b5423 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007fcc609b5306 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007fcc609b5306 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fcc609b44a4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fcc6098abfc in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007fcc6098adc1 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007fcc609a3385 in QWidgetPrivate::syncBackingStore() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007fcc609bbcac in QWidget::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007fcc60ad0148 in QMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007fcc614d19ab in KMainWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#27 0x00007fcc6151c5bb in KXmlGuiWindow::event(QEvent*) () at /lib/x86_64-linux-gnu/libKF5XmlGui.so.5
#28 0x00007fcc60978a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007fcc609820f0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007fcc5ff6093a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007fcc6098be53 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#32 0x00007fcc6098cdb0 in  () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#33 0x00007fcc609a5231 in QWidget::repaint(QRect const&) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#34 0x00007fcc609a52a0 in QWidget::repaint() () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#35 0x00007fcc6178d93a in PartWidget::setFileSystemColorCode(std::vector<QColor, std::allocator<QColor> > const&) (this=<optimized out>, colorCode=...) at ./src/gui/partwidget.cpp:77
#36 0x000055b91456f09b in PartTableWidget::setPartitionTable(PartitionTable const*) (this=0x55b9155424c0, ptable=<optimized out>) at ./src/gui/parttablewidget.cpp:56
#37 0x000055b914565d91 in PartitionManagerWidget::updatePartitions() (this=0x55b91530c5f0) at ./src/gui/partitionmanagerwidget.h:121
#38 0x000055b914566179 in PartitionManagerWidget::updatePartitions() (this=<optimized out>) at ./src/gui/partitionmanagerwidget.h:85
#39 PartitionManagerWidget::setSelectedPartition(Partition const*) (this=<optimized out>, p=<optimized out>) at ./src/gui/partitionmanagerwidget.cpp:170
#40 0x0000000000000000 in  ()
[Inferior 1 (process 37027) detached]
Comment 10 Andrius Štikonas 2020-05-04 22:27:26 UTC
Hmm,

/usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h

suggest that something is wrong with calls to QRect.

I still don't see what might be going wrong there... Maybe I'll have to ask somebody else to take a look, to get a second pair of eyes...
Comment 11 Andrius Štikonas 2020-05-08 14:13:00 UTC
Can you test latest kpmcore master code?

One check was added to test if partition capacity is non-zero before dividing by partition capacity:

https://invent.kde.org/kde/kpmcore/-/commit/cacdb7b634fa8fbe15cb98cc6f5b17fd6a122a9c
Comment 12 Bartek Wreczycki 2020-05-11 13:30:12 UTC
Hello, I require some assistance with compiling kpmcore, I always get this output:

Installing in /usr/local. Run /home/bartek/kpmcore/build/prefix.sh to set the environment for kpmcore.
-- Could NOT find KF5Auth (missing: KF5Auth_DIR)
-- Could NOT find KF5Auth: found neither KF5AuthConfig.cmake nor kf5auth-config.cmake 
-- Could NOT find KF5CoreAddons (missing: KF5CoreAddons_DIR)
-- Could NOT find KF5CoreAddons: found neither KF5CoreAddonsConfig.cmake nor kf5coreaddons-config.cmake 
-- Could NOT find KF5I18n (missing: KF5I18n_DIR)
-- Could NOT find KF5I18n: found neither KF5I18nConfig.cmake nor kf5i18n-config.cmake 
-- Could NOT find KF5WidgetsAddons (missing: KF5WidgetsAddons_DIR)
-- Could NOT find KF5WidgetsAddons: found neither KF5WidgetsAddonsConfig.cmake nor kf5widgetsaddons-config.cmake 
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find KF5 (missing: Auth CoreAddons I18n WidgetsAddons) (Required
  is at least version "5.56")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args)
  CMakeLists.txt:67 (find_package)
Comment 13 Andrius Štikonas 2020-05-11 13:41:53 UTC
(In reply to Bartek Wreczycki from comment #12)
> Hello, I require some assistance with compiling kpmcore, I always get this
> output:
> 
> Installing in /usr/local. Run /home/bartek/kpmcore/build/prefix.sh to set
> the environment for kpmcore.
> -- Could NOT find KF5Auth (missing: KF5Auth_DIR)
> -- Could NOT find KF5Auth: found neither KF5AuthConfig.cmake nor
> kf5auth-config.cmake 
> -- Could NOT find KF5CoreAddons (missing: KF5CoreAddons_DIR)
> -- Could NOT find KF5CoreAddons: found neither KF5CoreAddonsConfig.cmake nor
> kf5coreaddons-config.cmake 
> -- Could NOT find KF5I18n (missing: KF5I18n_DIR)
> -- Could NOT find KF5I18n: found neither KF5I18nConfig.cmake nor
> kf5i18n-config.cmake 
> -- Could NOT find KF5WidgetsAddons (missing: KF5WidgetsAddons_DIR)
> -- Could NOT find KF5WidgetsAddons: found neither
> KF5WidgetsAddonsConfig.cmake nor kf5widgetsaddons-config.cmake 
> CMake Error at
> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146
> (message):
>   Could NOT find KF5 (missing: Auth CoreAddons I18n WidgetsAddons) (Required
>   is at least version "5.56")
> Call Stack (most recent call first):
>   /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393
> (_FPHSA_FAILURE_MESSAGE)
>   /usr/share/ECM/find-modules/FindKF5.cmake:110
> (find_package_handle_standard_args)
>   CMakeLists.txt:67 (find_package)

You are missing build dependencies.

Try running sudo apt-get build-dep kpmcore
Comment 14 Andrius Štikonas 2020-05-11 13:46:15 UTC
(In reply to Bartek Wreczycki from comment #12)
> Hello, I require some assistance with compiling kpmcore, I always get this
> output:
> 
> Installing in /usr/local. Run /home/bartek/kpmcore/build/prefix.sh to set
> the environment for kpmcore.
> -- Could NOT find KF5Auth (missing: KF5Auth_DIR)
> -- Could NOT find KF5Auth: found neither KF5AuthConfig.cmake nor
> kf5auth-config.cmake 
> -- Could NOT find KF5CoreAddons (missing: KF5CoreAddons_DIR)
> -- Could NOT find KF5CoreAddons: found neither KF5CoreAddonsConfig.cmake nor
> kf5coreaddons-config.cmake 
> -- Could NOT find KF5I18n (missing: KF5I18n_DIR)
> -- Could NOT find KF5I18n: found neither KF5I18nConfig.cmake nor
> kf5i18n-config.cmake 
> -- Could NOT find KF5WidgetsAddons (missing: KF5WidgetsAddons_DIR)
> -- Could NOT find KF5WidgetsAddons: found neither
> KF5WidgetsAddonsConfig.cmake nor kf5widgetsaddons-config.cmake 
> CMake Error at
> /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146
> (message):
>   Could NOT find KF5 (missing: Auth CoreAddons I18n WidgetsAddons) (Required
>   is at least version "5.56")
> Call Stack (most recent call first):
>   /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393
> (_FPHSA_FAILURE_MESSAGE)
>   /usr/share/ECM/find-modules/FindKF5.cmake:110
> (find_package_handle_standard_args)
>   CMakeLists.txt:67 (find_package)

Also, I'm not sure if installing to /usr/local would work, polkit (which is used by kauth) might not like files installed in non-standard location.

I usually just install to /usr with 
"cmake .. -DINSTALL_PREFIX=/usr"

(it's a bit ugly since it has pottential to  polute your /usr, although, now master installs the same version of libraries as 4.1.0, so it should just overwrite your system install of kpmcore)
Comment 15 Titus Rwantare 2020-05-13 17:39:05 UTC
Created attachment 128437 [details]
New crash information added by DrKonqi

partitionmanager (4.1.0) using Qt 5.12.8

I can not get into KDE partition manager either. It recently started crashing immediately after entering my password.

-- Backtrace (Reduced):
#6  0x00007f043ba5f4e5 in PartWidget::paintEvent(QPaintEvent*) () from /lib/x86_64-linux-gnu/libkpmcore.so.9
#7  0x00007f043ac8d2b6 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8  0x00007f043ac4aa66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9  0x00007f043ac540f0 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f043a23293a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
Comment 16 Andrius Štikonas 2020-05-13 17:49:48 UTC
(In reply to trwantare from comment #15)
> Created attachment 128437 [details]
> New crash information added by DrKonqi
> 
> partitionmanager (4.1.0) using Qt 5.12.8
> 
> I can not get into KDE partition manager either. It recently started
> crashing immediately after entering my password.
> 
> -- Backtrace (Reduced):
> #6  0x00007f043ba5f4e5 in PartWidget::paintEvent(QPaintEvent*) () from
> /lib/x86_64-linux-gnu/libkpmcore.so.9
> #7  0x00007f043ac8d2b6 in QWidget::event(QEvent*) () from
> /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #8  0x00007f043ac4aa66 in QApplicationPrivate::notify_helper(QObject*,
> QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #9  0x00007f043ac540f0 in QApplication::notify(QObject*, QEvent*) () from
> /lib/x86_64-linux-gnu/libQt5Widgets.so.5
> #10 0x00007f043a23293a in QCoreApplication::notifyInternal2(QObject*,
> QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5

Hi,

Unfortunately, this backtrace is not useful.

I have committed a few fixes to paintEvent function that might or might not fix the crash. Would you be able to compile kpmcore from git master and test them?

Alternatively, it would be useful to have a backtrace with debug symbols AND compiler optimizations disabled.
Comment 17 Titus Rwantare 2020-05-13 20:31:48 UTC
I just got kpmcore github.com/KDE/kpmcore and went through the process of building from source. I'm not sure I'm running it correctly though because ./kpmcore_external command in /usr/local/lib/kauth/libexec doesn't do anything.
Comment 18 Andrius Štikonas 2020-05-13 20:40:08 UTC
(In reply to Titus Rwantare from comment #17)
> I just got kpmcore github.com/KDE/kpmcore and went through the process of
> building from source. I'm not sure I'm running it correctly though because
> ./kpmcore_external command in /usr/local/lib/kauth/libexec doesn't do
> anything.

That's probably because you installed it to /usr/local. Polkit expects its helpers to be installed in /usr (I think for security reasons). By the way, you shouldn't run kpmcore_external manually in any case. kpmcore is library that spawns kpmcore_external command helper but you use kpmcore via KDE Partition Manager or some other program like Calamares
Comment 19 Titus Rwantare 2020-05-13 20:58:19 UTC
I get the following error if I try to run partitionmanager

partitionmanager: symbol lookup error: partitionmanager: undefined symbol: _ZN9FSFeatureD1Ev
Comment 20 Andrius Štikonas 2020-05-13 21:20:19 UTC
(In reply to Titus Rwantare from comment #19)
> I get the following error if I try to run partitionmanager
> 
> partitionmanager: symbol lookup error: partitionmanager: undefined symbol:
> _ZN9FSFeatureD1Ev

It looks like you also need to rebuild partitionmanager.
Comment 21 Titus Rwantare 2020-05-13 21:37:47 UTC
It appears to be functioning correctly after installing partitionmanager from source.
Comment 22 Andrius Štikonas 2020-05-13 21:59:23 UTC
(In reply to Titus Rwantare from comment #21)
> It appears to be functioning correctly after installing partitionmanager
> from source.

Would it be possible for you to compile kpmcore 4.1.0 from source to confirm that it crashes.
Comment 23 Titus Rwantare 2020-05-13 22:41:37 UTC
If you mean the latest source on kde/kpmcore master, then no, it doesn't crash with that version. However, removing partitionmanager and kpmcore, and reinstalling through apt, which is versioned 4.1.0 also, the apt version insta crashes. I've gone back and forth between the two.
Comment 24 Andrius Štikonas 2020-05-13 22:49:34 UTC
(In reply to Titus Rwantare from comment #23)
> If you mean the latest source on kde/kpmcore master, then no, it doesn't
> crash with that version. However, removing partitionmanager and kpmcore, and
> reinstalling through apt, which is versioned 4.1.0 also, the apt version
> insta crashes. I've gone back and forth between the two.

Sorry, I meant uninstalling apt version and compiling 4.1.0 (not from latest git version but from "git checkout v4.1.0") to make sure that the fix is between 4.1.0 and master. As opposed to some other factors.
Comment 25 Titus Rwantare 2020-05-14 00:15:09 UTC
(In reply to Andrius Štikonas from comment #24)
> 
> Sorry, I meant uninstalling apt version and compiling 4.1.0 (not from latest
> git version but from "git checkout v4.1.0") to make sure that the fix is
> between 4.1.0 and master. As opposed to some other factors.

I've just tried this and yes, 4.1.0 crashes and master does not. Both from source
Comment 26 Andrius Štikonas 2020-05-14 00:19:10 UTC
(In reply to Titus Rwantare from comment #25)
> (In reply to Andrius Štikonas from comment #24)
> > 
> > Sorry, I meant uninstalling apt version and compiling 4.1.0 (not from latest
> > git version but from "git checkout v4.1.0") to make sure that the fix is
> > between 4.1.0 and master. As opposed to some other factors.
> 
> I've just tried this and yes, 4.1.0 crashes and master does not. Both from
> source

Ok, so hopefully the speculative fix works. I'll close this and other bugs with similar backtrace as fixed. If it still crashes for somebody, then please reopen (or file a new bug).
Comment 27 Andrius Štikonas 2020-06-01 13:31:17 UTC
*** Bug 422331 has been marked as a duplicate of this bug. ***