[Digikam-users] Redraw Problems

Paul Waldo paul at waldoware.com
Sat Jun 27 21:39:41 BST 2009


Here is another data point.  The flickering increases as I move the mouse over album folders.  When I move my mouse over the thumbnails themselves, the flickering increases greatly: tens of times a second!

Also, the strace output shows a great deal of polling, even when the application is idle, like this:

read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}, {fd=13, events=POLLIN}, {fd=49, events=POLLIN}, {fd=50, events=POLLIN}, {fd=51, events=POLLIN}, {fd=52, events=POLLIN}, {fd=53, events=POLLIN}, {fd=41, events=POLLIN}, {fd=43, events=POLLIN}, {fd=46, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}], 16, 199) = 0 (Timeout)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN}, {fd=8, events=POLLIN}, {fd=9, events=POLLIN}, {fd=7, events=POLLIN}, {fd=10, events=POLLIN}, {fd=13, events=POLLIN}, {fd=49, events=POLLIN}, {fd=50, events=POLLIN}, {fd=51, events=POLLIN}, {fd=52, events=POLLIN}, {fd=53, events=POLLIN}, {fd=41, events=POLLIN}, {fd=43, events=POLLIN}, {fd=46, events=POLLIN}, {fd=47, events=POLLIN}, {fd=48, events=POLLIN}], 16, 0) = 0 (Timeout)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)




There are at least 5 per second.  When I see the very fast flicker, the strace changes character a bit:

