Bug 51477 - [NV10, NV20] bad/missing graphics, usually alpha-related
Summary: [NV10, NV20] bad/missing graphics, usually alpha-related
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 06:22 UTC by Gerrit Keller
Modified: 2014-09-09 17:40 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
kernel log (33.64 KB, text/plain)
2012-06-27 06:22 UTC, Gerrit Keller
no flags Details
missing icons in LibreOffice (33.86 KB, image/png)
2012-06-27 06:23 UTC, Gerrit Keller
no flags Details
missing graphics in Iceape (14.27 KB, image/png)
2012-06-27 06:25 UTC, Gerrit Keller
no flags Details
Xorg log (30.22 KB, text/plain)
2012-06-27 06:27 UTC, Gerrit Keller
no flags Details
Iceape screenshot using old (working) version (16.73 KB, image/png)
2012-06-27 06:29 UTC, Gerrit Keller
no flags Details
Libreoffice screenshot using old/working version (34.66 KB, image/png)
2012-06-27 06:33 UTC, Gerrit Keller
no flags Details
possible fix (438 bytes, patch)
2012-06-28 08:22 UTC, Marcin Slusarz
no flags Details | Splinter Review
another try (448 bytes, patch)
2012-06-28 16:18 UTC, Emil Velikov
no flags Details | Splinter Review

Description Gerrit Keller 2012-06-27 06:22:31 UTC
Created attachment 63512 [details]
kernel log

Using recent nouveau versions I’m encountering missing graphics in various programs (e.g. gtk’s filechooser, LibreOffice, Iceape, Pidgin, xfce4-panel’s pager and on lightdm’s gtk-greeter).
Moving the mouse cursor over these places or resizing the windows makes the icons appear sometimes (but also disappear in the same manner).

Tested broken (Debian package) versions are:
0.0.16+git20120529+ace77b6-1
0.0.16+git20120614+36d3f8c-1
1.0.1-1

0.0.16+git20120322+ab7291d-1 was (and still is) working fine.

Kernel version is 3.4.4
libdrm 2.4.33
Comment 1 Gerrit Keller 2012-06-27 06:23:59 UTC
Created attachment 63513 [details]
missing icons in LibreOffice
Comment 2 Gerrit Keller 2012-06-27 06:25:10 UTC
Created attachment 63514 [details]
missing graphics in Iceape
Comment 3 Gerrit Keller 2012-06-27 06:27:39 UTC
Created attachment 63515 [details]
Xorg log
Comment 4 Gerrit Keller 2012-06-27 06:29:57 UTC
Created attachment 63516 [details]
Iceape screenshot using old (working) version

For comparison this is what the Iceape screenshot should look like.
Comment 5 Gerrit Keller 2012-06-27 06:33:08 UTC
Created attachment 63517 [details]
Libreoffice screenshot using old/working version

and the same for Libreoffice.
Last two screenshots were taken using mentioned good version 0.0.16+git20120322+ab7291d-1.
Comment 6 Emil Velikov 2012-06-27 15:21:14 UTC
Hi Gerrit

I suspect that you're using AIGLX, and currently there are some known issues with it. It is caused due to the dri module (nouveau_vieux_dri.so) being build against the old libdrm interface, whereas the (problematic) ddx is built against the new one

Note that this would be resolved when the distributions start using mesa 8.1, as the dri module provided with it is based on the new libdrm

To quickly check, please disable AIGLX in your xorg.conf

If you're still having problems with AIGLX switched off, can you bisect - it should take 5-6 steps

Thanks
Comment 7 Gerrit Keller 2012-06-28 05:02:49 UTC
> To quickly check, please disable AIGLX in your xorg.conf

Still happens with AIGLX disabled.

> If you're still having problems with AIGLX switched off, can you bisect - it
> should take 5-6 steps

% git bisect bad
b09a61780ea6710b679a6a099e35987e7a5f559f is the first bad commit
commit b09a61780ea6710b679a6a099e35987e7a5f559f
Author: Ben Skeggs <bskeggs@redhat.com>
Date:   Mon Apr 23 14:49:22 2012 +1000

    nv10/exa: implement support for solid pictures
    
    Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

:040000 040000 7a47e308b9d7d7d316d0881eb3ee2a0b4cfbc272 f66526f015f5e5abe07d0d8da72d0feacdec7faf M      src
Comment 8 Marcin Slusarz 2012-06-28 08:22:45 UTC
Created attachment 63568 [details] [review]
possible fix

does it work with this patch?
Comment 9 Gerrit Keller 2012-06-28 08:33:21 UTC
> Created attachment 63568 [details] [review] [review]
> possible fix
> 
> does it work with this patch?

