Aurélien's room

I mess with user interfaces, write code (mostly Qt & KDE stuff) and occasionally rant, but I (usually) don't bite

Hunting down black screens

Today I spent some time on Gwenview, trying to get rid of an annoying bug: when you browse images in fullscreen or when you zoom into large images, sometimes the screen goes black for a few milliseconds (bug 227155)

The changes ended up being a bit more involved than I expected, but I got rid of most black screens. You may still get some when you go to a document of a “different kind” (going from a photo to an SVG for example) but you should not see black screens anymore when going through photos or zooming them in.

I fixed a few regressions and I am quite confident it is now stable, but Gwenview could use more testers for this change. If you use KDE master (the fixes are not in Beta 2), just go through your images, manipulate them and if you find some weirdness, file a bug, help all of us enjoy a black-screen-less photo browsing world!


Flattr this

Advertisement

10 Responses to Hunting down black screens

  1. yoda June 3, 2011 at 23:42

    great! so can we expect other black screens fixed in the future?

  2. Christoph Bartoschek June 4, 2011 at 10:35

    Could you sketch the cause of the black screens?

    • Aurélien June 4, 2011 at 13:27

      Basically, when you go from one image to another, Gwenview image view used to get itself ready as soon as possible, which meant getting rid of the previously displayed image, even if the current one was not ready to be displayed (ready to be displayed meaning decoded and scaled according to zoom settings). Now the image view holds on the rendering of the previous image as long as the current one is not ready instead of showing a black place-holder.

  3. m_h_n June 16, 2011 at 23:44

    This is something that always bothered me a little, I’m really glad it’s fixed now, thanks a lot !!

  4. Pingback: June 2011 wrap-up « Aurélien's room

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.