Unity Launcher corruption when resuming from suspend/hibernate

Bug #676166 reported by Jorge Castro
568
This bug affects 111 people
Affects Status Importance Assigned to Milestone
Compiz
Invalid
Undecided
Unassigned
Unity
Fix Released
Critical
Jason Smith
nvidia-graphics-drivers (Ubuntu)
Invalid
Critical
Alberto Milone
unity (Ubuntu)
Fix Released
Medium
Jason Smith

Bug Description

When resuming I get oddness on the top around my panel, and oddly enough, an image of my old panel.

Clicking on the area shows that I'm running the unity panel (I can interact with the application indicators and application menu even though I can't see them) however it looks as if unity is drawing my old gnome panel.

Tags: too-late
Revision history for this message
Jorge Castro (jorge) wrote :
Alex Launi (alexlauni)
Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Neil J. Patel (njpatel) wrote :

Hey Jorge, do you still have gnome-panel running below the Unity one? I'm wondering if it's a rendering error because of stacked windows there...

Changed in unity:
assignee: nobody → Jay Taoko (jaytaoko)
importance: Undecided → High
milestone: none → 3.2.6
Changed in unity (Ubuntu):
importance: Undecided → High
Revision history for this message
Jay Taoko (jaytaoko) wrote :

This looks like a corruption of the fbo supporting the panel, launcher, tooltip... They should be recreated after identifying the proper X signal corresponding to a "resume". Or could it be possible to detect when the system is going into sleep mode?

Revision history for this message
Neil J. Patel (njpatel) wrote :

Jay we can figure that out through console kit at least. There might be a less heavy way, though, I'll investigate...

Neil J. Patel (njpatel)
Changed in unity:
importance: High → Critical
milestone: 3.2.6 → 3.2.8
David Barth (dbarth)
Changed in unity:
milestone: 3.2.8 → 3.2.12
Changed in unity (Ubuntu):
milestone: none → natty-alpha-2
assignee: nobody → Jay Taoko (jaytaoko)
Revision history for this message
KJ4OHH (kj4ohh) wrote :

I have simular problems on resuming from standby/hibernate. The unity bar on the left and the panel on the top appears bleached.

Also when the screen saver kicks in, the unity bar on the left never hides.

Using nVidia's proprietary drivers.

Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

On my Intel video card, the computer turns unusable. Almost all the screen turns black and I need to reboot in order to get it back.

Revision history for this message
Neil J. Patel (njpatel) wrote :

Jay, can we have an update on what happened from the platform sprint about this bug please?

Marco, can you please be more specific about your video card and the exact problem? So far this has happened on nvidia graphics cards.

Changed in unity:
milestone: 3.2.12 → 3.2.16
Revision history for this message
Marco Biscaro (marcobiscaro2112) wrote :

No, I can't :)

I got this issue last week. Now (with system up to date), it no longer happens. Sometimes, when wireless radio is on, the whole system crashes when resuming, but it looks like a driver bug. I'll fill this bug separated.

Revision history for this message
David Barth (dbarth) wrote :

Well, since there is not reproducible way so far, and it obviously seems like a driver issue, i'll mark that one invalid. If that ever happens again, we can reopen the bug.

As a workaround, there is some old code from Netbook Launcher that was flushing GL textures after a resume. We could resort to that kind of tactics if the bug resurfaces for some systems close to the beta freeze.

Let's try to have drivers fixed while we still can for this cycle.

