Bug 49191 - kweather locks up kicker w/o internet connection
Summary: kweather locks up kicker w/o internet connection
Status: RESOLVED FIXED
Alias: None
Product: kweather-kde3
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: geiseri
URL:
Keywords:
: 50375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-10-15 16:32 UTC by Timo Ruppell
Modified: 2003-04-25 17:17 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Ruppell 2002-10-15 16:32:47 UTC
Version:            (using KDE KDE 3.0.8)
Installed from:    SuSE RPMs
OS:          Linux

When KDE is started without an internet connection (as happens with my laptop at home), kweather locks up the kicker making it unresponsive. The "unknown host ..." popup respawns ad infinitum and kweather starts using up ~100% of CPU time.

The only way to stop it is to kill -9 the kicker and restart it. Clicking the kweather applet after this makes the kicker lock up again.

I run SuSE 8.0/Linux 2.4.18, if you need systen logs to track/reproduce this bug, just ask.
Comment 1 Hans Verkuil 2002-10-31 23:12:33 UTC
Exactly the same problem occurs in KDE 3.0.9 (compiled from source). 
Just disconnect from the internet and start kde to reproduce. This bug can 
be very annoying if the weather service kweather uses is offline (as 
happened a few days ago) and you'll end up with a broken kicker and 
wasted CPU cycles... 
Comment 2 jstuart 2002-11-07 21:07:54 UTC
This just happened to me.  Weather.noaa.org is apparently offline right now and I spent about five minutes attempting to STOP kweather from causing kicker to freeze on me and not use 100% CPU.  This is using KDE 3.1 RC 2 compiled from source.  I finally was able to kill the kweatherservice process and that stopped the freezing/100% CPU.  
Comment 3 John Firebaugh 2002-11-09 06:47:38 UTC
*** Bug 50375 has been marked as a duplicate of this bug. ***
Comment 4 Michael Hoodes 2003-01-04 21:57:52 UTC
This same condition has happened to me with a variety of Debian releases and  
releases of KDE from 2.x to 3.1 RC 6 Kweather 2.10  which is my current platform.  
My ICAO location code KSEA is not available 2-3 times a year.  When that  
happens, KDE Error messages keep getting posted, kicker and responsiveness is  
broken and swapper is filling up!  I was unable to stop kweatherservice from  
either Ksysguard or a command session kill -9 pid or killall kweatherservice. 
This appears to be the same problem as 51936.  
Comment 5 Thorsten Schnebeck 2003-01-05 19:20:59 UTC
Can this bug get a higher priority (normal->grave)? 
 
I still get this bug in KDE-3.1pre. Ok, kweather is not that important program, but is will 
be part of the next kdetoys-release and if you use it there is a good chance to freeze 
your desktop.  
 
Bye 
 
  Thorsten 
Comment 6 bugs.kde.org 2003-01-29 21:18:50 UTC
Seeing this bug in KDE 3.1 on SuSE:
- popup shows up after KDE starts saying host not found
- kicker does not respond to mouse clicks any more

Very annoying on a laptop!

Workaround:
- kill kicker (xkill does a good job)
- edit your .kde/share/config/kickerrc and remove the applet manually
- start kicker from the shell
Comment 7 Christian Loose 2003-01-30 22:38:17 UTC
Subject: kdetoys/kweather

CVS commit by cloose: 

Bugfix #49191: Prevent KWeather from looping and freezing Kicker when
not connected to the internet.

Could someone please backport this?

CCMAIL: 49191-done@bugs.kde.org

Loop:
------
WeatherLib::slotCopyDone()
-> emit WeatherLib::fileUpdate()
-> WeatherService::updated()
-> emit WeatherService::fileUpdate()
-> kweather::refresh()
...
-> WeatherLib::pressure()
-> WeatherLib::findData()
-> WeatherLib::getData()
-> WeatherLib::slotCopyDone()


  M +2 -1      weatherlib.cpp   1.52


--- kdetoys/kweather/weatherlib.cpp  #1.51:1.52
@@ -773,4 +773,5 @@ void WeatherLib::slotCopyDone(KIO::Job* 
                         d->downloading = false;
                         delete d->target;
+                        if( !job->error() )
                         emit  fileUpdate(QString(d->reportLocation));
                         d->updated = true;


Comment 8 Pascal Cavy 2003-02-05 10:47:31 UTC
I don't know if it's a consequence of the bugfix, but now each time I start KDE (my 
internet connexion is on) 
 
1. kweather crashes  <<<<<<<<<< 
2. kicker is OK 
3. kweather is started as if no conexion was available 
4. if I select update now on kweather it works 
 
 
Comment 9 Pascal Cavy 2003-02-05 10:50:40 UTC
Forgot to mention on comment #8 : 
kdetoys-3.1-3mdk 
kdebase-3.1-17mdk 
kdelibs-3.1-8mdk 
 
Comment 10 jstuart 2003-03-28 08:41:15 UTC
Umm whoever marked this as resolved is VERY VERY VERY VERY WRONG!  This is STILL
broken in kde 3.1.1!
Comment 11 Rex Dieter 2003-03-28 16:15:45 UTC
Dunno about you, but I have confirmations from several people, who previously experienced 
this problem, that as of kde-3.1.1, kicker does *not* lock, though this is/was on redhat. 
Comment 12 jstuart 2003-04-25 17:17:34 UTC
Ok, sorry, it wasn't working properly in 3.1 but I just got the pop up saying
"Weather service is not available" in 3.1.1.  (IE never did have the problem
since I upgraded to 3.1.1 till just now. :))  And kicker and rest of system
behaved properly.

So yes, it's fixed.