[Digikam-devel] Strange crashes

Andi Clemens andi.clemens at gmx.net
Thu May 21 20:24:00 BST 2009


Dolphin / gwenview doesn't seem to create the thumbs in /tmp first, I watched 
the folder but no files were generated. They seem to go immediately into 
.thumbnails.

Andi

On Thursday 21 May 2009 20:41:20 Andi Clemens wrote:
> I have removed KDEmod (a modular and modified version of Qt and KDE for
> Archlinux) and installed vanilla packages now (puh but I don't like this..
> so big packages).
> Anyway I need to setup my system here again, and then I will test this.
>
> Andi
>
> On Thursday 21 May 2009 19:40:47 Gilles Caulier wrote:
> > Well, the question is why it's work with dolphin and konqueror and not
> > in digiKam, as Andi said in a private mail. Code relevant is here :
> >
> > 1/ Dolphin and konqueror use it from a kioslave :
> >
> > http://lxr.kde.org/source/KDE/kdebase/runtime/kioslave/thumbnail/thumbnai
> >l. cpp#739
> >
> > 2/ digiKam from a separated thread:
> >
> > http://lxr.kde.org/source/extragear/graphics/digikam/libs/threadimageio/t
> >hu mbnailcreator.cpp#268
> >
> > Possible issue : ::rename is not re-entrant and crash digiKam
> > (multi-threading)
> >
> > Question : if i remember, Gwenview use also multithreading to render
> > thumbs. Look like there is an option in setup to clean up
> > ~/.thumbnails dir when program session is down. Andi, can you test
> > with Gwenview on your computer ?
> >
> > Gilles
> >
> > 2009/5/21 Matthias Welwarsky <matze at welwarsky.de>:
> > > On Thursday 21 May 2009 18:40:29 Marcel Wiesweg wrote:
> > >> > Have you deleted / renamed your ~/.thumbnails folder?
> > >> > Already generated thumbnails from the past (before the KDE::rename
> > >> > patches) are working perfectly fine here, too.
> > >> >
> > >> > What happens when you rename the thumbnails folder so that all
> > >> > thumbs are really generated new?
> > >> >
> > >> > I always get
> > >> > digikam(7372)/digikam (core) Digikam::ThumbnailCreator::load: Cannot
> > >> > rename thumb file (
> > >> > "/tmp/kde-andi/415adced8a4644d971d5c6706c2abc90-digikam- wS7372.png"
> > >> > ) digikam(7372)/digikam (core) Digikam::ThumbnailCreator::load: to (
> > >> > "/home/andi/.thumbnails/large/415adced8a4644d971d5c6706c2abc90.png"
> > >> > )...
> > >> >
> > >> > My /tmp is on my root partition (ext4), /home is reiserfs.
> > >> > I also changed /tmp to be the tmpfs (so that it is a ramdisk
> > >> > actually), but still the same error.
> > >>
> > >> I can confirm this. New thumbnails are not stored. The error messages
> > >> as above appear. /tmp is on a different partition than /home, both
> > >> ext4.
> > >
> > > Ah. So the rename is not working across file systems :-) Maybe because
> > > it uses rename(2)? Take a look at the man page.
> > >
> > > _______________________________________________
> > > Digikam-devel mailing list
> > > Digikam-devel at kde.org
> > > https://mail.kde.org/mailman/listinfo/digikam-devel
> >
> > _______________________________________________
> > Digikam-devel mailing list
> > Digikam-devel at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-devel
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel




More information about the Digikam-devel mailing list