Bug 169533 - When resized too fast, KPat asserts and crashes
Summary: When resized too fast, KPat asserts and crashes
Status: RESOLVED FIXED
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: 3.0
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-21 14:10 UTC by Jonathan Thomas
Modified: 2008-09-09 21:30 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace for crash (4.70 KB, text/plain)
2008-08-21 23:06 UTC, Matt Williams
Details
Konsole debug output (2.52 KB, text/x-log)
2008-08-21 23:11 UTC, Matt Williams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thomas 2008-08-21 14:10:53 UTC
Version:           3.0 (using 4.1.00 (KDE 4.1.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.26-5-generic

If you resize (make smaller) KPat to quickly, by the time it gets to the minimum window width it asserts and crashes.

ASSERT: "ms.width() >= cardMap::self()->wantedCardWidth() - 0.2" in file /build/buildd/kdegames-4.1.0/kpat/dealer.cpp, line 1745                                                              
KCrash: Application 'kpat' crashing...

Application: KPatience (kpat), signal SIGABRT
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb5ead710 (LWP 9152)]
[KCrash handler]
#6  0xb7f8b424 in __kernel_vsyscall ()
#7  0xb633e860 in raise () from /lib/tls/i686/cmov/libc.so.6
#8  0xb6340228 in abort () from /lib/tls/i686/cmov/libc.so.6
#9  0xb730e725 in qt_message_output () from /usr/lib/libQtCore.so.4
#10 0xb730e802 in qFatal () from /usr/lib/libQtCore.so.4
#11 0xb730e8a5 in qt_assert () from /usr/lib/libQtCore.so.4
#12 0x08062a74 in _start ()
#0  0xb7f8b424 in __kernel_vsyscall ()
Comment 1 Matt Williams 2008-08-21 23:06:21 UTC
Created attachment 26968 [details]
Backtrace for crash
Comment 2 Matt Williams 2008-08-21 23:11:04 UTC
Created attachment 26969 [details]
Konsole debug output
Comment 3 Stephan Kulow 2008-08-24 13:16:10 UTC
Matt, can you reproduce that? I fail
Comment 4 Pino Toscano 2008-09-02 11:55:08 UTC
(Pasting inline for easier dupe find.)

Application: KPatience (kpat), signal SIGABRT
 [?1034h[Thread debugging using libthread_db enabled]
0x00007f00305a6230 in nanosleep () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0033ef8740 (LWP 18530)):
[KCrash Handler]
#5  0x00007f00305365c5 in raise () from /lib64/libc.so.6
#6  0x00007f0030537bb3 in abort () from /lib64/libc.so.6
#7  0x00007f0031245e65 in qt_message_output () from /usr/lib64/libQtCore.so.4
#8  0x00007f0031245f8d in qFatal () from /usr/lib64/libQtCore.so.4
#9  0x000000000041b719 in DealerScene::setSceneSize (this=0xf01230, s=@0x7fff3c033ee0) at /home/matt/kde/trunk/KDE/kdegames/kpat/dealer.cpp:1746
#10 0x000000000042b1c7 in PatienceView::resizeEvent (this=0x88b790, e=0x7fff3c034590) at /home/matt/kde/trunk/KDE/kdegames/kpat/view.cpp:265
#11 0x00007f003211acd1 in QWidget::event () from /usr/lib64/libQtGui.so.4
#12 0x00007f00325a471b in QGraphicsView::viewportEvent () from /usr/lib64/libQtGui.so.4
#13 0x00007f003131da78 in QCoreApplicationPrivate::sendThroughObjectEventFilters () from /usr/lib64/libQtCore.so.4
#14 0x00007f00320cde8c in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#15 0x00007f00320d428a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#16 0x00007f0033a549bb in KApplication::notify () from /usr/lib64/libkdeui.so.5
#17 0x00007f003131e78c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#18 0x00007f00321465c6 in QWidgetPrivate::setGeometry_sys () from /usr/lib64/libQtGui.so.4
#19 0x00007f0032114257 in QWidget::setGeometry () from /usr/lib64/libQtGui.so.4
#20 0x00007f00324511c5 in ?? () from /usr/lib64/libQtGui.so.4
#21 0x00007f00324516f6 in QAbstractScrollArea::event () from /usr/lib64/libQtGui.so.4
#22 0x00007f00320cdebd in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#23 0x00007f00320d428a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#24 0x00007f0033a549bb in KApplication::notify () from /usr/lib64/libkdeui.so.5
#25 0x00007f003131e78c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#26 0x00007f00321465c6 in QWidgetPrivate::setGeometry_sys () from /usr/lib64/libQtGui.so.4
#27 0x00007f0032114257 in QWidget::setGeometry () from /usr/lib64/libQtGui.so.4
#28 0x00007f003246407a in ?? () from /usr/lib64/libQtGui.so.4
#29 0x00007f00323ee85c in ?? () from /usr/lib64/libQtGui.so.4
#30 0x00007f00323eea45 in ?? () from /usr/lib64/libQtGui.so.4
#31 0x00007f00320f57b7 in QLayoutPrivate::doResize () from /usr/lib64/libQtGui.so.4
#32 0x00007f00320f58fa in QLayout::activate () from /usr/lib64/libQtGui.so.4
#33 0x00007f003211bd6b in QWidget::setVisible () from /usr/lib64/libQtGui.so.4
#34 0x00007f003244953b in QToolBarLayout::setGeometry () from /usr/lib64/libQtGui.so.4
#35 0x00007f00320f57b7 in QLayoutPrivate::doResize () from /usr/lib64/libQtGui.so.4
#36 0x00007f00320f58fa in QLayout::activate () from /usr/lib64/libQtGui.so.4
#37 0x00007f00320cde7e in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#38 0x00007f00320d428a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#39 0x00007f0033a549bb in KApplication::notify () from /usr/lib64/libkdeui.so.5
#40 0x00007f003131e78c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#41 0x00007f00321465c6 in QWidgetPrivate::setGeometry_sys () from /usr/lib64/libQtGui.so.4
#42 0x00007f0032114257 in QWidget::setGeometry () from /usr/lib64/libQtGui.so.4
#43 0x00007f003246407a in ?? () from /usr/lib64/libQtGui.so.4
#44 0x00007f003246580a in ?? () from /usr/lib64/libQtGui.so.4
#45 0x00007f00323edb38 in ?? () from /usr/lib64/libQtGui.so.4
#46 0x00007f00323ee85c in ?? () from /usr/lib64/libQtGui.so.4
#47 0x00007f00323eea45 in ?? () from /usr/lib64/libQtGui.so.4
#48 0x00007f00320f57b7 in QLayoutPrivate::doResize () from /usr/lib64/libQtGui.so.4
#49 0x00007f00320f58fa in QLayout::activate () from /usr/lib64/libQtGui.so.4
#50 0x00007f00320cde7e in QApplicationPrivate::notify_helper () from /usr/lib64/libQtGui.so.4
#51 0x00007f00320d428a in QApplication::notify () from /usr/lib64/libQtGui.so.4
#52 0x00007f0033a549bb in KApplication::notify () from /usr/lib64/libkdeui.so.5
#53 0x00007f003131e78c in QCoreApplication::notifyInternal () from /usr/lib64/libQtCore.so.4
#54 0x00007f00321228c5 in ?? () from /usr/lib64/libQtGui.so.4
#55 0x00007f003212b4e9 in QApplication::x11ProcessEvent () from /usr/lib64/libQtGui.so.4
#56 0x00007f003214effc in ?? () from /usr/lib64/libQtGui.so.4
#57 0x00007f003131d0e2 in QEventLoop::processEvents () from /usr/lib64/libQtCore.so.4
#58 0x00007f003131d275 in QEventLoop::exec () from /usr/lib64/libQtCore.so.4
#59 0x00007f003131f315 in QCoreApplication::exec () from /usr/lib64/libQtCore.so.4
#60 0x0000000000413f1d in main (argc=1, argv=0x7fff3c037e38) at /home/matt/kde/trunk/KDE/kdegames/kpat/main.cpp:179
Comment 5 Stephan Kulow 2008-09-09 21:10:04 UTC
fixed in r859197. Missed one little detail: you need to resize _really_ small :)
Comment 6 Jonathan Thomas 2008-09-09 21:30:42 UTC
Eheh, sorry about that. ;-)
All's well that ends well though.