Summary: | 100% cpu when network goes down (ping timeout) | ||
---|---|---|---|
Product: | [Applications] konversation | Reporter: | Maxime Gamboni <tendays-kde> |
Component: | general | Assignee: | Konversation Developers <konversation-devel> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | hein, jk, klondike+kde, yhager |
Priority: | NOR | Keywords: | triaged |
Version: | 1.0.1 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Maxime Gamboni
2008-06-11 05:57:29 UTC
It would be cool if you could test the SVN version* for whether that problem still occurs for you there, as the connection management- / reconnect-related code has been rewritten. SVN is presently in freeze for an impending release, so it's stable otherwise. * = http://konversation.kde.org/wiki/SVN I installed the svn version and the bug still seems to be there. The "about" window now says Konversation 1.0.1+ #3233 (using KDE 3.5.8). I observed the behaviour more carefully now: 1. I'm logged in an irc channel and the connectivity goes down (pinging the server reports "destination host unreachable") 2. After a while, the latency display in Konversation starts counting seconds 3. Every now and then the status bar changes to say "no answer from server <server name> for more than X time" (for 5, 35, and 65 seconds) 4. When the latency counter hits 128 seconds, the message "[error] Closing Link: <my handle and ip> (Ping timeout)" appears, and the cpu usage goes up to 100%. The list of people being connected is still visible. 5. The latency counter keeps counting, and the status bar keeps updating the "no answer" message (for 140, 170 and 175 seconds). All this time, cpu usage is at 100%. 6. When the latency counter hits 180, the message "konversation: Connection broken (Socket fd -1) 0!" is sent to stdout (maybe stderr), the nick list on the right is blanked and cpu usage is normal again. Thanks. Interesting - thank you very much for your detailed report; we're looking into it. I'm having the same problem here on vanilla 1.0.1. In particular, it seems to be specific to my connection to irc.oftc.net, to which I connect over SSL. Whenever the connection to oftc times out (eg, after bringing the laptop home from work), CPU goes to 100%. I can easily reproduce: 1) Start connection to ircs.oftc.net:9999 (with SSL) 2) The 'invalid SSL certificate dialog' will appear 3) Wait a minute or so before clicking 'accept' on dialog 4) Registration with IRC server will time out: [error] Closing Link: ppp-xxx.internode.on.net (Registration timed out) [Info] Connected; logging in... 5) CPU hits 100% Occasionally, it'll do this while the dcop server is waiting on a read() from konversation's dcop socket; this blocks all KDE apps, including the window manager. The only way out is to change to a different VT and kill konversation :( IIRC we tracked down an unfixable blocking issue inside kdelibs/KSSL around timeouts and reconnect earlier this year, although I unfortunately lost my IRC logs of that dev discussion. Unfixable in the sense that we won't rearchitect the KDE 3 codebase to be multithreaded at this point, and there was no other feasible way. That said, iirc it wasn't a permanent block but a minute-long wait of some kind. Since KSSL is gone for our purposes in KDE 4, and Qt 4 makes multi-threading generally a lot easier and more reaslistic to use, things are likely to change in the next version. Maybe someone else can dig up the IRC logs about the KSSL blocking issue and add them here. (In reply to comment #5) > That said, iirc it wasn't a permanent block but a minute-long wait of some > kind. I've re-tested, and after 20 minutes it's still spinning... I'm getting similar results (I CAN connect, but after a while connection is lost, and CPU reaches high, until I close it - much more than a minute). I've just tried net-irc/konversation-svn (Gentoo), and I used irc.oftc.net:6697 (SSL). When I do not use SSL connection, all works fine. Does this still happen with newer versions of Konversation? Yes it does happen with Konversation 1.5.1 and KDE 4.14.3 When connecting to znc using SSL with a long buffer or losing the connection the CPU usage gets really high (also when connecting messages are received really slowly, I suspect because of this bug). Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |