After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 676938 - [Nouveau] EOG Eye of gnome shows black stripe in pictures
[Nouveau] EOG Eye of gnome shows black stripe in pictures
Status: RESOLVED NOTGNOME
Product: eog
Classification: Core
Component: image viewer
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-05-27 22:48 UTC by Adam Niedling
Modified: 2012-09-15 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Xorg.0.log (43.03 KB, text/plain)
2012-07-21 21:46 UTC, Adam Niedling
Details
dmesg (39.62 KB, text/plain)
2012-07-21 21:50 UTC, Adam Niedling
Details
sudo lspci -vvnn (8.79 KB, text/plain)
2012-07-21 21:51 UTC, Adam Niedling
Details

Description Adam Niedling 2012-05-27 22:48:11 UTC
Original bug report: https://bugs.launchpad.net/ubuntu/+source/eog/+bug/1005292

I'm using a freshly installed Precise on a fairly old computer.

eog: 3.4.1-0ubuntu1
xserver-xorg-video-nouveau: 1:0.0.16+git20111201+b5534a1-1build2

The problem is that eog shows a black stripe in some of my jpg pictures. I think the position of the stripe depends on the resolution of the picture. If the resolution is high the stripe is located close to the top, if it's medium the stripe is in the middle. If the resolution is low then there is no black stripe. Please take a look at the sample images.

I used the printscreen button to create the eog version of the images.
There is no problem with other image viewing tools.

Sample images:

https://bugs.launchpad.net/ubuntu/+source/eog/+bug/1005292/+attachment/3166211/+files/original.JPG

https://bugs.launchpad.net/ubuntu/+source/eog/+bug/1005292/+attachment/3166213/+files/eog-version.png

https://bugs.launchpad.net/ubuntu/+source/eog/+bug/1005292/+attachment/3166214/+files/original2.JPG

https://bugs.launchpad.net/ubuntu/+source/eog/+bug/1005292/+attachment/3166215/+files/eog-version_2.png
Comment 1 Adam Niedling 2012-07-21 21:46:26 UTC
Created attachment 219397 [details]
Xorg.0.log
Comment 2 Adam Niedling 2012-07-21 21:49:13 UTC
Strange, I can't find Comment #1 on this page, has it dissapeared?

Anyway, here is my answer: I tried to reproduce this issue at different resolution (1280*720, 1440*900) and it did not happen. When I switched back to 1920*1080 it did not happen either.

However when I rebooted and tried again it did happen again. I got error messages in Xorg.0.log. I've already atteched it.

--- Comment #1 from Felix Riemann <friemann@gnome.org> 2012-06-03 13:05:52 UTC ---
Hmm, I'm suspecting a driver problem or a hardware limitation.

Does the driver output any log data into the kernel and xorg logs when this
happens?

Can you also try if it works at different screen resolutions as in bug 656224?
Comment 3 Adam Niedling 2012-07-21 21:50:50 UTC
Created attachment 219398 [details]
dmesg
Comment 4 Adam Niedling 2012-07-21 21:51:38 UTC
Created attachment 219399 [details]
sudo lspci -vvnn
Comment 5 Felix Riemann 2012-08-21 16:13:29 UTC
Hmm, the Xorg output sounds like the X server (or parts of it) are hanging.
I know that a similar situation can happen for very large pictures but it shouldn't happen with pictures of your size.

Anyway, I had a similar report from another GeForce FX 5xxx user using nouveau. 
We tried to test it against the nvidia binary driver, but failed with the manual installation of the driver package. As Ubuntu seems to have put an updated driver in their repository now I'd like to ask you the same. Would it be possible for you to test against the binary driver to rule out a driver problem?
(Although it could still be a hardware limitation we're hitting here.)
Comment 6 Adam Niedling 2012-09-14 20:51:46 UTC
I just tried it again with the latest updates installed on 12.04 and the problem remains.

This is not a hardware limitation because there was no problem with this on 10.04.
Comment 7 Felix Riemann 2012-09-15 12:02:16 UTC
Have you tried nVidia's binary driver (nvidia-173)?
AFAIK the nouveau driver hasn't received an update in Ubuntu 12.04 since release.

I wouldn't rule out a hardware limitation just because it worked in 10.04.
The eog that was used in Ubuntu's last LTS release had a much different render code. eog-2.x prescaled the image and sent it to the X server in blocks.

eog-3.x uses cairo to do the scaling and compositing, delivering the whole image at once. This can be more taxing on the hardware as well as the driver, but depending on your gfx card and driver it can speed up rendering quite a bit.

The problem is I am unable to reproduce your problem with an Ubuntu 12.04 livecd with my graphics card, which makes me think it might be driver or hardware related. And to rule out the hardware I'd like to have a cross-check against nVidia's own driver, to see if it could be a problem of nouveau (or rather Ubuntu's snapshot of it) with GeForce 5 cards.
Comment 8 Adam Niedling 2012-09-15 15:26:28 UTC
You are right, I just tried it again after installing nvidia-173 via jockey and the bug does not happen anymore.
So this must be a nouveau problem.
Comment 9 Adam Niedling 2012-09-15 15:28:11 UTC
By the way Shotwell can view pictures with nouveau too.
Thanks for your help.
Comment 10 André Klapper 2012-09-15 15:52:20 UTC
Great that you found the reason!

Closing as NOTGNOME as this was a bug that wasn't fixed in the GNOME codebase.

Could you please forward this bug report to bugs.freedesktop.org by filing it either under "xorg -> Driver/nouveau" or "Mesa -> Drivers/DRI/nouveau"?
Thanks for your help!
Comment 11 Adam Niedling 2012-09-15 16:09:56 UTC
For the record: I opened a bug report at freedesktop:
https://bugs.freedesktop.org/show_bug.cgi?id=54970
Comment 12 Felix Riemann 2012-09-15 16:58:49 UTC
Thanks for testing, Adam!

It's surely possible that Shotwell shows images correctly with your Nouveau driver. I think it works similar to the older eog by rendering a prescaled image to the cairo context.