After update 2018-07-08 menus and buttons are behaving badly

Bug #1780846 reported by David McKelvie
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After an update to

   Description: Ubuntu 16.04.4 LTS
   Release: 16.04

Menus and buttons are behaving badly. This is a general issue, affecting most programs.
Text in buttons is not always being displayed.
When you mouse over an entry in a menu list the previous entry disappears
   e.g. the logout menu (power button icon at top right of panel)
Menu items are getting red backgrounds where they were not before.

Introduced by update done by update-manager on
   Last update Start-Date: 2018-07-08 21:25:10
Modified packages:

 libgles2-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libdrm-nouveau2:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm-nouveau2:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libapt-inst2.0:amd64 (1.2.26, 1.2.27)
 libegl1-mesa-dev:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 apt:amd64 (1.2.26, 1.2.27)
 libglapi-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libglapi-mesa:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 mesa-common-dev:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libxatracker2:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libegl1-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libapt-pkg5.0:amd64 (1.2.26, 1.2.27)
 apache2-data:amd64 (2.4.18-2ubuntu3.8, 2.4.18-2ubuntu3.9)
 libgbm1:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libdrm-amdgpu1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm-amdgpu1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 firefox-locale-en:amd64 (60.0.2+build1-0ubuntu0.16.04.1, 61.0+build3-0ubuntu0.16.04.2)
 libwayland-egl1-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libdrm2:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm2:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libgl1-mesa-dev:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 apt-utils:amd64 (1.2.26, 1.2.27)
 libgl1-mesa-dri:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libgl1-mesa-dri:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libosmesa6:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libosmesa6:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libgl1-mesa-glx:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libgl1-mesa-glx:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 libdrm-intel1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm-intel1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 apache2-bin:amd64 (2.4.18-2ubuntu3.8, 2.4.18-2ubuntu3.9)
 firefox:amd64 (60.0.2+build1-0ubuntu0.16.04.1, 61.0+build3-0ubuntu0.16.04.2)
 apt-transport-https:amd64 (1.2.26, 1.2.27)
 libdrm-radeon1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm-radeon1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 mesa-vdpau-drivers:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1)
 apache2:amd64 (2.4.18-2ubuntu3.8, 2.4.18-2ubuntu3.9)
 apache2-utils:amd64 (2.4.18-2ubuntu3.8, 2.4.18-2ubuntu3.9)
 libdrm-dev:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
 libdrm-common:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)

Tags: bot-comment
Revision history for this message
David McKelvie (dmck-interactive) wrote :
Revision history for this message
David McKelvie (dmck-interactive) wrote :

Example of gimp action menu.
Red backgrounds and black icons instead of coloured

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

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

Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

This bug affects me, too. I suspect libdrm update did this. (I am not sure though). They updated this package in order for changes HWE kernel (see http://changelogs.ubuntu.com/changelogs/pool/main/libd/libdrm/libdrm_2.4.91-2~16.04.1/changelog ) - but some people (including me) still use the GA kernel (4.4). The GA kernel should be supported for the entire lifespan of Ubuntu 16.04, so the graphics shouldn't be broken.

Revision history for this message
David McKelvie (dmck-interactive) wrote :

David Mckelvie is using

{{{
david:~$ echo $DESKTOP_SESSION:
gnome-flashback-metacity:

/var/log/lightdm/lightdm.log contains

Session pid=1370: Running command /usr/sbin/lightdm-session /usr/lib/gnome-flashback/gnome-flashback-metacity
}}}

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :
Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

I am using Xubuntu desktop

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

my kernel version:

$ uname --kernel-release
4.4.0-130-generic

update that did this on my machine:

Start-Date: 2018-07-08 17:16:36
Commandline: apt upgrade
Requested-By: danny (1000)
Install: libllvm6.0:amd64 (1:6.0-1ubuntu2~16.04.1, automatic), libllvm6.0:i386 (1:6.0-1ubuntu2~16.04.1, automatic), libstd-rust-1.25:amd64 (1.25.0+dfsg1+llvm-0ubuntu1~16.04.1, automatic)
Upgrade: libsoup-gnome2.4-1:amd64 (2.52.2-1ubuntu0.2, 2.52.2-1ubuntu0.3), libgles2-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libdrm-nouveau2:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), libdrm-nouveau2:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), rustc:amd64 (1.24.1+dfsg1+llvm-0ubuntu1~16.04.1, 1.25.0+dfsg1+llvm-0ubuntu1~16.04.1), gir1.2-soup-2.4:amd64 (2.52.2-1ubuntu0.2, 2.52.2-1ubuntu0.3), libapt-inst2.0:amd64 (1.2.26, 1.2.27), libarchive-zip-perl:amd64 (1.56-2, 1.56-2ubuntu0.1), apt:amd64 (1.2.26, 1.2.27), libglapi-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libglapi-mesa:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libxatracker2:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libegl1-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libstd-rust-dev:amd64 (1.24.1+dfsg1+llvm-0ubuntu1~16.04.1, 1.25.0+dfsg1+llvm-0ubuntu1~16.04.1), libapt-pkg5.0:amd64 (1.2.26, 1.2.27), libsoup2.4-1:amd64 (2.52.2-1ubuntu0.2, 2.52.2-1ubuntu0.3), libgbm1:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), rust-gdb:amd64 (1.24.1+dfsg1+llvm-0ubuntu1~16.04.1, 1.25.0+dfsg1+llvm-0ubuntu1~16.04.1), libdrm-amdgpu1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), libdrm-amdgpu1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), firefox-locale-en:amd64 (60.0.2+build1-0ubuntu0.16.04.1, 61.0+build3-0ubuntu0.16.04.2), libwayland-egl1-mesa:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libdrm2:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), libdrm2:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), apt-utils:amd64 (1.2.26, 1.2.27), libgl1-mesa-dri:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libgl1-mesa-dri:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libgl1-mesa-glx:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libgl1-mesa-glx:i386 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libdrm-intel1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), libdrm-intel1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), firefox:amd64 (60.0.2+build1-0ubuntu0.16.04.1, 61.0+build3-0ubuntu0.16.04.2), apt-transport-https:amd64 (1.2.26, 1.2.27), libdrm-radeon1:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), libdrm-radeon1:i386 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1), mesa-vdpau-drivers:amd64 (17.2.8-0ubuntu0~16.04.1, 18.0.5-0ubuntu0~16.04.1), libdrm-common:amd64 (2.4.83-1~16.04.1, 2.4.91-2~16.04.1)
End-Date: 2018-07-08 17:17:36

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

