Bug 1649 - compiz-fusion creating rendering errors with nVidia driver
Summary: compiz-fusion creating rendering errors with nVidia driver
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-06-06 19:49 CEST by DariuszSki
Modified: 2011-12-23 16:03 CET (History)
4 users (show)

See Also:
Source RPM: compiz-fusion
CVE:
Status comment:


Attachments

Description DariuszSki 2011-06-06 19:49:34 CEST
Description of problem:
After a successful beta then full install of Mageia 1 on my netbook, tried the
x86_64 install on my main machine....

GeForce 6100 to GeForce 360 proprietary driver, in addition to the installation problems from bug 1106 someone else filed (obviously not fixed as I experienced it in full release), there is a new problem, where if you have more than one application window open, any more windows from ANY application that was opened after the first application, is rendered as a blank workspace. No text, no buttons, no nothing.

To get a usable desktop, I am having to use the xorg-NV driver.

The video worked perfectly in Mandriva 2012.1 before the update install to Mageia.


Version-Release number of selected component (if applicable):
dkms-nvidia-current version 270.41.19 1.mga1 x86_64

How reproducible:
Install the nvidia driver then run KDE4.
Comment 1 Ahmad Samir 2011-06-06 22:18:24 CEST
Any desktop effects enabled?

Also which nVidia card do you have exactly?
Comment 2 DariuszSki 2011-06-06 22:31:38 CEST
I can't check which video card it is as when I go to MCC and click "browse / configure hardware" icon, it doesn't display the hardware in the system, it just stays on the hardware tab.

As for 3D, I was using Compiz - disabled automatically with the NV driver.
Comment 3 Ahmad Samir 2011-06-06 22:37:44 CEST
You can check which card you have using 'lspcidrake -v | grep -i display'.

So, disable compiz and try the nvidia driver again.
Comment 4 DariuszSki 2011-06-06 23:50:48 CEST
lspcidrake -v | grep -i display

Card:NVIDIA GeForce 6100 to GeForce 360: nVidia Corporation|NV44 [GeForce 6200 TurboCache(TM)] [DISPLAY_VGA] (vendor:10de device:0161 subv:1462 subd:0271) (rev: a1)

With compiz disabled, all the applications were rendering.

With MCC not doing what instructed, I instead logged out of X to enable compositing on /etc/X11/xorg.conf

With compiz enabled, the problem of blank applications occurs again.

I will check in the morning xorg.conf with an older backup I made to see if any settings in there are causing the problem... should not be as that one was also auto-created by the nvidia driver from a clean install of Mandriva 2011.0
Comment 5 Ahmad Samir 2011-06-07 02:49:37 CEST
Enabling/disabling compiz wouldn't touch xorg.conf at all. There two things here:
- The X server composite extension
- The compositing 3D desktop effects provided by Compiz (or the kde4 desktop effects)... etc

You can have the X server composite extension enabled, this is the default, without compiz, this extension is used by many other apps.
Comment 6 DariuszSki 2011-06-07 14:03:40 CEST
This is a very strange bug I can't pin down. Different applications open normally and others just show a blank workspace.

Using compiz.. with these applications running _at_the_same_time_.

Normal operation from; Opera, Firefox, SoundConverter, System Monitor, Avidemux (QT version).
Blank application workspaces; Pan, Thunderbird, Kdenlive.

A mixture which suggests it's not a KDE / Gnome problem.

If the applications are all closed then run individually or as two running, then they render as normal.

The problem with running without compiz is that although all the applications render, nearly all of them when started, start as a little square and need to be resized, they do not remember their size or position. Switch to using compiz and all the applications remember their sizes again.
Comment 7 DariuszSki 2011-06-07 14:12:20 CEST
The current xorg.conf, which the nVidia driver created "from scratch".

http://pastebin.com/gpdvU8CE


These entries are in my xorg.conf, adding them from my old backup into xorg.conf made no difference to performance. They were not in the xorg.conf that Mageia created.

#   Load "dbe" # Double-Buffering Extension
#   Load "extmod"
#   Load "glx" # 3D layer
Comment 8 DariuszSki 2011-06-07 18:26:25 CEST
Some more information I found by accident. I had to session lock the machine so it started the screen saver, except the screen was completely white. The pop-up for the password worked as normal, but no screensaver showed, jsut white screen.

On further investigation, every single screen saver on the system (even the gl ones), are a white screen.

This surely indicates there is a problem with the nVidia driver, and is not my imagination.
Comment 9 Ahmad Samir 2011-06-07 18:51:21 CEST
(I think it would be much easier to find a solution for the initial size of launched applications than it would be to fix the blank-windows issue...).
Comment 10 DariuszSki 2011-06-08 09:42:25 CEST
I ran more tests as follows:

Uninstalled dkms-nvidia-current and all associated rpm's.

Went to nVidia website to download and install same driver (270.41.19) as the dkms version. This did not change the behaviour of applications.

Suspecting there might be a problem with the latest driver, I went back to the nVidia site and downloaded the driver before the latest one (270.41.06) [last one that Mandriva 2011.2 used????]. This also did not change the behaviour of applications.

This points / suggests there is something else that is interfering with the graphics driver, possibly something in the kernel?
Comment 11 DariuszSki 2011-06-08 23:28:51 CEST
Changed title of bug as it appears to by a compiz problem.

Summary: nVidia driver prevents more than 1 application being rendered => compiz-fusion creating rendering errors with nVidia driver
Source RPM: dkms-nvidia-current 270.41.19 1.mga1 x86_64 => compiz-fusion

Comment 12 Ahmad Samir 2011-06-09 22:04:19 CEST
Actually I think this is a duplicate of bug 1366.
Comment 13 DariuszSki 2011-06-10 22:11:16 CEST
Ahmad, I read bug 1366, but the user there complains that he could not get to the desktop in the first place. The fault I was experiencing is that I could not open enough applications with a usable desktop, the application did not render to screen. It's as if the card ran out of RAM to draw more applications to the screen (I'm reminded of MS-DOS days).
Ahmad Samir 2011-07-20 17:06:10 CEST

CC: (none) => anssi.hannula

Comment 14 Samuel Verschelde 2011-10-01 10:59:11 CEST
nvidia driver  275.09.07 is in nonfree/updates for Mageia 1. Does it improve
the situation ?

Keywords: (none) => NEEDINFO
CC: (none) => stormi

Comment 15 DariuszSki 2011-10-08 09:24:24 CEST
Unfortunately, the problem is still there.

Using latest 275.09.07 driver, with latest kernel 2.6.38.8-desktop-6..

The only way to get "unlimited" applications opened at the same time and usable is switching to the nouveau driver, but you lose all the 3D stuff.
Comment 16 Manuel Hiebel 2011-10-29 22:31:26 CEST
Anssi, Julien, ideas ?

CC: (none) => julien.moragny

Comment 17 Julien Moragny 2011-10-31 08:34:18 CET
Maybe a problem with insufficient video memory [1] (it's sharedwith system  IIRC with this cards), can you try to increase it ? Or maybe a problem with direct rendering [2], can you try compiz with indirect rendering switch ?


[1]http://forums.opensuse.org/english/get-technical-help-here/hardware/461140-weird-compiz-behaviour-nvidia-card-empty-windows.html#post2351326

[2]http://wiki.compiz.org/Troubleshooting#Black_Window_Bug (and the next one)
Comment 18 Marja Van Waes 2011-12-14 20:58:55 CET
(In reply to comment #17)
> Maybe a problem with insufficient video memory [1] (it's sharedwith system 
> IIRC with this cards), can you try to increase it ? Or maybe a problem with
> direct rendering [2], can you try compiz with indirect rendering switch ?
> 
> 
> [1]http://forums.opensuse.org/english/get-technical-help-here/hardware/461140-weird-compiz-behaviour-nvidia-card-empty-windows.html#post2351326
> 
> [2]http://wiki.compiz.org/Troubleshooting#Black_Window_Bug (and the next one)

@ D Ski

Please report what happened when you tried these two possible solutions.

CC: (none) => marja11

Comment 19 DariuszSki 2011-12-18 20:53:24 CET
The first link is about video memory, I use a dedicated graphics card not on-board the motherboard (there is no on-board graphics anyway). Has 256MB of RAM, which has been enough for everything including playing BZflag and using GoogleEarth, both graphics intensive stuff. Most of Mageia was a clean install, so there should not really be anything old hanging around.

As for the second link, I have un-installed then re-installed the Nvidia driver many times, but the problem has not gone away. And as the link suggests, any rendering problems should have been fixed ages ago with the updated drivers.

I have ordered a new graphics card to beef up HD video playback / use VDPAU to offload video processing to the video card (like used to happen with the Beryl fork for compositing). My current card does not have VDPAU support. Whatever the outcome of the new card install, I will update the bug report.
Comment 20 DariuszSki 2011-12-23 16:03:30 CET
Installing a new graphics card, the card / driver combination solved the problems I've been having. Maybe there was a bug introduced by Nvidia driver or during it's build? No matter how many times the driver for the old card was removed then re-installed, the problem kept on recurring.

The new card was recognised on booting, and new driver automatically downloaded and installed. and all 3D stuff worked (compiz, bzflag, Brutal Chess etc.)

Thanks to everyone for their work with the bug.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.