Changed in unity:
status: Confirmed → Invalid
Changed in unity (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jay Taoko (jaytaoko) wrote :

Compiz has some API to detect Resume events. We have to consider how functional it is and it we can plug Nux to it. We would then try to re-create on screen surfaces and textures.

Revision history for this message
David Barth (dbarth) wrote :

Right, after re-reading the comments, it sounds like having invalid textures after resume could be a legitimate state for a GL driver.
So I agree, we should either use the compiz API or port the old Netbook Launcher code.

Changed in unity:
importance: Critical → Medium
milestone: 3.2.16 → 3.4
status: Invalid → Confirmed
Changed in unity (Ubuntu):
status: Invalid → Triaged
milestone: natty-alpha-2 → natty-alpha-3
Revision history for this message
Neil J. Patel (njpatel) wrote :

Moving to a couple of weeks away so we get a chance to test with the latest xorg and nvidia drivers, which aren't available just yet.

Changed in unity:
milestone: 3.4 → 3.4.6
importance: Medium → High
Changed in unity:
status: Confirmed → Triaged
Jay Taoko (jaytaoko)
Changed in unity:
milestone: 3.4.6 → 3.6
Changed in unity:
milestone: 3.6 → 3.6.2
Neil J. Patel (njpatel)
Changed in unity:
milestone: 3.6.2 → 3.6.6
Changed in unity:
milestone: 3.6.6 → 3.6.8
Changed in unity:
milestone: 3.6.8 → 3.8
Changed in unity:
milestone: 3.8 → 3.8.2
Changed in unity:
milestone: 3.8.2 → 3.8.4
Revision history for this message
Mike (bild85) wrote :

I see this too after waking from suspend. The retained image was pixelated - it looks similar to TV noise. Mousing over the Ubuntu symbol caused the menu to come out again, which redrew the menu and it retracted normally.

I caught a photo of the pixelization. It happens pretty repeatedly after waking from suspend.
Pic attached.

Changed in unity:
milestone: 3.8.4 → 3.8.6
Changed in unity (Ubuntu):
milestone: natty-alpha-3 → ubuntu-11.04-beta-2
Changed in unity:
milestone: 3.8.6 → 3.8.8
Revision history for this message
David Barth (dbarth) wrote :

The problem is limited to users of the nvidia drivers now. We can't fix the problem directly. A workaround would be to force a refresh on all textures, but that would be a significant change and not possible without an ABI change.

We should try to address that with Nvidia upstream next cycle.

tags: added: too-late
Changed in unity:
milestone: 3.8.8 → backlog
Changed in unity (Ubuntu):
milestone: ubuntu-11.04-beta-2 → none
Changed in unity:
importance: High → Medium
Changed in unity (Ubuntu):
importance: High → Medium
Revision history for this message
David Barth (dbarth) wrote :

Lowering the priority, considering it's limited to only one of the GPU vendors.

Revision history for this message
larini (paulo-larini) wrote :

Hi, this is terrible bug. NVidia corresponds to a very high number of users in linux. There is a light for this bug?

Revision history for this message
Stefan Sommer (stefan-nefan) wrote :

I have the same problem with radeon drivers.

Revision history for this message
yamzz (j-yamut) wrote :

I'll just put this in here since it seems like a similar case. I hope you don't mind.

The description is like this:

After suspend, everything works but the Unity launcher is distorted (no icons can be seen, everything is a mix of colors) and sometimes invisible. I noticed that the longer it's on suspend distortion is likely to happen but a few minutes, say 1 minute to 3 minute suspend will make the launcher invisible.

A fix is to move the mouse over the launcher or bring out the dash. That appears to work all the time. It would seem this bug is not of critical importance but it really looks odd with the launcher distorted or invisible whenever my desktop comes out from suspend.

Using Nvidia proprietary driver.

Revision history for this message
Holger Seelig (holger-seelig) wrote :

This does not happen with Nouveau graphics driver.

Revision history for this message
appas (matias-wilkman) wrote :

This problem also exists on my Asus VX2Se with NVidia 9500M GS, using NVidia driver version 173.14.30. After suspend/resume, the whole screen or the Unity bar will be garbled.

Why not redraw the screen once after resume?

Revision history for this message
Mike Birchley (mbirchley) wrote : Re: [Bug 676166] Re: Screen corruption when resuming from suspend

On Mon, 2011-08-15 at 22:13 +0000, dep wrote:
> Why not redraw the screen once after resume?
. . it is a minor inconvenience, moving the mouse over the launcher
immediately redraws it. Though it's not a slick way to present a
desktop, I agree.

If I do as you suggest, how might I do that? Is there a configuration
file I can alter to do this after in my case, hibernate. Suspend doesn't
seem to work well on this laptop, the HP DV4.

Mike

--
Linux powered laptop

Revision history for this message
Chris Halse Rogers (raof) wrote : Re: Screen corruption when resuming from suspend

This seems to be the contents of FBOs being trashed across as suspend/resume cycle. It seems that nvidia fixed a similar problem for GNOME Shell in http://www.nvidia.com/object/linux-display-amd64-275.09.07-driver.html - we should ask if this can be generalised, or a similar fix put in for Unity.

affects: unity (Ubuntu) → nvidia-graphics-drivers (Ubuntu)
Changed in nvidia-graphics-drivers (Ubuntu):
assignee: Jay Taoko (jaytaoko) → Alberto Milone (albertomilone)
assignee: Alberto Milone (albertomilone) → Chris Halse Rogers (raof)
Revision history for this message
Alberto Milone (albertomilone) wrote :

Can you try disabling Grub's fb, please?

Revision history for this message
wil johnson (wiljohnson38-yahoo) wrote : Re: [Bug 676166] Re: Screen corruption when resuming from suspend

Please give me step by step instructions to disable Grub's fb.

Thanks,
Wil

>________________________________
>From: Alberto Milone <email address hidden>
>To: <email address hidden>
>Sent: Tuesday, August 23, 2011 10:59 AM
>Subject: [Bug 676166] Re: Screen corruption when resuming from suspend
>
>Can you try disabling Grub's fb, please?
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/676166
>
>Title:
>  Screen corruption when resuming from suspend
>
>Status in Unity:
>  Triaged
>Status in “nvidia-graphics-drivers” package in Ubuntu:
>  Triaged
>
>Bug description:
>  When resuming I get oddness on the top around my panel, and oddly
>  enough, an image of my old panel.
>
>  Clicking on the area shows that I'm running the unity panel (I can
>  interact with the application indicators and application menu even
>  though I can't see them) however it looks as if unity is drawing my
>  old gnome panel.
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/unity/+bug/676166/+subscriptions
>
>
>

Revision history for this message
Alberto Milone (albertomilone) wrote : Re: Screen corruption when resuming from suspend

Here's how you can disable grub's framebuffer for nvidia cards:

1) copy the attached file to /usr/share/grub-gfxpayload-lists/blacklist/

2) type:
sudo update-grub-gfxpayload

3) reboot

4) try to reproduce the problem

Revision history for this message
Mike Birchley (mbirchley) wrote :

Have just tried this fix, but problem remains on this HP Dv4 laptop with current NVidia module, no different