my graphics card information can be useful here:

$ lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)

I am using the open source (nouveau) drivers

Revision history for this message
David McKelvie (dmck-interactive) wrote :

Ditto. Also using that kernel

david:~$ uname --kernel-release
4.4.0-130-generic

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1780846/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
David McKelvie (dmck-interactive) wrote :

Also using NVIDIA Quadro and nouveau driver

david:~$ lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620] (rev a2)

david:~$ lsmod | grep video
video 40960 2 nouveau,asus_wmi

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

David, the bot in comment #11 suggests us to file this bug against some specific package rather than Ubuntu in general: I don't want to do this myself, since it's you who reported the bug and I don't want to "hijack" it: I suggest we set this bug against either libdrm-common, or (maybe better) libdrm-nouveau2 - do you agree?

Revision history for this message
David McKelvie (dmck-interactive) wrote :

I dont know enough to be sure whether or not libdrm-nouveau2 is the responsible package.
But I will change the package on this ticket to that, if it helps get it more attention.

affects: ubuntu → libdrm (Ubuntu)
Revision history for this message
Patrick Wigmore (patrick-wigmore) wrote :

Possible related or duplicate bug #1780664

Revision history for this message
Curtis Gedak (gedakc) wrote :

Thanks @Patrick for the link between the bug reports. Bug #1780664 contains instructions on how to revert to earlier libgl-mesa package versions while we wait for a fix.

Revision history for this message
Curtis Gedak (gedakc) wrote :

I was able to work-around this issue by rolling back only the *libgl-mesa* packages from version 18.0.5-0ubuntu0~16.04.1 to version 17.2.8-0ubuntu0~16.04.1.

I did not need to revert the *libdrm* packages in order to work-around this issue.

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

David, if the workaround in Bug #1780664 works in our case (i.e. for this bug) we should change the affected component from "libdrm" to "mesa": I was searching for something related to graphics drivers to be responsible for this bug, thought it was libdrm, but it can be mesa, too. Have you tried the workaround? I did not for now, I have a lot of work to do till weekend: and in my case Firefox, Mplayer, Dosbox and Vim work fine, which are the programs I use most, so I am not very pressured to do the fix, maybe I will wait until the official fix is out.

I was also thinking that another thing that may fix this could be upgrading the kernel from GA to HWE according to this article: https://wiki.ubuntu.com/Kernel/LTSEnablementStack (the command when they say "DESKTOP") - but this can be dangerous and can break other things so I was not brave enough to do this upgrade: also the bug can maybe stay even when the kernel is updated this way which would be sad

affects: libdrm (Ubuntu) → mesa (Ubuntu)
Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

changing package to "mesa" according to comment #17

Revision history for this message
David McKelvie (dmck-interactive) wrote :

Thanks to Patrick Wigmore and Curtis Gedak for diagnosing the problem and coming up with a way to revert the problem.

I downloaded the .deb files linked to from Bug #1780664.

Then

sudo dpkg -i \
libgbm1_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libwayland-egl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libegl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_i386.deb \
mesa-vdpau-drivers_17.2.8-0ubuntu0~16.04.1_amd64.deb

Then restarted the machine, tho restarting X might have done the job.

Now I am back to menus and buttons looking like they should.

Really good, thanks.

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

Like David, I downgraded the mesa packages in order for the problem to disapear. The package system needed the old libllvm library (unfortunately, I purged it with "sudo apt autoremove" before) so my command line for this downgrade/fix was

sudo dpkg -i \
libllvm5.0_5.0-3~16.04.1_amd64.deb \
libllvm5.0_5.0-3~16.04.1_i386.deb \
libgbm1_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libwayland-egl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libegl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_i386.deb \
mesa-vdpau-drivers_17.2.8-0ubuntu0~16.04.1_amd64.deb

