Serious kdecore problems

Carsten Pfeiffer carpdjih at sp.zrz.tu-berlin.de
Fri Oct 3 11:46:37 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----

On Friday 03 October 2003 10:10, George Staikos wrote:

Hi,

>    Changing widget styles, among other things, causes weird random crashes
> in konqueror or kicker (at least) that always have a similar backtrace.
> Sometimes the crash will just happen for no apparent reason, such as moving
> the mouse across the screen and having it run overtop of a konqueror
> window. The crashes most often have this in the backtrace:

never seen this....

> Meanwhile what else am I trying?  I read through cvs history and noticed a
> change that could remotely be an influence in some way.  In kinstance.cpp
> near line 200 delayed iconset loading was enabled in the not-too-distant
> past.  I tried disabling this and I have been completely unable to
> reproduce the crashes since.  Does anyone have some insight into this? 
> Carsten?  Of course I'm not declaring this to be the cause of the problems
> because they are so unpredictable, but normally I can trigger a crash
> fairly easily given this much time.  I'm getting suspicious that this is
> what triggered the start of these crashes.

The delayed iconset loading was added by Lubos quite some time ago. My commit 
to KInstance (together with kiconloader.cpp, rev. 206) only changed the 
default KIconLoader to not use delayed iconset loading. Only KIconLoaders 
created by a KInstance do this. 

The reason for this is that some people not knowing about 
KGlobal::iconLoader() create a temporary iconloader to load icons. Delayed 
loading via KIconFactory crashes in that case, as the iconloader is already 
destroyed and the factory therefore uses a dangling pointer.

Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----

iQEVAwUBP31Tj6WgYMJuwmZtAQFi7wgAjQmPiO12BBURrCZhN1mUOc5he8TajSso
U5v9mifd1F/0c/hvy/diDt7wTHZOwHcBYtWEuMViVfVUHPpwW3f8SrZvz7uzQIxt
NQzeMOkKKQBJWPZ27nE0s4TI2oRCDrycRQ684uUmV5Lpa7caDLPVCtS5Ei+LSxN2
uagnADzFaUJidpjU5ayJY6SsBTn3WOBOydjlRyk23Td6Lft16/8ii7flQRUTUpIi
hcbbzMY/gTwc/gvI1GBRwM1sVwvYwG6YHQ/+h6UxaGBu/bWtbXqfAPxLMAHwHMUb
167klfAPdg+95I0oCO+YIz2nwj02WAP1/DejnZ5/Fw0bLf+ls4VA1Q==
=LpcO
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list