Bug 413418 - KDE Partition Manager crashes when opening partition information on USB drive
Summary: KDE Partition Manager crashes when opening partition information on USB drive
Status: RESOLVED FIXED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: 4.0.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords: drkonqi
: 384679 397769 398306 409312 414497 414624 416230 422961 423648 424137 424200 424695 425552 425701 427613 427671 433891 435915 438516 446233 447091 449804 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-10-25 05:46 UTC by dsincubus
Modified: 2022-02-08 18:14 UTC (History)
25 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.2.0


Attachments
New crash information added by DrKonqi (17.98 KB, text/plain)
2019-11-13 13:44 UTC, Ingvarr
Details
New crash information added by DrKonqi (20.34 KB, text/plain)
2019-12-14 21:31 UTC, Lance Haverkamp
Details
attachment-24613-0.html (1.52 KB, text/html)
2020-08-21 10:21 UTC, dsincubus
Details
attachment-21024-0.html (871 bytes, text/html)
2020-08-21 23:59 UTC, dsincubus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dsincubus 2019-10-25 05:46:26 UTC
Application: partitionmanager (4.0.0)

Qt Version: 5.13.1
Frameworks Version: 5.63.0
Operating System: Linux 5.0.0-32-generic x86_64
Distribution: KDE neon User Edition 5.17

-- Information about the crash:
- What I was doing when the application crashed: trying to view the partition information of USB drive.  I tried using KDE PM to view the USB partition twice and each time the USB was seleced KDE PM would crash.  At the moment I had a download running in the background and an open instance of Chromium browser.  I was able to install gnome-disk-utility and check the partion using that, the USB was just a single 16GB NTFS partion blank.

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 0x7fe71b59bf80 (LWP 11211))]

