Need suggestion on how to fix the common crash in plasma-desktop (kdelibs related)

Lamarque V. Souza lamarque at
Wed Mar 21 01:31:57 GMT 2012


	There is a crash in WeatherEngine (kde-workspace) triggered by the fact 
that Plasma::DataEngineManager::self() (kdelib) is invalid when 
plasma-{desktop,device} are exiting. WeatherEngine::~WeatherEngine() calls 
WeatherEngine::unloadIons(), which tries to use the invalid 
Plasma::DataEngineManager::self(). The crash only happens if there is 
something using WeatherEngine when plasma-{desktop,device} exit, of course. 
There are several bug report about this crash:

	And counting. The reports were closed as upstrem but think we can 
prevent the crash by adding a method to Plasma::DataEngineManager to check if 
it is still valid. Using "if (Plasma::DataEngineManager::self()) {}" also 
triggers the crash because of the way Plasma::DataEngineManager::self() is 

	What do you think about adding a Plasma::DataEngineManager::valid() 

OBS: That crash is in WeatherEngine since it entered kde-workspace in 2009.

Lamarque V. Souza
KDE's Network Management maintainer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list