Revision history for this message
wil johnson (wiljohnson38-yahoo) wrote :

Have just tried this fix, -- problem remains on this Gateway GT5426E desktop with NVIDIA Gforce 6150 SE

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

I experience this very reproducibly on a brand-new System76 Serval Professional with the base GPU (NVIDIA GeForce GTX 560M). Not a great way to welcome people to the world of Ubuntu. :/

Revision history for this message
Loris Zinsou (nepenthes) wrote :

I experienced this bug in Natty, but the situation changed in Oneiric. The desktop now shows corruption after a suspend/resume cycle : the Unity Launcher and Panel are not pixelated, but the desktop is.
If I open a new window, the window seems to appear behind the pixelated layer.
If I use the expo plugin in compiz, the effect appears behind this layer too.
The only way to get rid of this is to restar Xorg.

I use a nvidia 8400m gs, drivers : 280 on a Dell xps m1330 laptop.

Revision history for this message
Vladimir Scherbaev (zemik) wrote :

I have this bug on Asus k43sj.

Description: Ubuntu oneiric (development branch)
Release: 11.10
nvidia-current:
  Installed: 280.13-0ubuntu1
  Candidate: 280.13-0ubuntu1
  Version table:
 *** 280.13-0ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/restricted amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Jason Smith (jassmith) wrote :

The contents of the FBO are not corrupted it seems, but the act of painting the FBO to the backbuffer is for some reason broken on nvidia after a suspend/resume cycle...

Revision history for this message
dino99 (9d9) wrote :

on Oneiric i386 + nvidia 280

get corruption too while resuming, but not only: get it if i first logout of gnome-classic and see that corruption of the 1/5 bottom screen when i shutdown (so can is it a plymouth conflict ?)

Revision history for this message
douham (dougg) wrote :

Get screen corruption on resuming. Geforce 8400GS card and nvidia 280.13 driver. Logging out and then log back in ¨fixes¨ the problem for that session only

