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

Freeze in tray

Tags: None
(comma "," separated)
User avatar
kriko
Registered Member
Posts
164
Karma
0
OS

Freeze in tray

Wed Sep 01, 2010 7:57 pm
I've seen this trough every stable and development version - ktorrent stays in system tray and cannot be restored again by left click.
Meanwhile right click still works, but menu takes quite a while to show up. When it shows up, it is without icons and kdeinit [plasma-desktop] uses
a lot of cpu until you click somewhere else on screen so the menu closes. Opening submenus also takes quite some time (~10 seconds).

Anyone else noticed something similar? How can I get some usefull information in such case?
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Thu Sep 02, 2010 7:48 pm
I haven't seen this behavior myself.

Next time you see this you can do this to show ktorrent:

qdbus org.ktorrent.ktorrent /ktorrent/MainWindow_1 show

If that just pops up ktorrent, without a problem, that the problem must be in the system tray implementation.
Tom Brown
Registered Member
Posts
27
Karma
0

Re: Freeze in tray

Mon Sep 20, 2010 6:55 pm
I've noticed a behavior in which the application interface will stop responding if you click "stop all torrents", go to another KDE desktop, and then come back. The application frame will re-draw but the rest of the interface will hang.

Maybe this is what kriko is referring to?
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Tue Sep 21, 2010 6:54 pm
And if you only press stop all torrents ?

If KT remains stuck do the following:

killall -11 ktorrent

This will result in the KDE crash dialog appearing, the generated backtrace would be interesting, as that should reveal where the GUI thread is stuck.
Tom Brown
Registered Member
Posts
27
Karma
0

Re: Freeze in tray

Wed Sep 22, 2010 12:39 pm
It also does it when I "suspend torrents". I just re-created the issue and sent a crash report.

Would you like me to post the call stack here?
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Wed Sep 22, 2010 4:59 pm
I haven't gotten a new crash report yet
Tom Brown
Registered Member
Posts
27
Karma
0

Re: Freeze in tray

Thu Sep 23, 2010 2:10 am
I sent one in. I'll send another.

In the mean time:

Code: Select all
Application: KTorrent (ktorrent), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4c96710 (LWP 16387))]

Thread 5 (Thread 0xb1effb70 (LWP 16389)):
#0  0xb77e7424 in __kernel_vsyscall ()
#1  0xb69b73fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6a243da in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6a20982 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#4  0xb774c7ba in utp::UTPServer::onAccepted(utp::Connection*) () from /usr/lib/libktorrent.so.2
#5  0xb76a6bdf in utp::UTPServer::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.2
#6  0xb6b1ceba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#7  0xb6b2bf9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#8  0xb76a6b03 in utp::UTPServer::accepted(utp::Connection*) () from /usr/lib/libktorrent.so.2
#9  0xb774daa2 in utp::UTPServer::syn(utp::PacketParser const&, QByteArray const&, net::Address const&) () from /usr/lib/libktorrent.so.2
#10 0xb774dc77 in utp::UTPServer::handlePacket(QByteArray const&, net::Address const&) () from /usr/lib/libktorrent.so.2
#11 0xb774bd63 in utp::UTPServer::readPacket(int) () from /usr/lib/libktorrent.so.2
#12 0xb76a6bbf in utp::UTPServer::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.2
#13 0xb6b1ceba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#14 0xb6b2bf9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0xb6b763f3 in QSocketNotifier::activated(int) () from /usr/lib/libQtCore.so.4
#16 0xb6b30c67 in QSocketNotifier::event(QEvent*) () from /usr/lib/libQtCore.so.4
#17 0xb6085f14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb608a0fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0x080770a7 in ?? ()
#20 0xb6b16ecb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0xb6b41857 in ?? () from /usr/lib/libQtCore.so.4
#22 0xb51bcf92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0xb51bd770 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0xb51bda24 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0xb6b41e7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#26 0xb6b16119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#27 0xb6b1638a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#28 0xb6a2288d in QThread::exec() () from /usr/lib/libQtCore.so.4
#29 0xb775032e in utp::UTPServerThread::run() () from /usr/lib/libktorrent.so.2
#30 0xb6a2532e in ?? () from /usr/lib/libQtCore.so.4
#31 0xb69b2e60 in start_thread () from /lib/libpthread.so.0
#32 0xb5db620e in clone () from /lib/libc.so.6