Thread 6 (Thread 0x7fe6f0a2e700 (LWP 11224)):
#0  0x00007fe7171320b4 in __GI___libc_read (fd=25, buf=0x7fe6f0a2dc90, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fe7116932d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe71164e0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe71164e570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe71164e962 in g_main_loop_run () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe6f1b9a0e6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#6  0x00007fe711676195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fe71317d6db in start_thread (arg=0x7fe6f0a2e700) at pthread_create.c:463
#8  0x00007fe71714388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fe6f122f700 (LWP 11223)):
#0  0x00007fe7171320b4 in __GI___libc_read (fd=23, buf=0x7fe6f122eca0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fe7116932d0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe71164e0b7 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe71164e570 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fe71164e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fe71164e721 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fe711676195 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fe71317d6db in start_thread (arg=0x7fe6f122f700) at pthread_create.c:463
#8  0x00007fe71714388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fe6f4314700 (LWP 11215)):
#0  0x00007fe717136bf9 in __GI___poll (fds=0x7fe6ec004a50, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe71164e5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe71164e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe717a899db in QEventDispatcherGlib::processEvents (this=0x7fe6ec000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fe717a29eaa in QEventLoop::exec (this=this@entry=0x7fe6f4313d50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fe71b16ba54 in DBusThread::run (this=0x55719a670510) at ./src/util/externalcommand.cpp:483
#6  0x00007fe717846b72 in QThreadPrivate::start (arg=0x55719a670510) at thread/qthread_unix.cpp:360
#7  0x00007fe71317d6db in start_thread (arg=0x7fe6f4314700) at pthread_create.c:463
#8  0x00007fe71714388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fe7006db700 (LWP 11214)):
#0  0x00007fe717136bf9 in __GI___poll (fds=0x7fe6f801ace0, nfds=1, timeout=863532964) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe71164e5c9 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fe71164e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fe717a899db in QEventDispatcherGlib::processEvents (this=0x7fe6f8000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fe717a29eaa in QEventLoop::exec (this=this@entry=0x7fe7006dad30, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#5  0x00007fe7178453ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#6  0x00007fe7166540e5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007fe717846b72 in QThreadPrivate::start (arg=0x7fe7168cbd80) at thread/qthread_unix.cpp:360
#8  0x00007fe71317d6db in start_thread (arg=0x7fe7006db700) at pthread_create.c:463
#9  0x00007fe71714388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fe709543700 (LWP 11213)):
#0  0x00007fe717136bf9 in __GI___poll (fds=0x7fe709542c68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fe710f91747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fe710f9336a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fe70c121f00 in QXcbEventQueue::run (this=0x55719a2b1440) at qxcbeventqueue.cpp:228
#4  0x00007fe717846b72 in QThreadPrivate::start (arg=0x55719a2b1440) at thread/qthread_unix.cpp:360
#5  0x00007fe71317d6db in start_thread (arg=0x7fe709543700) at pthread_create.c:463
#6  0x00007fe71714388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fe71b59bf80 (LWP 11211)):
[KCrash Handler]
#6  PartWidget::paintEvent (this=0x55719a7a80d0) at ./src/gui/partwidget.cpp:96
#7  0x00007fe718871bf8 in QWidget::event (this=0x55719a7a80d0, event=0x7ffd3cbe3130) at kernel/qwidget.cpp:9339
#8  0x00007fe718830eac in QApplicationPrivate::notify_helper (this=this@entry=0x55719a2ae010, receiver=receiver@entry=0x55719a7a80d0, e=e@entry=0x7ffd3cbe3130) at kernel/qapplication.cpp:3703
#9  0x00007fe7188384b0 in QApplication::notify (this=0x7ffd3cbe5d30, receiver=0x55719a7a80d0, e=0x7ffd3cbe3130) at kernel/qapplication.cpp:3449
#10 0x00007fe717a2bd48 in QCoreApplication::notifyInternal2 (receiver=0x55719a7a80d0, event=0x7ffd3cbe3130) at kernel/qcoreapplication.cpp:1095
#11 0x00007fe717a2bf2e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55719a7a80d0, event=event@entry=0x7ffd3cbe3130) at kernel/qcoreapplication.cpp:1502
#12 0x00007fe71886a935 in QWidgetPrivate::sendPaintEvent (this=this@entry=0x55719a8ea9d0, toBePainted=...) at kernel/qwidget.cpp:5705
#13 0x00007fe71886b10d in QWidgetPrivate::drawWidget (this=this@entry=0x55719a8ea9d0, pdev=pdev@entry=0x55719a718360, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>) at kernel/qwidget.cpp:5645
#14 0x00007fe71886bd70 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55719a4525c0, pdev=pdev@entry=0x55719a718360, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x55719a5b5ca0) at kernel/qwidget.cpp:5838
#15 0x00007fe71886aafe in QWidgetPrivate::drawWidget (this=this@entry=0x55719a4525c0, pdev=pdev@entry=0x55719a718360, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>) at kernel/qwidget.cpp:5696
#16 0x00007fe71886bd70 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55719a453a00, pdev=pdev@entry=0x55719a718360, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x55719a5b5ca0) at kernel/qwidget.cpp:5838
#17 0x00007fe71886aafe in QWidgetPrivate::drawWidget (this=this@entry=0x55719a453a00, pdev=pdev@entry=0x55719a718360, rgn=..., offset=..., flags=flags@entry=4, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>) at kernel/qwidget.cpp:5696
#18 0x00007fe71886bd70 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55719a31a610, pdev=pdev@entry=0x55719a718360, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x55719a5b5ca0) at kernel/qwidget.cpp:5838
#19 0x00007fe71886bef9 in QWidgetPrivate::paintSiblingsRecursive (this=this@entry=0x55719a31a610, pdev=pdev@entry=0x55719a718360, siblings=..., index=<optimized out>, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0x55719a5b5ca0) at kernel/qwidget.cpp:5824
#20 0x00007fe71886aafe in QWidgetPrivate::drawWidget (this=this@entry=0x55719a31a610, pdev=0x55719a718360, rgn=..., offset=..., flags=flags@entry=5, sharedPainter=sharedPainter@entry=0x0, backingStore=<optimized out>) at kernel/qwidget.cpp:5696
#21 0x00007fe718841269 in QWidgetBackingStore::doSync (this=this@entry=0x55719a5b5ca0) at kernel/qwidgetbackingstore.cpp:1362
#22 0x00007fe7188414ed in QWidgetBackingStore::sync (this=0x55719a5b5ca0) at kernel/qwidgetbackingstore.cpp:1143
#23 0x00007fe718859bff in QWidgetPrivate::syncBackingStore (this=0x55719a31a610) at kernel/qwidget.cpp:1949
#24 0x00007fe718871d68 in QWidget::event (this=this@entry=0x55719a3d1b00, event=event@entry=0x7ffd3cbe4370) at kernel/qwidget.cpp:9278
#25 0x00007fe71897d020 in QMainWindow::event (this=this@entry=0x55719a3d1b00, event=event@entry=0x7ffd3cbe4370) at widgets/qmainwindow.cpp:1343
#26 0x00007fe71aad9731 in KMainWindow::event (this=this@entry=0x55719a3d1b00, ev=ev@entry=0x7ffd3cbe4370) at ./src/kmainwindow.cpp:875
#27 0x00007fe71ab1aed7 in KXmlGuiWindow::event (this=0x55719a3d1b00, ev=0x7ffd3cbe4370) at ./src/kxmlguiwindow.cpp:122
#28 0x00007fe718830eac in QApplicationPrivate::notify_helper (this=this@entry=0x55719a2ae010, receiver=receiver@entry=0x55719a3d1b00, e=e@entry=0x7ffd3cbe4370) at kernel/qapplication.cpp:3703
#29 0x00007fe7188384b0 in QApplication::notify (this=0x7ffd3cbe5d30, receiver=0x55719a3d1b00, e=0x7ffd3cbe4370) at kernel/qapplication.cpp:3449
#30 0x00007fe717a2bd48 in QCoreApplication::notifyInternal2 (receiver=0x55719a3d1b00, event=0x7ffd3cbe4370) at kernel/qcoreapplication.cpp:1095
#31 0x00007fe718842343 in QWidgetBackingStore::sendUpdateRequest (this=this@entry=0x55719a5b5ca0, widget=0x55719a3d1b00, updateTime=updateTime@entry=QWidgetBackingStore::UpdateNow) at kernel/qwidgetbackingstore.cpp:504
#32 0x00007fe7188449ee in QWidgetBackingStore::sendUpdateRequest (updateTime=QWidgetBackingStore::UpdateNow, widget=<optimized out>, this=0x55719a5b5ca0) at kernel/qwidgetbackingstore.cpp:474
#33 QWidgetBackingStore::markDirty<QRect> (this=0x55719a5b5ca0, r=..., widget=widget@entry=0x55719a7a80d0, updateTime=updateTime@entry=QWidgetBackingStore::UpdateNow, bufferState=bufferState@entry=QWidgetBackingStore::BufferValid) at kernel/qwidgetbackingstore.cpp:627
#34 0x00007fe71885bcbb in QWidgetPrivate::repaint<QRect> (r=..., this=<optimized out>) at kernel/qwidget.cpp:11104
#35 QWidget::repaint (this=this@entry=0x55719a7a80d0, rect=...) at kernel/qwidget.cpp:11080
#36 0x00007fe71885bd1c in QWidget::repaint (this=this@entry=0x55719a7a80d0) at kernel/qwidget.cpp:11049
#37 0x00007fe71b1768e6 in PartWidget::setFileSystemColorCode (this=this@entry=0x55719a7a80d0, colorCode=std::vector of length 33, capacity 33 = {...}) at ./src/gui/partwidget.cpp:77
#38 0x00005571999e647b in PartTableWidget::setPartitionTable (this=this@entry=0x55719a453e00, ptable=<optimized out>) at ./src/gui/parttablewidget.cpp:56
#39 0x00005571999dde1c in PartitionManagerWidget::updatePartitions (this=this@entry=0x55719a3f3c90) at ./src/gui/partitionmanagerwidget.cpp:251
#40 0x00005571999de209 in PartitionManagerWidget::updatePartitions (this=0x55719a3f3c90) at ./src/gui/partitionmanagerwidget.cpp:173
#41 PartitionManagerWidget::setSelectedPartition (this=this@entry=0x55719a3f3c90, p=0x0) at ./src/gui/partitionmanagerwidget.cpp:170
#42 0x00005571999de330 in PartitionManagerWidget::setSelectedPartition (p=0x0, this=0x55719a3f3c90) at ./src/gui/partitionmanagerwidget.cpp:200
#43 PartitionManagerWidget::setSelectedDevice (d=<optimized out>, this=<optimized out>) at ./src/gui/partitionmanagerwidget.cpp:201
#44 PartitionManagerWidget::setSelectedDevice (this=0x55719a3f3c90, deviceNode=...) at ./src/gui/partitionmanagerwidget.cpp:195
#45 0x00007fe717a5c82f in QtPrivate::QSlotObjectBase::call (a=0x7ffd3cbe4790, r=0x55719a3f3c90, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:394
#46 QMetaObject::activate (sender=sender@entry=0x55719a44d060, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=<optimized out>, argv@entry=0x7ffd3cbe4790) at kernel/qobject.cpp:3789
#47 0x00007fe717a5cdd7 in QMetaObject::activate (sender=sender@entry=0x55719a44d060, m=m@entry=0x557199c21120 <ListDevices::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd3cbe4790) at kernel/qobject.cpp:3660
#48 0x0000557199a00542 in ListDevices::selectionChanged (this=this@entry=0x55719a44d060, _t1=...) at ./obj-x86_64-linux-gnu/src/partitionmanager_autogen/DMHXEJ42XS/moc_listdevices.cpp:162
#49 0x00005571999ca186 in ListDevices::on_m_ListDevices_itemSelectionChanged (this=0x55719a44d060) at ./src/gui/listdevices.cpp:66
#50 0x0000557199a00945 in ListDevices::qt_static_metacall (_o=_o@entry=0x55719a44d060, _id=_id@entry=2, _a=_a@entry=0x7ffd3cbe4900, _c=QMetaObject::InvokeMetaMethod) at ./obj-x86_64-linux-gnu/src/partitionmanager_autogen/DMHXEJ42XS/moc_listdevices.cpp:93
#51 0x0000557199a01073 in ListDevices::qt_static_metacall (_a=0x7ffd3cbe4900, _id=2, _c=QMetaObject::InvokeMetaMethod, _o=0x55719a44d060) at ./obj-x86_64-linux-gnu/src/partitionmanager_autogen/DMHXEJ42XS/moc_listdevices.cpp:147
#52 ListDevices::qt_metacall (this=0x55719a44d060, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7ffd3cbe4900) at ./obj-x86_64-linux-gnu/src/partitionmanager_autogen/DMHXEJ42XS/moc_listdevices.cpp:148
#53 0x00007fe717a5c7d9 in QMetaObject::activate (sender=0x55719a44cf80, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3825
#54 0x00007fe717a5c715 in QMetaObject::activate (sender=sender@entry=0x55719a44de80, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=<optimized out>, argv@entry=0x7ffd3cbe4a50) at kernel/qobject.cpp:3809
#55 0x00007fe717a5cdd7 in QMetaObject::activate (sender=sender@entry=0x55719a44de80, m=m@entry=0x7fe717ee0260 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd3cbe4a50) at kernel/qobject.cpp:3660
#56 0x00007fe7179d4f07 in QItemSelectionModel::selectionChanged (this=this@entry=0x55719a44de80, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:459
#57 0x00007fe7179da155 in QItemSelectionModel::emitSelectionChanged (this=this@entry=0x55719a44de80, newSelection=..., oldSelection=...) at itemmodels/qitemselectionmodel.cpp:1927
#58 0x00007fe7179dd08b in QItemSelectionModel::select (this=0x55719a44de80, selection=..., command=...) at itemmodels/qitemselectionmodel.cpp:1338
#59 0x00007fe718ac37f2 in QListView::setSelection (this=<optimized out>, rect=..., command=...) at itemviews/qlistview.cpp:1409
#60 0x00007fe718a89fd9 in QAbstractItemView::mousePressEvent (this=0x55719a44cf80, event=<optimized out>) at itemviews/qabstractitemview.cpp:1802
#61 0x00007fe71887254f in QWidget::event (this=this@entry=0x55719a44cf80, event=event@entry=0x7ffd3cbe5430) at kernel/qwidget.cpp:8955
#62 0x00007fe7189166be in QFrame::event (this=0x55719a44cf80, e=0x7ffd3cbe5430) at widgets/qframe.cpp:550
#63 0x00007fe718a8f013 in QAbstractItemView::viewportEvent (this=0x55719a44cf80, event=0x7ffd3cbe5430) at itemviews/qabstractitemview.cpp:1753
#64 0x00007fe717a2bacd in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55719a44cfc0, event=event@entry=0x7ffd3cbe5430) at kernel/qcoreapplication.cpp:1221
#65 0x00007fe718830e85 in QApplicationPrivate::notify_helper (this=this@entry=0x55719a2ae010, receiver=receiver@entry=0x55719a44cfc0, e=e@entry=0x7ffd3cbe5430) at kernel/qapplication.cpp:3697
#66 0x00007fe718839388 in QApplication::notify (this=<optimized out>, receiver=0x55719a44cfc0, e=0x7ffd3cbe5430) at kernel/qapplication.cpp:3163
#67 0x00007fe717a2bd48 in QCoreApplication::notifyInternal2 (receiver=0x55719a44cfc0, event=0x7ffd3cbe5430) at kernel/qcoreapplication.cpp:1095
#68 0x00007fe717a2bf2e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55719a44cfc0, event=event@entry=0x7ffd3cbe5430) at kernel/qcoreapplication.cpp:1502
#69 0x00007fe71883797f in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x55719a44cfc0, event=event@entry=0x7ffd3cbe5430, alienWidget=0x55719a44cfc0, nativeWidget=0x55719a3d1b00, buttonDown=buttonDown@entry=0x7fe718f398b0 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2649
#70 0x00007fe71888c591 in QWidgetWindow::handleMouseEvent (this=this@entry=0x55719a5a8bd0, event=event@entry=0x7ffd3cbe58c0) at kernel/qwidgetwindow.cpp:662
#71 0x00007fe71888f3ea in QWidgetWindow::event (this=0x55719a5a8bd0, event=0x7ffd3cbe58c0) at kernel/qwidgetwindow.cpp:281
#72 0x00007fe718830eac in QApplicationPrivate::notify_helper (this=this@entry=0x55719a2ae010, receiver=receiver@entry=0x55719a5a8bd0, e=e@entry=0x7ffd3cbe58c0) at kernel/qapplication.cpp:3703
#73 0x00007fe7188384b0 in QApplication::notify (this=0x7ffd3cbe5d30, receiver=0x55719a5a8bd0, e=0x7ffd3cbe58c0) at kernel/qapplication.cpp:3449
#74 0x00007fe717a2bd48 in QCoreApplication::notifyInternal2 (receiver=0x55719a5a8bd0, event=0x7ffd3cbe58c0) at kernel/qcoreapplication.cpp:1095
#75 0x00007fe717a2bf2e in QCoreApplication::sendSpontaneousEvent (receiver=receiver@entry=0x55719a5a8bd0, event=event@entry=0x7ffd3cbe58c0) at kernel/qcoreapplication.cpp:1502
#76 0x00007fe717fff285 in QGuiApplicationPrivate::processMouseEvent (e=0x7fe70401a0c0) at kernel/qguiapplication.cpp:2111
#77 0x00007fe7180003d5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x7fe70401a0c0) at kernel/qguiapplication.cpp:1846
#78 0x00007fe717fda71b in QWindowSystemInterface::sendWindowSystemEvents (flags=flags@entry=...) at kernel/qwindowsysteminterface.cpp:1148
#79 0x00007fe70c122eca in xcbSourceDispatch (source=<optimized out>) at qxcbeventdispatcher.cpp:105
#80 0x00007fe71164e417 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#81 0x00007fe71164e650 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#82 0x00007fe71164e6dc in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#83 0x00007fe717a899bf in QEventDispatcherGlib::processEvents (this=0x55719a31b140, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#84 0x00007fe717a29eaa in QEventLoop::exec (this=this@entry=0x7ffd3cbe5c60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#85 0x00007fe717a33220 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403
#86 0x00005571999a7b1a in main (argc=<optimized out>, argv=<optimized out>) at ./src/main.cpp:85