now the menus and buttons look normally

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

This bug was marked as a duplicate of bug #1780664

But now I can see on bug #1780664 :

This bug was fixed in the package xorg-server - 2:1.18.4-0ubuntu0.8

I updated to this package, but it didn't help me.

It seems the "duplicate" status was wrong. The workaround still helps, but the fix of bug #1780664 did not help me.

I removed the "duplicate" tag.

Revision history for this message
Curtis Gedak (gedakc) wrote :

Daniel, can you try rebooting your computer or otherwise restarting the xserver and then re-testing?

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

Curtis, what I did was 1. I updated the system: the packages are not "held" on my system, so I got the new xorg-server and the new mesa libraries 2. I rebooted the computer and noticed that the XFCE menu is broken, it behaved the same as without the fix 3. after downgrading mesa libraries (see comment #21) and rebooting the computer again the menus were OK

this problem has visually different symptoms than bug #1780664 - in that bug, the menus were not visible at all, in this bug, the menus are there, but with strange colours and the text disappears, there are screenshots in this bug. so I think this is a different problem with the same mesa update, which is similar but not quite the same

@David McKelvie: what about you, did the xserver-common update work for you?

Revision history for this message
Curtis Gedak (gedakc) wrote :

Daniel, the KDE menu bar colour problem I experienced and noted in bug #1780664 also went away when I upgraded to the new xorg-server.

I had to reboot and upgrade all my packages twice in order to get the latest. You might try checking to ensure that you have all the latest packages.

Revision history for this message
David McKelvie (dmck-interactive) wrote :

The update to xserver-xorg-core 2:1.18.4-0ubuntu0.8 doesnt seem to fix the menu bug for me.

I apt-mark unheld libegl1-mesa libgbm1 libgl1-mesa-dri libwayland-egl1-mesa mesa-vdpau-drivers

Did an update. Checked that I had xserver-xorg-core 2:1.18.4-0ubuntu0.8 installed

Rebooted.

Then bug is back. Icons on Gimp Tool menu turns black and/red on mouse over.
Popup menu in emacs (when closing emacs window with unsaved files) does not display some buttons until you mouse over them. Popup menu for software updater has black background instead of white.

Revision history for this message
David McKelvie (dmck-interactive) wrote :

I reverted to the correct behaviour by

cd /home/david/DisplayBug-Jul7-2018

sudo dpkg -i \
libgbm1_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libwayland-egl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libegl1-mesa_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_amd64.deb \
libgl1-mesa-dri_17.2.8-0ubuntu0~16.04.1_i386.deb \
mesa-vdpau-drivers_17.2.8-0ubuntu0~16.04.1_amd64.deb

sudo apt-mark hold \
    libegl1-mesa \
    libgbm1 \
    libgl1-mesa-dri \
    libwayland-egl1-mesa \
    mesa-vdpau-drivers

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

so you all are using nouveau?

Changed in mesa (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Curtis Gedak (gedakc) wrote :

@Timo, I am using Intel HD Graphics and no longer experience issues as described in this report.

Revision history for this message
David McKelvie (dmck-interactive) wrote :

I am using nouveau

lspci -k says

01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K620] (rev a2)
 Subsystem: NVIDIA Corporation GM107GL [Quadro K620]
 Kernel driver in use: nouveau
 Kernel modules: nvidiafb, nouveau

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

I am also using nouveau

01:00.0 VGA compatible controller: NVIDIA Corporation GM107GL [Quadro K2200] (rev a2)
 Subsystem: NVIDIA Corporation GM107GL [Quadro K2200]
 Kernel driver in use: nouveau
 Kernel modules: nvidiafb, nouveau

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

well, there's probably a regression in the nouveau driver then.. does 18.04 have the same issue or not?

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

Hello, I plan to create a DVD or flash with live 18.04, boot it on the machine and test the bug. I had a vacation, so I didn't do it yet.

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

Well, I created a bootable DVD with 18.04 and booted it on the machine: it does NOT have this issue.

Changed in mesa (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
David McKelvie (dmck-interactive) wrote :

Ditto. I created a bootable DVD with 18.04 and booted it on the machine: it does NOT have this issue.

But not sure if this shows anything, as 18.04 is quite different. Different desktop, gimp and emacs versions. But maybe.

Revision history for this message
Kirill Erofeev (erofeev-info) wrote :

Hi,
Besides issues with buttons I experience transparency in dialog menus (where should not be any transparency).
The updated xorg does not help (I've double check this).
Downgrade mesa fixes this.
I use nouveau with
VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

(Another workaround for this bug would be to use the proprietary driver for Nvidia instead of nouveau. I am not planning to do this (yet?) )

Revision history for this message
Daniel Novotny (daniel-novotny) wrote :

Hello, I solved this by upgrading to the HWE kernel and Xorg

https://wiki.ubuntu.com/Kernel/LTSEnablementStack#Ubuntu_16.04_LTS_-_Xenial_Xerus

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.