window content doesn't refresh, only if window is moved

Bug #1503310 reported by R. Moeller
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-340 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I suppose this is a bug with the nvidia driver, but I'm not sure. After the second-to-last routine software update (which I think updated the nvidia driver), changing window content is only refreshed if the window is moved.

Ubuntu 12.04.5 LTS, kernel 3.2.0-91-generic,
NVidia driver installed: 340.93-0ubuntu0.0.0.1,
Thinkpad laptop with nvidia graphics card (see below),
Window manager: Gnome Classic

How to reproduce the bug: Log in under Gnome Classic. Open Gnome terminal. Execute some command (ls). Open new tab in terminal. Execute some other command (ps), just to have different tab contents. Switch back and forth between the tabs using the mouse. After some switches, neither the tab rider is activated nor the tab content is refreshed any longer. Only if you move the window, the tab rider gets activated and the tab content is refreshed. The same problem occurs in other applications (e.g. in thunderbird when selecting an email --- email list entry is not marked and email content is not shown, only if you move the window), so it is not application-specific.

The bug disappears when using the window manager "Gnome Classic (no effects)" instead (which is "non-compositing" in contrast to "Gnome Classic"). The bug is also present in other window magagers ("Ubuntu").

Side remark: I tried but failed to switch back to an earlier version of the nvidia driver (from 340 to 331) using synaptic: When deinstalling 340 and installing 331 instead, synaptic complains that it depends on 340. So I can only guess that the bug is caused by the nvidia driver.

Any help would be highly appreciated as the bug is really annoying.

% nvidia-smi
Tue Oct 6 16:13:30 2015
+------------------------------------------------------+
| NVIDIA-SMI 340.93 Driver Version: 340.93 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 NVS 5400M Off | 0000:01:00.0 N/A | N/A |
| N/A 44C P8 N/A / N/A | 194MiB / 1023MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nvidia-340 340.93-0ubuntu0.0.0.1
ProcVersionSignature: Ubuntu 3.2.0-91.129-generic 3.2.71
Uname: Linux 3.2.0-91-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.11
Architecture: amd64
Date: Tue Oct 6 16:10:32 2015
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/tcsh
SourcePackage: nvidia-graphics-drivers-340
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
R. Moeller (rsuzzoop) wrote :
Revision history for this message
R. Moeller (rsuzzoop) wrote :

Just an addition: The bug shows similarities to this one, although it was only reported for Firefox:

https://bugzilla.mozilla.org/show_bug.cgi?id=1194358

Users report that compiz may cause the problems, and that would explain why the problem isn't present when using "Gnome Classic (no effects)" as compiz is not running there (but metacity).