Possible duplicates by query: bug 413349, bug 413345, bug 413291, bug 413205, bug 412296.

Reported using DrKonqi
Comment 1 Andrius Štikonas 2019-10-25 18:12:23 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;
Comment 2 Shubham 2019-10-28 08:21:37 UTC
The patch does not apply cleanly on kpmcore master.
Comment 3 Andrius Štikonas 2019-10-28 09:23:16 UTC
(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
Comment 4 Ingvarr 2019-11-13 13:44:51 UTC
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
Comment 5 Lance Haverkamp 2019-12-14 21:31:01 UTC
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
Comment 6 Andrius Štikonas 2020-01-14 19:59:50 UTC
*** Bug 414497 has been marked as a duplicate of this bug. ***
Comment 7 Andrius Štikonas 2020-01-14 19:59:59 UTC
*** Bug 416230 has been marked as a duplicate of this bug. ***
Comment 8 Andrius Štikonas 2020-05-14 00:22:08 UTC
 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.
Comment 9 Andrius Štikonas 2020-06-14 13:08:32 UTC
*** Bug 422961 has been marked as a duplicate of this bug. ***
Comment 10 Andrius Štikonas 2020-06-29 11:00:31 UTC
*** Bug 423648 has been marked as a duplicate of this bug. ***
Comment 11 Andrius Štikonas 2020-07-12 22:21:26 UTC
*** Bug 424137 has been marked as a duplicate of this bug. ***
Comment 12 Andrius Štikonas 2020-07-14 17:06:59 UTC
*** Bug 424200 has been marked as a duplicate of this bug. ***
Comment 13 Andrius Štikonas 2020-07-16 15:47:55 UTC
*** Bug 397769 has been marked as a duplicate of this bug. ***
Comment 14 Andrius Štikonas 2020-07-16 15:48:12 UTC
*** Bug 384679 has been marked as a duplicate of this bug. ***
Comment 15 Andrius Štikonas 2020-07-16 15:48:25 UTC
*** Bug 398306 has been marked as a duplicate of this bug. ***
Comment 16 Andrius Štikonas 2020-07-16 15:48:39 UTC
*** Bug 409312 has been marked as a duplicate of this bug. ***
Comment 17 Andrius Štikonas 2020-07-26 21:03:01 UTC
*** Bug 424695 has been marked as a duplicate of this bug. ***
Comment 18 Andrius Štikonas 2020-08-21 09:30:19 UTC
*** Bug 425552 has been marked as a duplicate of this bug. ***
Comment 19 dsincubus 2020-08-21 10:21:48 UTC
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.
Comment 20 Christoph Feck 2020-08-21 18:49:28 UTC
There is a "never email me about this bug" checkbox right at the top of this page.
Comment 21 dsincubus 2020-08-21 23:59:30 UTC
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.
Comment 22 Andrius Štikonas 2020-08-23 21:16:28 UTC
*** Bug 425701 has been marked as a duplicate of this bug. ***
Comment 23 Andrius Štikonas 2020-10-01 22:45:47 UTC
*** Bug 414624 has been marked as a duplicate of this bug. ***
Comment 24 Andrius Štikonas 2020-10-13 10:08:51 UTC
*** Bug 427613 has been marked as a duplicate of this bug. ***
Comment 25 Andrius Štikonas 2021-01-17 14:08:35 UTC
*** Bug 427671 has been marked as a duplicate of this bug. ***
Comment 26 Andrius Štikonas 2021-03-03 10:02:47 UTC
*** Bug 433891 has been marked as a duplicate of this bug. ***
Comment 27 Andrius Štikonas 2021-04-19 13:44:23 UTC
*** Bug 435915 has been marked as a duplicate of this bug. ***
Comment 28 Andrius Štikonas 2021-06-12 19:56:35 UTC
*** Bug 438516 has been marked as a duplicate of this bug. ***
Comment 29 Andrius Štikonas 2021-11-29 10:48:51 UTC
*** Bug 446233 has been marked as a duplicate of this bug. ***
Comment 30 Andrius Štikonas 2021-12-16 21:17:32 UTC
*** Bug 447091 has been marked as a duplicate of this bug. ***
Comment 31 Andrius Štikonas 2022-02-08 18:14:53 UTC
*** Bug 449804 has been marked as a duplicate of this bug. ***