This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[crash 2.2.3 svn]hit torrent name-> crash

Tags: None
(comma "," separated)
stoeptegel
Registered Member
Posts
1075
Karma
0
Sometimes ktorrent crashes when i hit a torrent name. --debug does not give any insight on this:

Code: Select all
Authentication to 84.209.120.231 : ok
Connection closed
Connection closed
kdevelop (core): caption change
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
Qt: Warning: QFile::writeBlock: File not open
kdevelop (core): caption change
kdevelop (core): [void DDockWindow::selectWidget(Ideal::Button*)]
kdevelop (core): [void DDockWindow::selectWidget(Ideal::Button*)]
kdevelop (core): [void DDockWindow::selectWidget(Ideal::Button*)]
kdevelop (core): caption change
kdevelop (core): caption change
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
kdevelop (core): [virtual void DDockWindow::removeWidget(QWidget*)]
Qt: Warning: ktorrent: Fatal IO error: client killed
Qt: Warning: QPaintDevice: Cannot destroy paint device that is being painted


I thought it was good mentioning this seeing 2.2.3 is around the corner.
George
Moderator
Posts
5421
Karma
1

Wed Nov 14, 2007 7:46 pm
To late for that now, We will see if we can reproduce this.

Didn't you get a backtrace in the KDE crash dialog ?
stoeptegel
Registered Member
Posts
1075
Karma
0

Wed Nov 14, 2007 7:48 pm
Nope, no crashlog there. It didn't even popup.

EDIT
Just compiled and it did already crash by browsing threw the torrentlist with the cursor. I might have a problem introduced by a leftover of other (half)installations.(i did not remove ktorrent first once while i installed a compiled version)
lucke
Registered Member
Posts
205
Karma
0

Thu Nov 15, 2007 6:46 pm
2.2.3 is very crashy indeed.

Observations:

When clicking on different torrent names few times (sometimes one time is enough) or changing groups, KTorrent 2.2.3 crashes. It doesn't happen with infowidget disabled, it does happen with infowidget enabled with only Status and Files tabs enabled and also with all tabs enabled. The curious thing is that sometimes before the last crash-triggering click formatting of values gets changed (either the decimal part gets cut or it starts showing too much digits). Crashing is fully reproductible here. Backtraces aren't very consistent, though.

Code: Select all
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb5e346f0 (LWP 30829)]
[New Thread 0xb0ad7b90 (LWP 30901)]
[New Thread 0xb2d35b90 (LWP 30848)]
[New Thread 0xb37dcb90 (LWP 30847)]
0xb7fe4410 in __kernel_vsyscall ()
#0  0xb7fe4410 in __kernel_vsyscall ()
#1  0xb6c6a815 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6853034 in _xcb_wait_io () from /usr/lib/libxcb.so.1
#3  0xb6853ea5 in xcb_send_request () from /usr/lib/libxcb.so.1
#4  0xb6cd9931 in _XPutXCBBuffer () from /usr/lib/libX11.so.6
#5  0xb6cd9d1b in _XCBUnlockDisplay () from /usr/lib/libX11.so.6
#6  0xb6c5d6c8 in XRenderSetPictureClipRectangles ()
   from /usr/lib/libXrender.so.1
#7  0xb6916350 in XftDrawSetClipRectangles () from /usr/lib/libXft.so.2
#8  0xb6fad6a2 in QPainter::setClipping () from /opt/qt/lib/libqt-mt.so.3
#9  0xb6fad788 in QPainter::setClipRegion () from /opt/qt/lib/libqt-mt.so.3
#10 0xb70508b6 in qt_format_text () from /opt/qt/lib/libqt-mt.so.3
#11 0xb7050ab6 in QPainter::drawText () from /opt/qt/lib/libqt-mt.so.3
#12 0xb712f599 in QListViewItem::paintCell () from /opt/qt/lib/libqt-mt.so.3
#13 0xb78cd7f4 in KListViewItem::paintCell () from /opt/kde/lib/libkdeui.so.4
#14 0x0808bd91 in KTorrentViewItem::paintCell (this=0x8591de0, p=0xaf844e00,
    cg=@0x8158bd4, column=4, width=84, align=2) at ktorrentviewitem.cpp:353
#15 0xb71291c0 in QListView::drawContentsOffset ()
   from /opt/qt/lib/libqt-mt.so.3
#16 0xb71551f7 in QScrollView::viewportPaintEvent ()
   from /opt/qt/lib/libqt-mt.so.3
#17 0xb78cf96a in KListView::viewportPaintEvent ()
   from /opt/kde/lib/libkdeui.so.4