So maybe the problem is compiz, not the nvidia driver?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in compiz (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-340 (Ubuntu):
status: New → Confirmed
Revision history for this message
Mark Lord (launchpad-rtr) wrote :

No such problems with Chrome on the same system.

Revision history for this message
B. Nale (benjamin-male) wrote :

I'm experiencing the same issue. Firefox is severely impacted: changing tabs would not refresh the display on a ~1/4 probability. I could reproduce once or twice that problem on the console application. Gedit is nearly unusable, as writing text often does not refresh the actual content. I don't have problems with Chrome.

Ubuntu 12.04.5 LTS, 3.13.0-65-generic
Window manager: Unity 3d

+------------------------------------------------------+
| NVIDIA-SMI 340.93 Driver Version: 340.93 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 310 Off | 0000:01:00.0 N/A | N/A |
| 25% 55C P0 N/A / N/A | 444MiB / 511MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+

Revision history for this message
R. Moeller (rsuzzoop) wrote :

With some help I meanwhile upgraded to Ubuntu 14.04 LTS and the bug doesn't seem to appear there, even though the nvidia driver version is the same (I tried "Ubuntu" and "Gnome fallback Compiz"). Does that help in localizing the problem for people still using 12.04 LTS?

Revision history for this message
Lucas Martínez Bernabeu (lucas-martinez-bernabeu) wrote :

I'm experiencin the same issue. I can quote all of B. Nale's comment.
Nautilus, Gedit, Firefox... I have to drag the window to force repainting most of the time.

My current settings:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

$uname -a
Linux lucas-i5-u12 3.2.0-95-generic #135-Ubuntu SMP Tue Nov 10 13:33:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

$ nvidia-smi
Fri Dec 11 10:31:06 2015
+------------------------------------------------------+
| NVIDIA-SMI 340.96 Driver Version: 340.96 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 660 Ti Off | 0000:01:00.0 N/A | N/A |
| 10% 24C P8 N/A / N/A | 344MiB / 2047MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

This problem was also present with Nvidia drivers version 331.113.

The problem appeared after a routine software update, in which following packages were updated or installed:

* Installed:
linux-image-3.2.0-89-generic (3.2.0-89.127)
linux-headers-3.2.0-89 (3.2.0-89.127)
linux-headers-3.2.0-89-generic (3.2.0-89.127)

* Updated (not exhaustive, on demand):
linux-generic (3.2.0.88.102, 3.2.0.89.103)
linux-image-generic (3.2.0.88.102, 3.2.0-89.103)
linux-headers-generic (3.2.0.88.102, 3.2.0-89.103)
linux-libc-dev (3.2.0-88.126, 3.2.0-89-127)
libexpat1-dev (2.0.1-7.2ubuntu1.1, 2.0.1-7.2ubuntu1.2)
libsnmp15 (5.4.3~dfsg-2.4ubuntu1.2, 5.4.3~dfsg-2.4ubuntu1.3)
libexpat1 (2.0.1-7.2ubuntu1.1, 2.0.1-7.2ubuntu1.2) <- this line appears twice
libsnmpbase (5.4.3~dfsg-2.4ubuntu1.2, 5.4.3~dfsg-2.4ubuntu1.3)
libsvn1 (1.6.17dsfg-3ubuntu3.4, 1.6.17dsfg-3ubuntu3.5)
libgdk-pixbuf2.0-0 (2.26.1-1ubuntu1.1, 2.26.1-1ubuntu1.2) <- this line appears twice
xul-ext-ubufox (3.0-0ubuntu0.12.04.1, 3.1-0ubuntu0.12.04.1)
gir1.2-gdk-pixbuf-2.0 (2.26.1-1ubuntu1.1, 2.26.1-1ubuntu1.2)
libgdk-pixbuf2.0-common (2.26.1-1ubuntu1.1, 2.26.1-1ubuntu1.2)
firefox (39.0+build5-0ubuntu0.12.04.02, 40.0.3+build1-0ubuntu0.12.04.01)

Some other packages (I don't know if they are related):
adobe-(flashplugin, flash-properties)
thunderbird-(globalmenu, gnome-support, locale-*)
icedtea-6-jre-(cacao, jamvm)
openjdk-6-jre-(headless, lib)
firefox-(locale-*, globalmenu)

I can not try upgrading Ubuntu to next LTS yet because I'm finishing some critical work first.

Revision history for this message
Allan Araya (avarayab) wrote :

I have this problem too, I have to move the scrolls or drag the window or something like that to make the window refresh.

My environment:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

$ uname -a
Linux kandor 3.2.0-97-generic-pae #137-Ubuntu SMP Thu Dec 17 21:37:53 UTC 2015 i686 i686 i386 GNU/Linux

$ nvidia-smi
Thu Jan 28 14:30:31 2016
+------------------------------------------------------+
| NVIDIA-SMI 340.96 Driver Version: 340.96 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 210 Off | 0000:01:00.0 N/A | N/A |
| N/A 43C P0 N/A / N/A | 457MiB / 1023MiB | N/A Default |
+-------------------------------+----------------------+----------------------+

It happened after I installed the latest updates, including a kernel upgrade.

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

same issue here

tvanseve@tvanseve-ThinkPad-W530:~$ uname -a
Linux tvanseve-ThinkPad-W530 3.13.0-77-generic #121~precise1-Ubuntu SMP Wed Jan 20 18:02:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

tvanseve@tvanseve-ThinkPad-W530:~$ lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.5 LTS
Release: 12.04
Codename: precise

tvanseve@tvanseve-ThinkPad-W530:~$ nvidia-smi
Wed Feb 17 10:19:47 2016
+------------------------------------------------------+
| NVIDIA-SMI 340.96 Driver Version: 340.96 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Quadro K1000M Off | 0000:01:00.0 On | N/A |
| N/A 40C P8 N/A / N/A | 550MiB / 2047MiB | 8% Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| No running compute processes found |
+-----------------------------------------------------------------------------+

tvanseve@tvanseve-ThinkPad-W530:~$ compiz --version
Compiz 0.9.7.12

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

can anyone recommend a temp workaround ?
i cant figure out how to downgrade the nvidia drivers to the last good version ...

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

fyi:
upgrade to kernel 3.13.0-79-generic doesnt change anything
compiz version i was using before the issue began and now (with the issue) is the same > dont think it's a compiz issue

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

yet another fyi :
i created a ticket @Nividia that points to this launchpad ticket : nvidia ticket #160303-000014

Revision history for this message
M Winiarski (m-winiarski) wrote :

Workaround suggestion for comment #11:

The only workaround that has worked for me is to use Gnome Classic (no effects) desktop environment, making sure that no compiz processes are started. I am running a similar environment (12.04.5 LTS, 3.13.0-79-generic, nvidia 340.96).

Reference the discussion thread for Firefox at https://bugzilla.mozilla.org/show_bug.cgi?id=1194358 -- Firefox seems particularly susceptible to this issue.

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

@M-winiarski : thanks for the tip. i'm now running unity 2-D (thus no compiz) and it works OK

btw : Thunderbird also quickly suffers from the refresh. seems like mozilla is using a screen refresh routine that is subject to this bug

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

update :
have been working with nvidia support (see https://nvidia.custhelp.com/app/account/questions/detail/i_id/934112)
current status : upgraded nvidia drivers to 361.28 but the original issue remains ... :-(
will continue to work with nvidia and report back

Revision history for this message
thijs van severen (thijsvanseveren) wrote :

nvidia claims that this is is known issue with the window manager :

"this is a duplicate of another Launchpad bug, and as I understand it, it’s a bug with Compiz and Mutter (the compositing managers of Unity and GNOME, respectively), see: https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/269904.

I believe it’s largely been fixed in Compiz, but that patch likely did not propagate to Ubuntu 12.04. I believe it’s in all Ubuntu versions >= 15.04, and probably is fixed in 14.04 as well (though not 14.10)."

so i'm afraid the only option is to upgrade to 15.04 (or maybe better 16.04) ...

guess this ticket can be closed ?

Revision history for this message
Carlo Wood (carlo-alinoe) wrote :

I'm having an issue very much like this one: repainting of certain windows just stop. Input, menu's, mouse everything still works fine - it's just the repainting of the window that stops. Only way to recover is to close the window and restart the application.

However, I am using 16.04 ...

Does anyone have suggestions on what I can try to investigate this?
Is there another bug report for this somewhere at the moment?

Revision history for this message
Carlo Wood (carlo-alinoe) wrote :

I'm using NVIDIA driver 367.57, kernel 4.4.0-64-generic and did NOT have this issue
prior to xenial (although, I think I made a huge leap when upgrading, I might have
skipped 14.x).

Revision history for this message
Martin Magnusson (martin-blecket) wrote :

I think I'm experiencing the same thing as you, Carlo, and it also did not happen before using 16.04 and NVIDIA 367.57. So our bug is most likely another one.

Revision history for this message
Martin Magnusson (martin-blecket) wrote :

A possible workaround, when this happens, is to change the rendering backend for the compositor. I have tried switching from OpenGl 3 to OpenGL 2, and that seems to fix the issue for me.

Revision history for this message
Philippe Coval (rzr) wrote :

I see this bug is still unresolved, I am able to replicate the issue on my current setup:

https://twitter.com/RzrFreeFr/status/1044227788444758016

Revision history for this message
AqD (aqd) wrote :

I use Xfce + nvidia and have the same/similar issue with Sketchup 2017 x64 in wine, Xubuntu 18.04 LTS. The menu and UI elements are fine but the main, OpenGL backed part is not updated until a mouse action - basically everything I do inside is delayed by one step.

Turning off compositor does NOT help, though. I have "Force Full Composition Pipeline" on.

Revision history for this message
Nina Koch (ninakoch) wrote :

I just did an apt upgrade yesterday (using 18.04) and have now acquired this same problem. I can force a repaint by minimizing and then unminimizing the window.

Revision history for this message
Evgeny Petrov (golovasteek) wrote :

In my current setup (Ubuntu 18.04, nvidia-driver-430) I experience this issue when using Gnome-Calculator or gedit.

Most of the other applications are not affected.

Changing the gnome theme through the "GNOME-Tweaks" app helped to solve the problem. Affected themes are Ambiance and Radiance, all others seem to work

Revision history for this message
John McKeown (jackamckeown) wrote :

I have this same issue on my Acer swift3 laptop which doesn't have a graphics card. I think I have integrated intel graphics. Also I'm using Ubuntu with the MATE desktop environment.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.