[KPhotoAlbum] Compile failure with gcc-4.1.1

Christophe Choumert christophe.choumert at m4x.org
Wed Aug 9 03:20:58 BST 2006


On Monday 07 August 2006 02:22, Christophe Choumert wrote:
> It worked, thanks !
> There were just missing include guards in ImageManager/RawImageDecoder.h
> and then compilation finished. I do have a segfault though, which doesn't
> happen with 2.2. I just need to open KPA and click on Locations. It
> crashes with certain categories, not with others - actually, only with the
> ones that contain subgroups. I verified that by adding a subgroup to a
> category that was fine ; then when I tried to select it it crashed.

Ok, I finally found the problem :
when creating a group, a member keyword of the same name is created. And I 
used to assign explicitly this keyword to the group (or did KPA do it by 
itself around 2.1 days ?), which is useless, and with the new code, actually 
causes a crash - probably due to an infinite recursion.

So a quick sed later
[ sed -r -e '/group-name="(.*)" .* member="\1"/d' index.xml > 
index.xml.pruned ]
and things are perfect.

Still, a quick check to work around this case is probably worthwhile. It 
seems to happen in DB/Category.cpp (cf. the backtrace in the other mail), 
but I don't understand the code well enough to modify it myself.

Thanks,
Christophe Choumert




More information about the Kphotoalbum mailing list