#18 0xb7156cdc in QScrollView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#19 0xb7125006 in QListView::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#20 0x0808a364 in TorrentView::eventFilter (this=0x8366668,
    watched=0xb7a46b94, e=0x8366668) at ktorrentview.cpp:82
#21 0xb7046d5c in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#22 0xb7046dcb in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#23 0xb707dd7c in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#24 0xb6fe9cca in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#25 0xb6fea873 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#26 0xb76defd2 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#27 0xb6fbce9f in QWidget::repaint () from /opt/qt/lib/libqt-mt.so.3
#28 0xb707cceb in QWidget::repaint () from /opt/qt/lib/libqt-mt.so.3
#29 0xb7121e3e in QListView::updateContents () from /opt/qt/lib/libqt-mt.so.3
#30 0xb737cef6 in QListView::qt_invoke () from /opt/qt/lib/libqt-mt.so.3
#31 0xb79e3ab2 in KListView::qt_invoke () from /opt/kde/lib/libkdeui.so.4
#32 0xb704753d in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#33 0xb70480bd in QObject::activate_signal () from /opt/qt/lib/libqt-mt.so.3
#34 0xb736c679 in QTimer::timeout () from /opt/qt/lib/libqt-mt.so.3
#35 0xb706a13f in QTimer::event () from /opt/qt/lib/libqt-mt.so.3
#36 0xb6fe9cca in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#37 0xb6fea8a6 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#38 0xb76defd2 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#39 0xb6fdf06e in QEventLoop::activateTimers () from /opt/qt/lib/libqt-mt.so.3
#40 0xb6f996d4 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#41 0xb7000190 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#42 0xb7000026 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#43 0xb6fe972f in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#44 0x08090fff in main (argc=1, argv=) at main.cpp:185

Code: Select all
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb5d676f0 (LWP 30919)]
[New Thread 0xb2358b90 (LWP 30991)]
[New Thread 0xb2b59b90 (LWP 30939)]
[New Thread 0xb370fb90 (LWP 30938)]
[KCrash handler]
#6  0xb7f17410 in __kernel_vsyscall ()
#7  0xb693bdc5 in raise () from /lib/libc.so.6
#8  0xb693d6a1 in abort () from /lib/libc.so.6
#9  0xb693511e in __assert_fail () from /lib/libc.so.6
#10 0xb6c0cc14 in _XGetXCBBuffer () from /usr/lib/libX11.so.6
#11 0xb6c0dec3 in _XSend () from /usr/lib/libX11.so.6
#12 0xb6c0e028 in _XEventsQueued () from /usr/lib/libX11.so.6
#13 0xb6bf7662 in XPending () from /usr/lib/libX11.so.6
#14 0xb6ecc35c in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#15 0xb6f33190 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#16 0xb6f33026 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#17 0xb6f1c72f in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#18 0x08090fff in main (argc=1, argv=) at main.cpp:185

Code: Select all
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb5e166f0 (LWP 31011)]
[New Thread 0xb2d17b90 (LWP 31033)]
[New Thread 0xb37beb90 (LWP 31032)]
[KCrash handler]
#6  0xb7fc6410 in __kernel_vsyscall ()
#7  0xb69eadc5 in raise () from /lib/libc.so.6
#8  0xb69ec6a1 in abort () from /lib/libc.so.6
#9  0xb6a22c0c in __libc_message () from /lib/libc.so.6
#10 0xb6a28836 in malloc_printerr () from /lib/libc.so.6
#11 0xb6a2af6d in _int_malloc () from /lib/libc.so.6
#12 0xb6a2c064 in malloc () from /lib/libc.so.6
#13 0xb6be2149 in operator new () from /usr/lib/libstdc++.so.6
#14 0xb6be228d in operator new[] () from /usr/lib/libstdc++.so.6
#15 0xb72e721f in QString::setLength () from /opt/qt/lib/libqt-mt.so.3
#16 0xb72e8c10 in QString::replace () from /opt/qt/lib/libqt-mt.so.3
#17 0xb72eda9d in QString::replace () from /opt/qt/lib/libqt-mt.so.3
#18 0xb76accfe in KLocale::formatNumber () from /opt/kde/lib/libkdecore.so.4
#19 0xb76ad4ef in KLocale::formatNumber () from /opt/kde/lib/libkdecore.so.4
#20 0xb37fa78b in kt::FloatSpinBox::mapValueToText (this=0x885ec98, value=100)
    at floatspinbox.cpp:97