read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], [7], NULL, NULL)         = 1 (out [7])
writev(7, [{"(\0\4\0\\\2\0\0\241\4@\4\30\1D\2"..., 16}, {NULL, 0}, {""..., 0}], 3) = 16
select(8, [7], [], NULL, NULL)          = 1 (in [7])
read(7, "\1\1(\217\0\0\0\0\0\0\0\0\365\0\272\0`\324}\0\0\0\0\0(\0\0\0\0\0\0\0"..., 4096) = 32
read(7, "\6\0(\217\253\205\257\6\\\2\0\0\241\4@\4\0\0\0\0\27\1F\2\364\0\274\0\20\0\1\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], [7], NULL, NULL)         = 1 (out [7])
writev(7, [{"(\0\4\0\\\2\0\0\241\4@\4\27\1F\2"..., 16}, {NULL, 0}, {""..., 0}], 3) = 16
select(8, [7], [], NULL, NULL)          = 1 (in [7])
read(7, "\1\1)\217\0\0\0\0\0\0\0\0\364\0\274\0`\324}\0\0\0\0\0(\0\0\0\0\0\0\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], [7], NULL, NULL)         = 1 (out [7])
writev(7, [{"(\0\4\0\\\2\0\0\241\4@\4\30\1E\2"..., 16}, {NULL, 0}, {""..., 0}], 3) = 16
select(8, [7], [], NULL, NULL)          = 1 (in [7])
read(7, "\1\1*\217\0\0\0\0\0\0\0\0\365\0\273\0`\324}\0\0\0\0\0(\0\0\0\0\0\0\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, "\6\0*\217\265\205\257\6\\\2\0\0\241\4@\4\0\0\0\0\27\1G\2\364\0\275\0\20\0\1\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], [7], NULL, NULL)         = 1 (out [7])
writev(7, [{"(\0\4\0\\\2\0\0\241\4@\4\27\1G\2"..., 16}, {NULL, 0}, {""..., 0}], 3) = 16
select(8, [7], [], NULL, NULL)          = 1 (in [7])
read(7, "\1\1+\217\0\0\0\0\0\0\0\0\364\0\275\0`\324}\0\0\0\0\0(\0\0\0\0\0\0\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)
select(8, [7], [7], NULL, NULL)         = 1 (out [7])
writev(7, [{"(\0\4\0\\\2\0\0\241\4@\4\27\1F\2"..., 16}, {NULL, 0}, {""..., 0}], 3) = 16
select(8, [7], [], NULL, NULL)          = 1 (in [7])
read(7, "\1\1,\217\0\0\0\0\0\0\0\0\364\0\274\0`\324}\0\0\0\0\0(\0\0\0\0\0\0\0"..., 4096) = 32
read(7, 0x15b24f4, 4096)                = -1 EAGAIN (Resource temporarily unavailable)


Notice that we have the polling, but we also have the writing.  I have no idea what it is doing, but it smells fishy that simply moving the mouse over a thumbnail generates tens of I/O requests...

I have a feeling that this related to changing an Album from local to a network album.  You may remember that I had a samba mounted album that was local, but then re-imported it as a network album.  I then deleted the original local album.  When I did that, that's when I started to see the flickering.  I'll try the DB cleanup script and let you know how it goes.  I can also post a video capture of the flickering if that will help.

Paul


----- "Paul Waldo" <paul at waldoware.com> wrote:

> Nope, no difference.
> 
> I tried an experiment, though.  I used strace on digikam.  When an
> empty album (My Album) was selected, there are no thumbs to blink. 
> strace is fairly quiet; it is polling for probably what is my Network
> Album that is unavailble.  Once I select an album with thumbnails, the
> blinking starts and I see a huge amount of activity from strace.  It
> appears that digikam is trying to write something to the same file
> handle it was checking before.
> 
> Daniel, are you using an offline Album by any chance?
> 
> Paul
> ----- "Gilles Caulier" <caulier.gilles at gmail.com> wrote:
> 
> > Paul, try invert : -DENABLE_THUMBS_DB=OFF
> >
> > ... because DB thumb is enabled by default now.
> >
> > Gilles
> >
> > 2009/6/26 Paul Waldo <paul at waldoware.com>:
> > > Done.  In essence, no change with -DENABLE_THUMBS_DB=ON
> > >
> > > Paul
> > > ----- "Gilles Caulier" <caulier.gilles at gmail.com> wrote:
> > >
> > >> Please take a look at this entry
> > >>
> > >> https://bugs.kde.org/show_bug.cgi?id=193489
> > >>
> > >> and post your investiguations in this file.
> > >>
> > >> Gilles Caulier
> > >>
> > >> 2009/6/26 Daniel Larsson <opersonlig_postadress at hotmail.com>:
> > >> > I alsoe get this behavior when opening folders. Never thought
> > much
> > >> about it
> > >> > as it settles after a minute or two depending on the amount of
> > files
> > >> in the
> > >> > folder.
> > >> > I use Ubuntu 9.04 and digiKam 0.10.0.
> > >> >  Havent noticed this behaviour on my Acer with S3 graphichs
> only
> > on
> > >> the Asus
> > >> > with nVidia.
> > >> >
> > >> > Trying to be helpful
> > >> > D.L.
> > >> >
> > >> >> From: marcel.wiesweg at gmx.de
> > >> >> To: digikam-users at kde.org
> > >> >> Date: Thu, 25 Jun 2009 22:28:40 +0200
> > >> >> Subject: Re: [Digikam-users] Redraw Problems
> > >> >>
> > >> >>
> > >> >> > • Occasionally thumbnails will blink at me, as if they are
> > being
> > >> >> > continuously redrawn. CPU usage shoots through the roof. I
> > have
> > >> noticed
> > >> >> > this with the Album icons, but I see it most with Album
> > >> thumbnails
> > >> >>
> > >> >> There is a bug report for this, but I could never reproduce
> it.
> > >> >> Which digikam version are you using?
> > >> >> What do you do to restore normal behavior, given you say it
> > happens
> > >> all
> > >> >> the
> > >> >> time after restart?
> > >> >> Any console output?
> > >> >>
> > >> >> Marcel
> > >> >> _______________________________________________
> > >> >> Digikam-users mailing list
> > >> >> Digikam-users at kde.org
> > >> >> https://mail.kde.org/mailman/listinfo/digikam-users
> > >> >
> > >> > ________________________________
> > >> > Gör personlighetstestet på MSN Dejting, se vem du passar ihop
> > med!
> > >> MSN
> > >> > Dejting
> > >> > _______________________________________________
> > >> > Digikam-users mailing list
> > >> > Digikam-users at kde.org
> > >> > https://mail.kde.org/mailman/listinfo/digikam-users
> > >> >
> > >> >
> > >> _______________________________________________
> > >> Digikam-users mailing list
> > >> Digikam-users at kde.org
> > >> https://mail.kde.org/mailman/listinfo/digikam-users
> > > _______________________________________________
> > > Digikam-users mailing list
> > > Digikam-users at kde.org
> > > https://mail.kde.org/mailman/listinfo/digikam-users
> > >
> > _______________________________________________
> > Digikam-users mailing list
> > Digikam-users at kde.org
> > https://mail.kde.org/mailman/listinfo/digikam-users
> _______________________________________________
> Digikam-users mailing list
> Digikam-users at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-users



More information about the Digikam-users mailing list