Omer Akram (om26er)
Changed in unity (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Mathieu Pellerin (nirvn-asia) wrote :

Wondering whether https://bugs.launchpad.net/ubuntu/+source/unity/+bug/830299 is somehow a duplicate of this bug.

Revision history for this message
Jorge Suárez de Lis (ys) wrote :

Yep Mathieu, I'd mark it as duplicate of this bug.

Same here, Nvidia GTS250 with Nvidia 280.13 drivers. Attached screenshot of corruption.

Revision history for this message
Mathieu Pellerin (nirvn-asia) wrote :

Glad we're moving forward and finding duplicates.

That being said, I suggest for the bug's importance to be elevated to critical. When this bug was initially filed, only the top bar and/or launcher was suffering from screen corruption but the main desktop area was left unscrambled. In the upcoming 11.10, the whole screen gets corrupted.

Revision history for this message
Jacopo Moronato (jmoronat) wrote :

+1 for Mathieu.

Revision history for this message
Eylem (eylemkoca) wrote :

It seems the bug I just reported (https://bugs.launchpad.net/unity/+bug/843460) is a duplicate of this one. Just to show how my screen looks like after resume: https://launchpadlibrarian.net/79192397/Screenshot%20at%202011-09-06%2021%3A44%3A59.png

Revision history for this message
Cas (calumlind) wrote :

While testing Oneiric beta I encountered the same whole desktop corruption when resuming from suspend with 280.13 nvidia driver. It looks identical to Jorge Suárez de Lis's screenshot. I should add that everything is fine when resuming from hibernate.

I tried testing with 173 nvidia driver but found when resuming, 4 our of 5 times, resulted in blank screen with only the mouse cursor. However the times it did work properly there was no graphical corruption.

I have been using Natty since its release and have seen similar corruption but limited only to the dock area.

I think the new desktop corruption in Oneiric should result in this bug being changed to high/critical priority.

Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

This is affecting me as well on Oneiric, using the proprietary nvidia drivers. Upon resume, the desktop is completely filled with static and most things won't work. I can blindly open a terminal and run 'compiz --replace &', and things come back to normal. This happens on every resume, 100% repeatable.

I agree with previous posts, this should be elevated to high/critical, as it seems to affect lots of nvidia users.

Revision history for this message
Zero (pupp3t-mast3r) wrote :

Also I have corruption after suspending, Nividia-9600gt. I will attach an screenshot; Curiously it affects the desktop background and applications but not menus, modal windows or unity panel dock and drawer; they appear on top of the corruption.

Revision history for this message
Jacopo Moronato (jmoronat) wrote :

I have corruption after resuming from hibernate too.
Does it also happen to you ?

Revision history for this message
Eylem (eylemkoca) wrote : Re: [Bug 676166] Re: Screen corruption when resuming from suspend

@Zero: Exactly like mine.

By the way, I tested this just now and the desktop is still corrupted
but there is no grainy layer; the areas that are painted, they are
painted properly without corruption, and the rest is painted in white.

Eylem

On Fri, Sep 9, 2011 at 3:20 AM, Zero <email address hidden> wrote:
> Also I have corruption after suspending, Nividia-9600gt. I will attach
> an screenshot; Curiously it affects the desktop background and
> applications but not menus, modal windows or unity panel dock and
> drawer; they appear on top of the corruption.
>
> ** Attachment added: "Screenshot at 2011-09-09 01:00:12.png"
>   https://bugs.launchpad.net/unity/+bug/676166/+attachment/2375470/+files/Screenshot%20at%202011-09-09%2001%3A00%3A12.png
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (843460).
> https://bugs.launchpad.net/bugs/676166
>
> Title:
>  Screen corruption when resuming from suspend
>
> Status in Unity:
>  Triaged
> Status in “nvidia-graphics-drivers” package in Ubuntu:
>  Triaged
> Status in “unity” package in Ubuntu:
>  Triaged
>
> Bug description:
>  When resuming I get oddness on the top around my panel, and oddly
>  enough, an image of my old panel.
>
>  Clicking on the area shows that I'm running the unity panel (I can
>  interact with the application indicators and application menu even
>  though I can't see them) however it looks as if unity is drawing my
>  old gnome panel.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/unity/+bug/676166/+subscriptions
>

Revision history for this message
Eylem (eylemkoca) wrote :

Yup, I have the same kind of corruption with resume from hibernate as well.

Eylem

On Fri, Sep 9, 2011 at 7:45 AM, Jacopo Moronato
<email address hidden> wrote:
> I have corruption after resuming from hibernate too.
> Does it also happen to you ?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (843460).
> https://bugs.launchpad.net/bugs/676166
>
> Title:
>  Screen corruption when resuming from suspend
>
> Status in Unity:
>  Triaged
> Status in “nvidia-graphics-drivers” package in Ubuntu:
>  Triaged
> Status in “unity” package in Ubuntu:
>  Triaged
>
> Bug description:
>  When resuming I get oddness on the top around my panel, and oddly
>  enough, an image of my old panel.
>
>  Clicking on the area shows that I'm running the unity panel (I can
>  interact with the application indicators and application menu even
>  though I can't see them) however it looks as if unity is drawing my
>  old gnome panel.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/unity/+bug/676166/+subscriptions
>

Revision history for this message
David Barth (dbarth) wrote : Re: Screen corruption when resuming from suspend

Moving back the bug on the release radar.

@jaytaoko: what's the simplest way to refresh the textures when receiving a signal? consider that on resume some script would ping Unity for those chipsets where it is required, a la netbook-launcher.

Changed in unity:
milestone: backlog → 4.16.0
Revision history for this message
Zero (pupp3t-mast3r) wrote :

I tested hibernation and it does happen to.

summary: - Screen corruption when resuming from suspend
+ Screen corruption when resuming from suspend/hibernate
Jason Smith (jassmith)
Changed in unity:
importance: Medium → Critical
Changed in nvidia-graphics-drivers (Ubuntu):
importance: Medium → Critical
Bryce Harrington (bryce)
Changed in nvidia-graphics-drivers (Ubuntu):
assignee: Chris Halse Rogers (raof) → Alberto Milone (albertomilone)
Revision history for this message
David Barth (dbarth) wrote : Re: Screen corruption when resuming from suspend/hibernate

Talking with Jason, the bug is confirmed to be really nvidia specific, and the only safe workaround from a unity perspective is to restart the window manager to ensure textures AND GL windows are properly reassigned/reallocated.

That's outside of unity's scope -> marked invalid.

Changed in unity:
assignee: Jay Taoko (jaytaoko) → nobody
milestone: 4.16.0 → none
status: Triaged → Invalid
Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

My whole desktop is pixelated when coming out of suspend... see screen photos attached.

Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

Here's some interesting info...If I suspend and resume while using gnome-shell, everything comes back perfectly -- no screen corruption.

Revision history for this message
Eylem (eylemkoca) wrote :

@Cory: I know. What I don't know is how come they dismiss this bug as "Invalid". So, it's not exactly "Nvidia specific". It's rather Nvidia+Unity, which affects Unity desktop. If Unity developers won't implement a workaround, then at least someone should coordinate with Nvidia to fix the problem. And it is a very serious problem, mind you. I mean, we're talking about an OS that offers Nvidia proprietary drivers (when detected), which when activated breaks the sleep/hibernation. Does that sound right to anybody?

Revision history for this message
Damian Beltrami (damian-beltrami-id) wrote :

Agreed. if I cannot suspend and resume quickly and cleanly, things are pretty much unworkable. Back to Natty.
Can't comment on whether the bug is invalid or not, but it is certainly unacceptable.

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

This is indeed very serious and should be fixed asap. Imagine you are working on an document, leave the application open and suspend your machine. Then you come back and the desktop is no longer accessible because you simply cannot see where to click. How can you try and save that doc to, lets say, another drive when you cannot see anything?

If the only workaround is to exit the session and restart lightdm, then log in again, your work is lost...

Revision history for this message
Felix (apoapo) wrote :

I really hope this issue isn't going to last as long as the old nvidia gfx card one with natty.. Nearly the whole release cycle natty was without nvidia support for old nvidia cards.
Now it looks like oneiric won't support nvidia at all. (Loosing my screen during standby/hibernate and while adding an external monitor is "not supported" for me.)

These 100% showstoppers are so damn bad for the reputation of the Linux world (because Ubuntu is the most representative OS to potentially new users). New users don't know about different DEs, distributions or even how to install a binary driver from the nvidia website to circumvent such a bug. And there is a great chance they don't want to know..

More experienced users like us most probably even like to find/fix bugs in their system. But what i really like is that we can contribute (bug reports/fixing) to a Ubuntu alpha/beta to provide the normal user a GOOD experience with the full release.

Lets hope nvidia is fast enough with fixing this one.. Imo oneiric should not be released when nvidia cards don't work 100%.

Revision history for this message
Brian Buchanan (nighthawk-uk) wrote :

For me the screen corruption also occurs after changing the screen resolution, not just when resuming from suspend / hibernation.

Revision history for this message
Christian Theune (ctheune) wrote :

@apoapo: Yeah, I wouldn't call my card old yet (2 years, hello?) and I was happy in Natty that I got suspend working reliably at all. Now I'm back to 2003. ;)

@nighthawk-uk: I see those issues too, when switching to dual-monitor setup, but they disappear after waiting for a bit and switching resolutions back and forth. Not ideal and still needs to be resolved (I think there's a bug recorded somewhere) but at least there's a workaround.

Revision history for this message
phillamg (me-phillg) wrote :

A temporary workaround is to run the command (or create a little launcher in the Unity panel) "DISPLAY=:0.0 compiz --replace" which replaces compiz and fixes the screen image. FWIW the corruption only appears on my main screen (I use twin view and a separate instance of compiz on Screen 1 along with Docky).

Revision history for this message
Jacopo Moronato (jmoronat) wrote :

@ David Barth
If it is nvidia-specific, this bug should occur in Gnome-Shell session too, right ?
In my opinion, this could be a compiz-related bug (since G-S runs on mutter).

Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

@Jacopo: I think that's accurate. Given that this seems to only affect unity, I don't think it has anything to do with the nvidia driver itself.

At this point I've stopped using unity and only use gnome-shell.

Revision history for this message
Jancis (beaver-inbox) wrote :

I am having the same problem with 11.10 beta.
Using macbook 6.2 with nvidia proprietary driver

---------------------------
Kernel: 3.0.0-11-generic #18-Ubuntu SMP Tue Sep 13 23:38:01 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
NVIDIA Driver Version: 280.13

Graphics Processor: GeForce GT 330M
CUDA Cores: 48
VBIOS Version: 70.16.58.0a.00
Memory: 256 MB
Memory Interface: 128-bit
Bus Type: PCI Express x16 Gen1
Bus ID: PCI:1:0:0
PCI Device ID: 0x0a29
PCI Vendor ID: 0x10de

Revision history for this message
Felix (apoapo) wrote :

I saw a comment that stated that nvidia fixed something in their driver to make gnome shell work. That developer said that nvidia could include such a fix (or workaround?) for unity aswell. I lost the source unfortunately.
So this is somehow nvidia related..

Revision history for this message
Cas (calumlind) wrote :

@Felux The same driver, 280.13, works pretty much fine with Unity on Natty so how does that fit into the equation.

I find it astonishing that for a beta release of Oneric there are major bugs that mean I cannot use Oneiric with my nvidia laptop and 2 external monitors when compared with the same setup running perfectly under Natty.

Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

Weird...So I just resumed from suspend, expecting my desktop to be corrupt like usual (I was using unity at the time)...but this time it wasn't. When it came out of suspend, I saw the desktop come up immediately, then fade out to the login screen (I did see corruption in the top bar as it was fading). But when I logged back in, everything came back up corruption-free.

Not sure what that means, I'll see if it happens again.

Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

Ok, I've suspended and resumed several times now, and I get initial weirdness, but then everything comes back. Is anyone else seeing this, or just me?

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

For me the issues still persist. Resuming from suspend or hibernation is still messed up...

Revision history for this message
Jacopo Moronato (jmoronat) wrote : Re: [Bug 676166] Re: Screen corruption when resuming from suspend/hibernate

Still here for me too.

Revision history for this message
Cory Maccarrone (darkstar6262) wrote : Re: Screen corruption when resuming from suspend/hibernate

OK, it seems intermittant for me. I just resumed this morning to corruption.

Changed in nvidia-graphics-drivers (Ubuntu):
milestone: none → ubuntu-11.10
Revision history for this message
Mike Birchley (mbirchley) wrote : Screen corruption from hibernation

Not sure if this is off topic or a lead, I've been desktop recording and
notice intense flickering from both gnome-panel and launcher in
resulting recordings. Are they rewriting?

Jason Smith (jassmith)
Changed in nvidia-graphics-drivers (Ubuntu):
status: Triaged → Invalid
Changed in unity (Ubuntu):
status: Triaged → Fix Committed
Changed in unity:
status: Invalid → Fix Committed
Changed in unity (Ubuntu):
assignee: nobody → Jason Smith (jassmith)
Changed in unity:
assignee: nobody → Jason Smith (jassmith)
Revision history for this message
Bryce Harrington (bryce) wrote : Re: Screen corruption when resuming from suspend/hibernate

Turned out it was in fact a bug in Unity. This is what was discovered:

An FBO texture is being corrupted: this texture belongs to the
drag-and-drop full-screen input window [1], a fullscreen window which is
supposed to be transparent, but whose texture is never redrawn after
it's created, including after mode switches, suspend/resume cycles, etc.
Since FBO textures, including the alpha data that normally makes the DND
window transparent, are not preserved after suspend, the garbage texture
data for this window produces the observed corruption upon resume.

And here's the fix for Unity that Jason Smith (from DX) made:

http://bazaar.launchpad.net/~unity-team/unity/trunk/revision/1590

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

It's nice that this has been finally pinned down. Let's hope there will be an update in due time, too. :)

Revision history for this message
Arpad Borsos (swatinem) wrote :

Thanks a lot for the fix and also the explanation.

I have another question however: Why does unity need a fullscreen texture (1280x800x4 bytes) at all for this invisible window. Does this contribute to the high memory usage of unity? Isnt it better to just create geometry (for the events and such) but without needing an invisible texture that wastes 4M of my precious memory?

Revision history for this message
Jason Smith (jassmith) wrote :

It doesn't need it and will be removed when someone gets the chance (the toolkit creates teh texture to go with the input window, so we would have to bypass the toolkit for this)

Omer Akram (om26er)
Changed in unity:
milestone: none → 4.18.0
Changed in nvidia-graphics-drivers (Ubuntu):
milestone: ubuntu-11.10 → none
Changed in unity (Ubuntu):
milestone: none → ubuntu-11.10
Revision history for this message
Wayne Davison (wayned) wrote :

For those experiencing this bug, here's an easier work-around when coming out of suspend:

Press Alt-F2 and type "compiz --replace" and press Enter. That will get rid of the corruption and let you continue using your programs.

Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (6.0 KiB)

This bug was fixed in the package unity - 4.18.0-0ubuntu1

---------------
unity (4.18.0-0ubuntu1) oneiric; urgency=low

  * New upstream release.
    - Screen corruption when resuming from suspend/hibernate (LP: #676166)
    - unity-panel-service crashed with SIGSEGV in bamf_factory_view_for_path()
      (LP: #764024)
    - Dash and launcher appear underneath windows (LP: #805087)
    - unity-panel-service crashed with SIGSEGV in g_type_check_instance_cast()
      (LP: #811401)
    - [Oneric] unity-panel-service crashed with SIGSEGV in getenv()
      (LP: #817691)
    - compiz crashed with SIGSEGV in unity::FilterBar::RemoveFilter()
      (LP: #845732)
    - crash on closing a window (LP: #856015)
    - Cannot open a window that starts iconified (LP: #732997)
    - Launcher - When useing Alt F1 launcher keyboard navigation, Launcher
      should not scroll until top or bottom of Launcher is reached
      (LP: #765749)
    - Stacking problem when switching between apps with multiple windows
      (LP: #802527)
    - Pull panel to de-maximize window occasionally not working in a secondary
      screen (LP: #802651)
    - Window under Dash gets focused if it opened later (LP: #830730)
    - Clickable areas of previously active window remains on 'Show Desktop'
      (LP: #836325)
    - A minimized window 'remains' behind on the desktop if
      /apps/compiz-1/plugins/unityshell/screen0/options/show_minimized_windows
      is set to true (LP: #847967)
    - a11y support on Unity is broken (LP: #851103)
    - compiz crashed with SIGSEGV in dee_model_get_tag() (LP: #840758)
    - crash when looping paint list in preparePaint (on closing windows)
      (LP: #853807)
    - Alt-Tab should not preview windows at excessively large sizes
      (LP: #854740)
    - Clicking on a tweet/message link sometimes does not work (LP: #790565)
    - Dragging a launcher icon makes it squashed (LP: #855761)
    - unable to unminimize gedit windows where more than one window where one
      has a dialog open (LP: #856030)
    - (oneiric) alt-tab UX doesn't work well on multi-monitor (LP: #855364)
    - Launcher shows on the primary monitor instead of the left most monitor
      (LP: #857668)
    - Keynav - pressing down key causes launcher items to jump up and down
      (LP: #858469)
    - Windows creep cross the screen with ALT+TAB (LP: #722830)
    - Minimize animation flickr when for maximized apps (LP: #737125)
    - All unity windows are invisible (panel, launcher, dash) (LP: #745996)
    - Dash "See 97 more results" has ~1 second of latency (LP: #731158)
    - Windows cannot be dragged down from panel if banshee closed to sound
      menu (LP: #781215)
    - no menu bar on top, compositing bug? (LP: #806358)
    - Launcher - a spread can accidentally be triggered during the 'dragging
      and dropping behind the Launcher' interaction (LP: #832988)
    - Impossible to navigate between panel menus when the mouse cursor is over
      the panel (LP: #834065)
    - Pressing alt on maximized window does show menu but not window controls
      (LP: #836274)
    - Application name drawn under Dash controls when window opens under Dash
      (LP: #838176)
    - Start ...

Read more...

Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Cory Maccarrone (darkstar6262) wrote :

This seems to have resolved the corruption issues for me -- I've suspended/resumed many times, with no corruption.

Revision history for this message
Cas (calumlind) wrote :

The full desktop corruption has been resolved however the corruption of the launcher bar is still occurring which I think returns this bug to the original reported problem.

I would now rate this bug as low/medium as you can mouse over the launcher causing a refresh and the corruption to disappear.

Revision history for this message
Damian Beltrami (damian-beltrami-id) wrote :

I am having the same experience as Cas. Agree with low/medium rating as work around is easy to manage.

Cas (calumlind)
Changed in unity (Ubuntu):
status: Fix Released → Confirmed
Omer Akram (om26er)
Changed in unity (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Cas (calumlind) wrote :

@Omar How can you set this to fix released if it is not completely fixed? There is still an issue that affects both Natty and Oneiric with corruption of the launcher bar.

Revision history for this message
Arpad Borsos (swatinem) wrote :

Right.
The whole-screen corruption in oneiric was fixed, but I still have artifacts in the place where the launcher should be, which go away once I hover over the left and the launcher appears.

Revision history for this message
Jacopo Moronato (jmoronat) wrote :

Or maybe we could open a new bug, actual description of this is a bit inaccurate.
And as far as I know, the actual bug (corruption of "launcher area") has to be addressed to Nvidia upstream.

Revision history for this message
Cas (calumlind) wrote :

@Jacopo I don't think a new bug should be opened because there are a lot of people signed up for this bug and I can imagine they all use the nvidia propriety driver and experience the same issue. Also reviewing the history of this bug it seems that from comment #13 onwards it had solidified into the Launcher corruption issue on Natty with a recent deviation for the additional desktop issue on Oneiric.

Can we be certain that the Launcher corruption is an nVidia issue as the whole-desktop corruption ended up being fixed in Unity.
However if this is an nVidia issue surely there should already be an upstream report because this Launcher issue was reported while Natty was still in beta.

Revision history for this message
Eylem (eylemkoca) wrote : Re: [Bug 676166] Re: Screen corruption when resuming from suspend/hibernate

I thought it was clear from above that it's NOT an Nvidia issue but
rather a Compiz problem. Let's not mix things here. If there was a
problem with Nvidia, Gnome-Shell, Kwin and all the rest would have the
same corruption problem.

On Thu, Sep 29, 2011 at 8:09 PM, Cas <email address hidden> wrote:
> @Jacopo I don't think a new bug should be opened because there are a lot
> of people signed up for this bug and I can imagine they all use the
> nvidia propriety driver and experience the same issue. Also reviewing
> the history of this bug it seems that from comment #13 onwards it had
> solidified into the Launcher corruption issue on Natty with a recent
> deviation for the additional desktop issue on Oneiric.
>
> Can we be certain that the Launcher corruption is an nVidia issue as the whole-desktop corruption ended up being fixed in Unity.
> However if this is an nVidia issue surely there should already be an upstream report because this Launcher issue was reported while Natty was still in beta.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (843460).
> https://bugs.launchpad.net/bugs/676166
>
> Title:
>  Screen corruption when resuming from suspend/hibernate
>
> Status in Unity:
>  Fix Released
> Status in “nvidia-graphics-drivers” package in Ubuntu:
>  Invalid
> Status in “unity” package in Ubuntu:
>  Fix Released
>
> Bug description:
>  When resuming I get oddness on the top around my panel, and oddly
>  enough, an image of my old panel.
>
>  Clicking on the area shows that I'm running the unity panel (I can
>  interact with the application indicators and application menu even
>  though I can't see them) however it looks as if unity is drawing my
>  old gnome panel.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/unity/+bug/676166/+subscriptions
>

Revision history for this message
Damian Beltrami (damian-beltrami-id) wrote : Re: Screen corruption when resuming from suspend/hibernate

I am no longer experiencing any screen corruption, either at the desktop or the launcher. So this bug appears to be fixed for me. I also changed to running the Nvidia Version-Current drivers (not the post-release driver). Not sure if this is part of the fix but everything looks good now.

Cas (calumlind)
summary: - Screen corruption when resuming from suspend/hibernate
+ Unity Launcher corruption when resuming from suspend/hibernate
Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

For me, the screen corruption now only affects the launcher. I am looking forward for a fix. :)

Revision history for this message
MarcoBertolini (bertolini) wrote :

I confirm. With unity 4.22.0, the screen corruption affecting the launcher is still present. I'm using Nvidia with proprietary driver. I wouldn't rate this as a high priority, but still it is quite annoying.

Revision history for this message
Emmanuel Tychon (etychon) wrote :

When resumed from sleep, the launcher bar at the left appears corrupted. Simply mousing over will redraw it, no bid deal. This has been reported by many users already.

Another interesting artifact is the window "shadow". The darker zone undernearth windows is not completely black, but filled with garbage data or even sometimes content of a web-page I closed earlier.

Using various nVidia drivers (current, port-release or edgers) leads to the same results.

Using Unity 4.22.0-0ubuntu3

Let me know if I can be of any help and thanks in advance for your support.

Revision history for this message
Vladimir Scherbaev (zemik) wrote :

This bug not fixed for me in 11.10:

unity:
  Installed: 4.24.0-0ubuntu2
  Candidate: 4.24.0-0ubuntu2
  Version table:
 *** 4.24.0-0ubuntu2 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     4.22.0-0ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
compiz:
  Installed: 1:0.9.6+bzr20110929-0ubuntu5
  Candidate: 1:0.9.6+bzr20110929-0ubuntu5
  Version table:
 *** 1:0.9.6+bzr20110929-0ubuntu5 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:0.9.6+bzr20110929-0ubuntu3 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

Revision history for this message
Colin (dentarthurdent) wrote :

still happening to me too

Revision history for this message
Jancis (beaver-inbox) wrote :

I solved this by switching to open source driver. Have to use DVI now, VGA doesn't work, but at least it's WAY easier to switch screens using ubuntu built-in switcher (it happens automatically!).
Actually, screen switching is why I don't like nvidia driver. It's complicated and requires to open configurator manually :(

Revision history for this message
Conrad Steenberg (conrad-steenberg) wrote :

Still happens to me as well

Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

@developers/triagers
Should we set this bug's status in unity in Ubuntu back to New, since there are multiple reports that it is not fixed? Or should a separate bug be opened? Or something else?

Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :

It's better to open a new bug, please.

Revision history for this message
Eliah Kagan (degeneracypressure) wrote :

I'm not actually affected by this bug, but perhaps someone who (still) is can submit a new bug report (and post here indicating which bug it is), in accordance with Fitoschido's recommendation.

Revision history for this message
Lino Barreca (linobarreca) wrote :

lots of new bugs are filed for this problem (look at "duplicate bugs" up the page and the dates) but it doesn't have sense because someone continues to link them to this one (and they get ignored!)
reopen this bug instead or tell people there to NOT link the bugs to this one.
btw..I'm one of the affected user... :(

Revision history for this message
Cas (calumlind) wrote :

In a recent comment I made a clear point as to why this bug is still open and I even altered the title to prevent further confusion.

https://bugs.launchpad.net/unity/+bug/676166/comments/80

The point was also made that it was a Compiz and not a Unity nor Nvidia bug.

Revision history for this message
Tomodachi (tomodachi) wrote :

have anyone else noticed the same issue when you switch users?
I used to get this issue when i suspend/ resumed.
Its not happening anymore
But just noticed that it also happens when i switch into a guest session and back

I have a nvidia9400M
dpkg tells me unity is version: 4.22.0-0ubuntu3

Revision history for this message
Zordid (zordid-gmx) wrote :

This bug is still present in the new 11.10!

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

Still have this issue as well.

As a side note, simply hovering over the launcher when coming out of suspend or hibernation when a window is maximized doesn't always clear the corruption. I then have to first minimize the window and then touch the launcher with the mouse cursor and it clears up.

Revision history for this message
Rufus (balaenoptera-rufus) wrote :

This bug affects my machine too, running Ubuntu 11.10 Oneiric. Video card is nVidia 9600GT with recommended nVidia driver 280.13. The launcher bar is corrupted after suspend and resume, as well as the top panel. The top panel sometimes stays corrupted even after hovering the mouse over it and after clicking menu items.

Revision history for this message
Rufus (balaenoptera-rufus) wrote :

After manually installing nVidia display driver 290.10 the problem persists. Screen corruption issue is still the same with the new driver.

Revision history for this message
Steve Magoun (smagoun) wrote :

Bug 915265 describes the launcher corruption issue that is still present after the Unity 4.18 release.

Revision history for this message
Alexey Brodkin (alexey-brodkin) wrote :

Still persists in 11.10 32-bit even with:
nvidia-current 290.10-0ubuntu1~oneiric~xup1 from "ppa:ubuntu-x-swat/x-updates"
unity 5.0.0~+bzr1825ubuntu0+611 from "ppa:unity-team/ppa"

Revision history for this message
Wolter HV (wolterh) wrote :

This problem is still present in Ubuntu 13.04 (amd64) with nVidia 8600M GT.

Changed in compiz:
status: New → Invalid
Revision history for this message
Tammy Yang (wanchingy) wrote :

The issue can still be re-produced with Nvidia prime driver 331.20, private bug reported as lp:1278294, corresponding to Nvidia bug #1464852.

Revision history for this message
Tammy Yang (wanchingy) wrote :

$uname -r

Linux u-HP-ENVY-15-Notebook-PC 3.11.0-17-generic #31~precise1-Ubuntu SMP Tue Feb 4 21:25:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

$dpkg -l | grep unity
ii unity 5.20.0-0ubuntu3

$lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller [8086:0c04] (rev 06)
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller [8086:0c01] (rev 06)
00:02.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [8086:0416] (rev 06)
00:03.0 Audio device [0403]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller [8086:0c0c] (rev 06)
00:14.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI [8086:8c31] (rev 05)
00:16.0 Communication controller [0780]: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 [8086:8c3a] (rev 04)
00:1a.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 [8086:8c2d] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #3 [8086:8c14] (rev d5)
00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 [8086:8c10] (rev d5)
00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 [8086:8c16] (rev d5)
00:1c.6 PCI bridge [0604]: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #7 [8086:8c1c] (rev d5)
00:1d.0 USB controller [0c03]: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 [8086:8c26] (rev 05)
00:1f.0 ISA bridge [0601]: Intel Corporation HM87 Express LPC Controller [8086:8c4b] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] [8086:8c03] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller [8086:8c22] (rev 05)
01:00.0 3D controller [0302]: NVIDIA Corporation Device [10de:1391] (rev a2)
07:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8188EE Wireless Network Adapter [10ec:8179] (rev 01)
09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5227] (rev 01)
0f:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :

I can confirm this issue still persisting on Trusty, after all these years.
FYI - I usually hide my Launcher; coming out of suspend shows a garbled mess where the launcher normally would be. See screenshot attached.

Revision history for this message
Rainer Rohde (rainer-rohde) wrote :
Revision history for this message
Tammy Yang (wanchingy) wrote :

For the symptom I mentioned in comment #104, it is found a Nvidia issue. Please check https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-
drivers-331/+bug/1210077

Close oem-priority task

no longer affects: oem-priority
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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