#21 0xb714036f in QSpinBox::sizeHint () from /opt/qt/lib/libqt-mt.so.3
#22 0xb6fc6371 in QWidgetItem::sizeHint () from /opt/qt/lib/libqt-mt.so.3
#23 0xb7012b0a in QGridLayoutData::addHfwData ()
   from /opt/qt/lib/libqt-mt.so.3
#24 0xb701371a in QGridLayoutData::setupHfwLayoutData ()
   from /opt/qt/lib/libqt-mt.so.3
#25 0xb7013ab6 in QGridLayoutData::recalcHFW () from /opt/qt/lib/libqt-mt.so.3
#26 0xb70142e6 in QGridLayoutData::distribute ()
   from /opt/qt/lib/libqt-mt.so.3
#27 0xb7014888 in QGridLayout::setGeometry () from /opt/qt/lib/libqt-mt.so.3
#28 0xb7010b0e in QBoxLayout::setGeometry () from /opt/qt/lib/libqt-mt.so.3
#29 0xb7010b86 in QBoxLayout::setGeometry () from /opt/qt/lib/libqt-mt.so.3
#30 0xb7010b0e in QBoxLayout::setGeometry () from /opt/qt/lib/libqt-mt.so.3
#31 0xb6fc7381 in QLayout::activate () from /opt/qt/lib/libqt-mt.so.3
#32 0xb6fc76da in QLayout::eventFilter () from /opt/qt/lib/libqt-mt.so.3
#33 0xb7028d5c in QObject::activate_filters () from /opt/qt/lib/libqt-mt.so.3
#34 0xb7028dcb in QObject::event () from /opt/qt/lib/libqt-mt.so.3
#35 0xb705fd7c in QWidget::event () from /opt/qt/lib/libqt-mt.so.3
#36 0xb6fcbcca in QApplication::internalNotify ()
   from /opt/qt/lib/libqt-mt.so.3
#37 0xb6fcc873 in QApplication::notify () from /opt/qt/lib/libqt-mt.so.3
#38 0xb76c0fd2 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#39 0xb6fcd201 in QApplication::sendPostedEvents ()
   from /opt/qt/lib/libqt-mt.so.3
#40 0xb6fcd386 in QApplication::sendPostedEvents ()
   from /opt/qt/lib/libqt-mt.so.3
#41 0xb6f7af62 in QEventLoop::processEvents () from /opt/qt/lib/libqt-mt.so.3
#42 0xb6fe2190 in QEventLoop::enterLoop () from /opt/qt/lib/libqt-mt.so.3
#43 0xb6fe2026 in QEventLoop::exec () from /opt/qt/lib/libqt-mt.so.3
#44 0xb6fcb72f in QApplication::exec () from /opt/qt/lib/libqt-mt.so.3
#45 0x08090fff in main (argc=1, argv=) at main.cpp:185


That doesn't happen with 2.2.2.
OisinT
Registered Member
Posts
11
Karma
0

Thu Nov 15, 2007 11:23 pm
I'm having random crashes also... almost everytime you try to remove a torrent it will crash, but it also seems to be random.

Code: Select all
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47724669304096 (LWP 5002)]
[New Thread 1124096336 (LWP 5109)]
[New Thread 1115703632 (LWP 5108)]
[New Thread 1090525520 (LWP 5013)]
[New Thread 1082132816 (LWP 5012)]
0x00002b67c349e0a2 in select () from /lib/libc.so.6
#0  0x00002b67c349e0a2 in select () from /lib/libc.so.6
#1  0x00002b67bf624089 in QEventLoop::processEvents ()
   from /usr/lib/libqt-mt.so.3
#2  0x00002b67bf6967e7 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#3  0x00002b67bf67ed06 in QApplication::enter_loop ()
   from /usr/lib/libqt-mt.so.3
#4  0x00002b67bd28e54a in KIO::NetAccess::enter_loop ()
   from /usr/lib/libkio.so.4
#5  0x00002b67bd2c1a65 in KIO::NetAccess::synchronousRunInternal ()
   from /usr/lib/libkio.so.4
#6  0x00002b67bd2caa54 in KIO::NetAccess::synchronousRun ()
   from /usr/lib/libkio.so.4
#7  0x00000000004381c8 in KTorrentCore::onExit ()
#8  0x0000000000431b05 in KTorrent::queryExit ()
#9  0x00002b67bd8ba3ad in KMainWindow::shuttingDown ()
   from /usr/lib/libkdeui.so.4
#10 0x00002b67bd9d7afd in KMainWindow::qt_invoke ()
   from /usr/lib/libkdeui.so.4
#11 0x00002b67bced493e in KParts::MainWindow::qt_invoke ()
   from /usr/lib/libkparts.so.2