Thread 4 (Thread 0x9dcfab70 (LWP 16413)):
#0  0xb77e7424 in __kernel_vsyscall ()
#1  0xb5dabe26 in poll () from /lib/libc.so.6
#2  0xb76c45e6 in net::Poll::poll(int) () from /usr/lib/libktorrent.so.2
#3  0xb76c0dc2 in ?? () from /usr/lib/libktorrent.so.2
#4  0xb76c0eaf in ?? () from /usr/lib/libktorrent.so.2
#5  0xb76c1148 in ?? () from /usr/lib/libktorrent.so.2
#6  0xb6a2532e in ?? () from /usr/lib/libQtCore.so.4
#7  0xb69b2e60 in start_thread () from /lib/libpthread.so.0
#8  0xb5db620e in clone () from /lib/libc.so.6

Thread 3 (Thread 0x9d4f9b70 (LWP 16414)):
#0  0xb77e7424 in __kernel_vsyscall ()
#1  0xb69b77a4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6a250d1 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6a25213 in QThread::msleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb76c0882 in ?? () from /usr/lib/libktorrent.so.2
#5  0xb76c1148 in ?? () from /usr/lib/libktorrent.so.2
#6  0xb6a2532e in ?? () from /usr/lib/libQtCore.so.4
#7  0xb69b2e60 in start_thread () from /lib/libpthread.so.0
#8  0xb5db620e in clone () from /lib/libc.so.6

Thread 2 (Thread 0x9ccf8b70 (LWP 16415)):
#0  0xb77e7424 in __kernel_vsyscall ()
#1  0xb69b73fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6a259cf in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb76c4147 in ?? () from /usr/lib/libktorrent.so.2
#4  0xb6a2532e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb69b2e60 in start_thread () from /lib/libpthread.so.0
#6  0xb5db620e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4c96710 (LWP 16387)):
[KCrash Handler]
#7  0xb77e7422 in __kernel_vsyscall ()
#8  0xb69b73fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#9  0xb6a243da in ?? () from /usr/lib/libQtCore.so.4
#10 0xb6a20962 in QMutex::lock() () from /usr/lib/libQtCore.so.4
#11 0xb774cf03 in utp::UTPServer::detach(utp::UTPSocket*, utp::Connection*) () from /usr/lib/libktorrent.so.2
#12 0xb775453c in utp::UTPSocket::reset() () from /usr/lib/libktorrent.so.2
#13 0xb7754875 in utp::UTPSocket::~UTPSocket() () from /usr/lib/libktorrent.so.2
#14 0xb77548c2 in utp::UTPSocket::~UTPSocket() () from /usr/lib/libktorrent.so.2
#15 0xb76bc2fa in ?? () from /usr/lib/libktorrent.so.2
#16 0xb76bc352 in ?? () from /usr/lib/libktorrent.so.2
#17 0xb76c6db7 in mse::StreamSocket::~StreamSocket() () from /usr/lib/libktorrent.so.2
#18 0xb76c6e52 in mse::StreamSocket::~StreamSocket() () from /usr/lib/libktorrent.so.2
#19 0xb76f3cfc in bt::ServerInterface::newConnection(mse::StreamSocket*) () from /usr/lib/libktorrent.so.2
#20 0xb774c8db in utp::UTPServer::handlePendingConnections() () from /usr/lib/libktorrent.so.2
#21 0xb774c980 in utp::MainThreadCall::handlePendingConnections() () from /usr/lib/libktorrent.so.2
#22 0xb76a6981 in utp::MainThreadCall::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libktorrent.so.2
#23 0xb6b1ceba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#24 0xb6b26846 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#25 0xb6b297fe in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#26 0xb6085f14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#27 0xb608a0fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0x080770a7 in ?? ()
#29 0xb6b16ecb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#30 0xb6b1a9c1 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#31 0xb6b1abad in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#32 0xb6b4198f in ?? () from /usr/lib/libQtCore.so.4
#33 0xb51bcf92 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0xb51bd770 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0xb51bda24 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0xb6b41e7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#37 0xb61321b5 in ?? () from /usr/lib/libQtGui.so.4
#38 0xb6b16119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#39 0xb6b1638a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb6b1ac6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#41 0xb6083637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#42 0x08066ec1 in _start ()
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Fri Sep 24, 2010 9:30 am
That deadlock was fixed in libktorrent version 1.0.2
Tom Brown
Registered Member
Posts
27
Karma
0

Re: Freeze in tray

Sat Sep 25, 2010 3:49 am
ktorrent 4.0.3-1
libktorrent 1.0.3-1
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Sat Sep 25, 2010 8:30 am
Looking closer at the code, I think I see what is going on.
George
Moderator
Posts
5421
Karma
1

Re: Freeze in tray

Sat Sep 25, 2010 9:00 am
It was a rather subtle deadlock, but it is fixed now
thenewday007
Registered Member
Posts
1
Karma
0

Re: Freeze in tray

Mon Oct 10, 2011 7:09 am
Hello,everybody.I am a newer here.I like to make friends.If u are the people that like to make friends too,just contact me.Haha.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]