No, still broken.
Comment 10 Emil Velikov 2012-06-28 16:18:35 UTC
Created attachment 63583 [details] [review]
another try
Comment 11 Gerrit Keller 2012-06-29 01:23:00 UTC
(In reply to comment #10)
> Created attachment 63583 [details] [review] [review]
> another try

No, also doesn’t fix this.
Comment 12 Balló György 2012-09-02 01:56:36 UTC
I have an NV17 [GeForce4 MX 440] card, and I have similar rendering issues.

The issues are started for me after this commit (the new libdrm port):
http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=e70d801ae9287eab5e82f4d467dc8cd4be1b31a8

So I think the problem is in this commit or in the new libdrm.

The graphics corruption, what I experienced sometimes:
- Missing icons in Nautilus.
- The toolbar in Nautilus and the tabs in Firefox are shown brighter than it should be.
- The text in GNOME Terminal is shown in other color than it should be.

These problems are usually disappear, when I move the mouse over the elements or move the application's window.

I'm using GNOME 3 fallback mode.
Comment 13 D. Holden 2012-11-05 14:14:09 UTC
Same for me, I use a Geforce 4 MX440 and it always worked fine until I tried the latest Ubuntu/Lubuntu/Xubuntu version. 

The following problems occur:

1. On Ubuntu the Unity panels do now show
2. On Xubuntu (XFCE) it works (quite fast), but the terminal text has the color of the window below (goes away when moving window). Also, there are other drawing issues with the panels of the default file manager and so on. However most applications (like FireFox and Chromium) work as expected
3. On Lubuntu the terminal text is ok, but there are also issues with the file manager and other LXDE apps
4. All desktop versions seem to have issues with radio-buttons, check-boxes and so on. The color and brightness are not correct.

Is seems that the speed of the new nouveau driver has increased significantly on the MX440, but at the cost of (some) compatibility.
Comment 14 Matthias Dienstbier 2013-02-01 17:06:30 UTC
This bug gets much more intense if RGB subpixel hinting is enabled but it rarely appears if only grayscale antialiasing is used. Disabling the acceleration makes it completely disappear.
Comment 15 nouveau_bug_reporter 2013-06-17 14:15:29 UTC
I'd like to add that I have experienced a similar bug under a new installation of Lubuntu 13.04 where the mouse pointer and certain icons disappear when hovering over them. Text also tends to turn green.

This has happened with NV10, NV11 and NV17 videocards.
Installing an NV34 (FX5200) videocard resolved the issue.
Comment 16 Tobias Bauer 2013-09-08 06:43:28 UTC
The same problem exists with Lubuntu 13.04 and a Geforce 2 Pro (NV15).
Comment 17 Compaq 2013-10-12 20:11:38 UTC
I have an NV17 ( NVIDIA Corporation NV17 [GeForce4 440 Go 64M] (rev a3) ) and the same problems. 

Unfortunatly it's a notebook (that would be still fine from my point of view) and so i can't change the graphic card.

I attach some screenshot made with xubuntu 13.10 beta2 with the problems in gimp, terminal and the missing icons in thunar.

Thank you.
Comment 18 Compaq 2013-10-12 20:12:31 UTC
Sorry for the missing screenshots:

http://goo.gl/zWU9gn

Thank you.
Comment 19 ajhurtado21 2013-12-10 17:57:50 UTC
(In reply to comment #17)
> I have an NV17 ( NVIDIA Corporation NV17 [GeForce4 440 Go 64M] (rev a3) )
> and the same problems. 
> 
> Unfortunatly it's a notebook (that would be still fine from my point of
> view) and so i can't change the graphic card.
> 
> I attach some screenshot made with xubuntu 13.10 beta2 with the problems in
> gimp, terminal and the missing icons in thunar.
> 
> Thank you.

I just recently had this same problem with my old desktop with the same graphics card.

My problem: I'm still a novice in Linux. I started out with Xubutnu 13 awhile ago, then found out it's not a bug but i support issue. *ubuntu 13 maybe even 12 only supports Xorg server 11 which doesn't support Nvidia driver 96.**. So i downgraded to Xubuntu 11 which automatically installed my graphics card but after a couple ppl told me its not a good idea to switch to unsupported OS and i found out Debian 7 is current and still supports older Nvidia drivers. When i switch to Debian 7 it doesnt auto install so i had some problems there but nothing to complex. and for the missing icons and such (which isnt a problem in Debian 7) just go to Settings> Appearance> Fonts tab uncheck "Enable Anti-Aliasing and/or Icon tab and switch the icon option.

My Fix: Here's a link to a forum i posted on with the fix http://www.linuxquestions.org/questions/showthread.php?p=5078340#post5078340

Hopes this helps!
Comment 20 Orestis Gklavas 2014-03-05 07:23:32 UTC
The issue is present in the latest Lubuntu version 13.10 with NV11 and it manifests also in the form of disappearing text while scrolling through pdf and disappearing table borders in libreoffice. It seems to go away once font antialiasing is turned off.
Comment 21 Hooloovoo 2014-04-08 19:30:44 UTC
This bug completely dissappears when I enable "ShadowFB" in the xorg.conf file. This works perfectly, if a little slower, except that all of the menu text in LibreOffice disappears when ShadowFB is enabled.
Comment 22 Eugenij Shkrigunov 2014-04-11 10:41:50 UTC
Enabling "ShadowFB" (i.e. disabling acceleration) is not a solution or even a workaround. Work at the terminal (LTSP, remote X11) becomes a torment.
A recent trend - disable acceleration instead of solving problem. A similar situation exists with the xf86-video-sis.
Please fix the problem.
Comment 23 Compaq 2014-04-12 17:17:04 UTC
I have just tried lubuntu 14.04 beta2 with my nv17 ( ( NVIDIA Corporation NV17 [GeForce4 440 Go 64M] (rev a3) ) ) on a Compaq Presario r3445ea and the situation is even worser than before... it doesn't even boot :(

Here is a photo with nouveau errors (last image, the previous were with lubuntu 13.10 that was only quite unusable due to missing text-graphics):

http://goo.gl/zWU9gn

If there is a way to send more info i'll try to do so.

Thank you in advance.
Comment 24 Ilia Mirkin 2014-08-10 05:12:40 UTC
I noticed a weird thing in the bisected commit... does this patch help?

index df2f561..47cf0ef 100644
--- a/src/nv10_exa.c
+++ b/src/nv10_exa.c
@@ -520,7 +520,7 @@ setup_picture(NVPtr pNv, PicturePtr pict, PixmapPtr pixmap, int unit,
        if (pict && PICT_FORMAT_RGB(pict->format))
                *color = RCSEL_COLOR | source;
        else
-               *color = RCSEL_ALPHA | RCINP_ZERO;
+               *color = RCSEL_COLOR | RCINP_ZERO;
 
        if (pict && PICT_FORMAT_A(pict->format))
                *alpha = RCSEL_ALPHA | source;
Comment 25 Ilia Mirkin 2014-08-10 06:29:14 UTC
Aha, and another issue which should be fixed by:

http://lists.freedesktop.org/archives/nouveau/2014-August/018271.html

Please try applying both of these and see if that fixes things.
Comment 26 Emil Velikov 2014-08-10 15:08:53 UTC
(In reply to comment #24)
> I noticed a weird thing in the bisected commit... does this patch help?
> 
This patch alone does not help (see comment 10 and 11). Although I would suspect it's because of the incorrect mask (fixed by the patch linked in comment 25). Or in other words - there is more than one bugger, thanks for tracking them down :)
Comment 27 Ilia Mirkin 2014-08-21 22:11:40 UTC
These patches are now in git, and a number of people have confirmed that similar issues are fixed. Please give the latest git code a shot (or nouveau 1.0.11 when it's released).
Comment 28 BobbyJ 2014-09-08 18:11:10 UTC
Hello, I came across this bug after installing Lubuntu 14.04.1 and experiencing the disappearing icons in the default file browser and other places. I turned off anti-aliasing under Settings>Appearance>Fonts and the icons no longer disappear. This however makes the text harder to read. 

The title of the bug includes NV10 and NV20. I am just a regular user (not a developer) but the fix below appears to only reference NV10. I have an Nvidia GeForece 3 Ti200 graphics card which is considered NV20. Does the fix also correct the issue for NV20 graphics cards?
Comment 29 Ilia Mirkin 2014-09-08 18:12:50 UTC
(In reply to comment #28)
> The title of the bug includes NV10 and NV20. I am just a regular user (not a
> developer) but the fix below appears to only reference NV10. I have an
> Nvidia GeForece 3 Ti200 graphics card which is considered NV20. Does the fix
> also correct the issue for NV20 graphics cards?

NV20 uses the same accel logic as NV10 for exa. Reports are that it does indeed fix the issue for NV20 iirc. xf86-video-nouveau 1.0.11 is now released and should contain this fix.
Comment 30 BobbyJ 2014-09-09 17:37:42 UTC
Thanks for the quick response. So it sounds like this fix should correct the issue for NV20 cards. The current nouveau package for Ubuntu 14.04 LTS is 1:1.0.10-1ubuntu2. I assume this is the same package used for Lubuntu. 

Do you know how I would go about requesting that this change be backported to 1.0.10? Would I have to create a bug report on Launchpad or is it sufficient to reference this bug report and fix?
Comment 31 Ilia Mirkin 2014-09-09 17:40:56 UTC
(In reply to comment #30)
> Thanks for the quick response. So it sounds like this fix should correct the
> issue for NV20 cards. The current nouveau package for Ubuntu 14.04 LTS is
> 1:1.0.10-1ubuntu2. I assume this is the same package used for Lubuntu. 
> 
> Do you know how I would go about requesting that this change be backported
> to 1.0.10? Would I have to create a bug report on Launchpad or is it
> sufficient to reference this bug report and fix?

There is no stable branch for xf86-video-nouveau (so no backporting). Upgrade to 1.0.11, or ask your distro to add those in as extra patches.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.