#12 0x0000000000481f0d in DMainWindow::qt_invoke ()
#13 0x0000000000436470 in KTorrent::qt_invoke ()
#14 0x00002b67bf6e1d76 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#15 0x00002b67bf6e2910 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#16 0x00002b67be212fe6 in KApplication::xioErrhandler ()
   from /usr/lib/libkdecore.so.4
#17 0x00002b67c1b029ed in _XIOError () from /usr/lib/libX11.so.6
#18 0x00002b67c1b0417f in ?? () from /usr/lib/libX11.so.6
#19 0x00002b67c1ae16d8 in XDrawRectangle () from /usr/lib/libX11.so.6
#20 0x00002b67bf63a6a8 in QPainter::drawRect () from /usr/lib/libqt-mt.so.3
#21 0x00002aaaade267fb in kt::ChunkBar::drawMoreChunksThenPixels ()
   from /usr/lib/kde3/ktinfowidgetplugin.so
#22 0x00002aaaade26a24 in kt::ChunkBar::drawBarContents ()
   from /usr/lib/kde3/ktinfowidgetplugin.so
#23 0x00002aaaade26d95 in kt::ChunkBar::updateBar ()
   from /usr/lib/kde3/ktinfowidgetplugin.so
#24 0x00002aaaade35b88 in kt::StatusTab::update ()
   from /usr/lib/kde3/ktinfowidgetplugin.so
#25 0x00002aaaade2310d in kt::InfoWidgetPlugin::currentTorrentChanged ()
   from /usr/lib/kde3/ktinfowidgetplugin.so
#26 0x00002b67bc9d4b1e in kt::GUIInterface::notifyViewListeners ()
   from /usr/lib/libktorrent-2.2.2.so
#27 0x000000000043659b in KTorrent::qt_invoke ()
#28 0x00002b67bf6e1d76 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#29 0x00002b67bf6e2910 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#30 0x00002b67bd9eec11 in KAction::qt_invoke () from /usr/lib/libkdeui.so.4
#31 0x00002b67bf6e1d76 in QObject::activate_signal ()
   from /usr/lib/libqt-mt.so.3
#32 0x00002b67bd905e6b in KToolBarButton::buttonClicked ()
   from /usr/lib/libkdeui.so.4
#33 0x00002b67bd906118 in KToolBarButton::mouseReleaseEvent ()
   from /usr/lib/libkdeui.so.4
#34 0x00002b67bf7164c4 in QWidget::event () from /usr/lib/libqt-mt.so.3
#35 0x00002b67bd96f556 in KToolBarButton::event () from /usr/lib/libkdeui.so.4
#36 0x00002b67bf67d2a2 in QApplication::internalNotify ()
   from /usr/lib/libqt-mt.so.3
#37 0x00002b67bf67f400 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#38 0x00002b67be2ed248 in KApplication::notify ()
   from /usr/lib/libkdecore.so.4
#39 0x00002b67bf60fd84 in QApplication::sendSpontaneousEvent ()
   from /usr/lib/libqt-mt.so.3
#40 0x00002b67bf60e98e in QETWidget::translateMouseEvent ()
   from /usr/lib/libqt-mt.so.3
#41 0x00002b67bf60cb5a in QApplication::x11ProcessEvent ()
   from /usr/lib/libqt-mt.so.3
#42 0x00002b67bf62343e in QEventLoop::processEvents ()
   from /usr/lib/libqt-mt.so.3
#43 0x00002b67bf6967e7 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#44 0x00002b67bf6965ef in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#45 0x00002b67bf67ed68 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#46 0x000000000044e784 in main ()
George
Moderator
Posts
5421
Karma
1

Sun Nov 18, 2007 1:23 pm
My guess is that it is probably the threaded update of the filelist (should have never accepted that patch)
George
Moderator
Posts
5421
Karma
1

Sun Nov 18, 2007 2:00 pm
OK, try the latest SVN version (738262), crash should be gone now. (Note anonsvn servers can be a bit behind on the regular SVN servers, so make sure you have at least revision 738262)
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Nov 18, 2007 6:40 pm
Crash is gone now :)
jdong
Registered Member
Posts
358
Karma
0

Sun Nov 18, 2007 7:07 pm
Yeah, I've verified the crash to be fixed with the QTimers version too. Ubuntu packaging will be uploaded tonight to reflect that.
George
Moderator
Posts
5421
Karma
1

Mon Nov 19, 2007 6:54 pm
That's good to hear, the fix will be part of 2.2.4, which is going to be released tomorrow.


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]