https://bugs.kde.org/show_bug.cgi?id=412738

--- Comment #7 from Tom Moebert <tom.m...@googlemail.com> ---
For me crashes in

#4  0x00007ffff7591475 in operator/ (s=..., c=0) at
/usr/include/qt5/QtCore/qsize.h:196
194     inline const QSize operator/(const QSize &s, qreal c)
195     {
196         Q_ASSERT(!qFuzzyIsNull(c));
197         return QSize(qRound(s.wd/c), qRound(s.ht/c));
198     }

when c==0 .

Test code:

auto prf= thumbnailPix.devicePixelRatioF();
auto pr = thumbnailPix.devicePixelRatio();

(gdb) print prf
$3 = 0
(gdb) print pr
$2 = 1

(gdb) ptype prf
type = double
(gdb) ptype pr
type = double


Full call stack:

Thread 1 "gwenview" received signal SIGABRT, Aborted.
0x00007fffee76b160 in raise () from /lib64/libc.so.6
(gdb) bt
#0  0x00007fffee76b160 in raise () from /lib64/libc.so.6
#1  0x00007fffee76c741 in abort () from /lib64/libc.so.6
#2  0x00007fffef46b907 in QMessageLogger::fatal(char const*, ...) const () from
/usr/lib64/libQt5Core.so.5
#3  0x00007fffef466dd6 in qt_assert(char const*, char const*, int) () from
/usr/lib64/libQt5Core.so.5
#4  0x00007ffff7591475 in operator/ (s=..., c=0) at
/usr/include/qt5/QtCore/qsize.h:196
#5  0x00007ffff761dcce in Gwenview::ThumbnailBarItemDelegate::sizeHint
(this=0x9b4650, index=...)
    at /home/tom/Programme/gwenview/lib/thumbnailview/thumbnailbarview.cpp:182
#6  0x00007ffff1540e5a in ?? () from /usr/lib64/libQt5Widgets.so.5
#7  0x00007ffff15491f4 in ?? () from /usr/lib64/libQt5Widgets.so.5
#8  0x00007ffff1540bf3 in ?? () from /usr/lib64/libQt5Widgets.so.5
#9  0x00007ffff154ac5a in QListView::doItemsLayout() () from
/usr/lib64/libQt5Widgets.so.5
#10 0x00007ffff12b9513 in ?? () from /usr/lib64/libQt5Widgets.so.5
#11 0x00007ffff1545160 in QListView::rectForIndex(QModelIndex const&) const ()
from /usr/lib64/libQt5Widgets.so.5
#12 0x00007ffff15451ae in QListView::visualRect(QModelIndex const&) const ()
from /usr/lib64/libQt5Widgets.so.5
#13 0x00007ffff154686c in QListView::scrollTo(QModelIndex const&,
QAbstractItemView::ScrollHint) ()
   from /usr/lib64/libQt5Widgets.so.5
#14 0x00007ffff7623b67 in Gwenview::ThumbnailView::scrollToSelectedIndex
(this=0xa6f0e0)
    at /home/tom/Programme/gwenview/lib/thumbnailview/thumbnailview.cpp:843
#15 0x000000000047545e in Gwenview::MainWindow::slotDirListerCompleted
(this=0x7f5670)
    at /home/tom/Programme/gwenview/app/mainwindow.cpp:1302
#16 0x00000000004a61b0 in Gwenview::MainWindow::qt_static_metacall
(_o=0x7f5670, 
    _c=QMetaObject::InvokeMetaMethod, _id=15, _a=0x7fffffffd2a0)
    at
/home/tom/Programme/gwenview/build/app/gwenview_autogen/EWIEGA46WW/moc_mainwindow.cpp:238
#17 0x00007fffef68e535 in QMetaObject::activate(QObject*, int, int, void**) ()
from /usr/lib64/libQt5Core.so.5
#18 0x00007ffff6583947 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#19 0x00007ffff6583b36 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#20 0x00007fffef68f0a2 in QObject::event(QEvent*) () from
/usr/lib64/libQt5Core.so.5
#21 0x00007ffff12c03dc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
   from /usr/lib64/libQt5Widgets.so.5
#22 0x00007ffff12c7ca4 in QApplication::notify(QObject*, QEvent*) () from
/usr/lib64/libQt5Widgets.so.5
#23 0x00007fffef65f8d8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /usr/lib64/libQt5Core.so.5
#24 0x00007fffef66204d in QCoreApplicationPrivate::sendPostedEvents(QObject*,
int, QThreadData*) ()
   from /usr/lib64/libQt5Core.so.5
#25 0x00007fffef6b9323 in ?? () from /usr/lib64/libQt5Core.so.5
#26 0x00007fffe9152e87 in g_main_context_dispatch () from
/usr/lib64/libglib-2.0.so.0
#27 0x00007fffe9153230 in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fffe91532bc in g_main_context_iteration () from
/usr/lib64/libglib-2.0.so.0
#29 0x00007fffef6b894f in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/libQt5Core.so.5
#30 0x00007fffef65d90a in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib64/libQt5Core.so.5
#31 0x00007fffef6669b4 in QCoreApplication::exec() () from
/usr/lib64/libQt5Core.so.5
#32 0x0000000000472361 in main (argc=1, argv=0x7fffffffdbb8) at
/home/tom/Programme/gwenview/app/main.cpp:163

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to