font glyph corruption on dialog box

Bug #1575000 reported by Walter Garcia-Fontes
126
This bug affects 30 people
Affects Status Importance Assigned to Milestone
xorg-server (Ubuntu)
Fix Released
High
Unassigned
Xenial
Fix Released
High
Unassigned

Bug Description

[Impact]
 * This makes it impossible to read some text (usually yes/no questions) in Libreoffice. This makes it more difficult to use LibreOffice on AMD graphics.

[Test Case]

1. Open for instance LibreOffice Writer
2. Copy some text to the clipboard
3. Open the Paste Special dialog with CTRL-SHIFT-V

[Regression Potential]

 This modifies glamor to be used less. There might be a potential for a performance hit in other cases?

[Original Report]
I get a font glyph corruption in various dialog boxes in libreoffice. This happens using the following graphic configuration:
  *-display
       description: VGA compatible controller
       product: Bonaire [FirePro W5100]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0

I don't see this in other graphics (NVIDIA, INTEL).

Steps to reproduce:

1. Open for instance LibreOffice Writer
2. Copy some text to the clipboard
3. Open the Paste Special dialog with CTRL-SHIFT-V

I attach a screenshot of the corrupted font.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: xserver-xorg-video-radeon 1:7.7.0-1
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Tue Apr 26 09:23:41 2016
DistUpgraded: 2016-03-11 12:35:09,412 DEBUG enabling apt cron job
DistroCodename: xenial
DistroVariant: ubuntu
DkmsStatus:
 virtualbox, 5.0.18, 4.4.0-18-generic, x86_64: installed
 virtualbox, 5.0.18, 4.4.0-21-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Advanced Micro Devices, Inc. [AMD/ATI] Bonaire [FirePro W5100] [1002:6649] (prog-if 00 [VGA controller])
   Subsystem: Dell Bonaire [FirePro W5100] [1028:230c]
InstallationDate: Installed on 2015-10-17 (191 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Dell Inc. Precision Tower 7810
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-21-generic root=UUID=63c3c29d-24d9-4ecb-8511-3f2291792bc5 ro quiet splash vt.handoff=7
SourcePackage: xserver-xorg-video-ati
UpgradeStatus: Upgraded to xenial on 2016-03-11 (45 days ago)
dmi.bios.date: 04/14/2015
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 0GWHMW
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd04/14/2015:svnDellInc.:pnPrecisionTower7810:pvr01:rvnDellInc.:rn0GWHMW:rvrA00:cvnDellInc.:ct7:cvr:
dmi.product.name: Precision Tower 7810
dmi.product.version: 01
dmi.sys.vendor: Dell Inc.
version.compiz: compiz 1:0.9.12.2+16.04.20160415-0ubuntu1
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.67-1
version.libgl1-mesa-dri: libgl1-mesa-dri 11.2.0-1ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 11.2.0-1ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.18.3-1ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.1-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.7.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20160325-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.12-1build2
xserver.bootTime: Mon Apr 25 08:20:34 2016
xserver.configfile: default
xserver.errors:

xserver.logfile: /var/log/Xorg.0.log
xserver.version: 2:1.18.3-1ubuntu2
xserver.video_driver: radeon

Revision history for this message
In , Jeff Fortin Tam (kiddo) wrote :

Created attachment 124561
screencast

Running the open-source "radeon" gallium X.org drivers with a Radeon HD 7770 (radeonsi chipset) on Fedora 23 64-bit, with LibreOffice 5.1.1.x and 5.1.2.x downloaded from the LibreOffice website, some of the LibreOffice dialogs show broken text glyphs. See attached screencast.

This is with experimental features turned off, and the traditional UI backend (not the GTK3 one). Couldn't find a way to try out the GTK3 version from the RPMs downloaded from the LibreOffice website (even if I check "Enable experimental features")

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :
Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

Dialog with corrupted font graphics

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

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

Changed in xserver-xorg-video-ati (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Walter Garcia-Fontes (walter-garcia) wrote :

I'm getting this bug with the following graphics:
  *-display
       description: VGA compatible controller
       product: Bonaire [FirePro W5100]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:03:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0

The OS is:
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial

See:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/1575000

no longer affects: xserver-xorg-driver-ati
Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :
Revision history for this message
In , Ratatoskr (ratatoskr) wrote :

I also can confirm this.

I run Debian Testing/Stretch, with LibreOffice 5.1.2.2 from the repos.

  *-display
       description: VGA compatible controller
       product: Kaveri [Radeon R7 Graphics]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 1
       bus info: pci@0000:00:01.0
       version: d6
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
       configuration: driver=radeon latency=0

So far I observed this problem only in LibreOffice, no other software.

The issue disappears when OpenGL is switched on.

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

A workaround. Open the Tools -> Options -> View menu, and mark "Use OpenGL for all rendering (on restart)", restart LibreOffice.

Changed in xserver-xorg-driver-ati:
status: Unknown → New
Revision history for this message
Vertago1 (vertago1) wrote :

The workaround in #5 didn't work for me. I tried checking "Force OpenGL even if blacklisted (on restart)" and it is still showing: "Current GL status: Disabled" I am running Kubuntu 16.04 though, so it might work for Ubuntu.

Revision history for this message
M. Edward (Ed) Borasky (znmeb-o) wrote :

The workaround is worse than the symptom! I have Ubuntu GNOME 16.04 with [AMD/ATI] Bonaire XT [Radeon HD 7790/8770 / R7 360 / R9 260/360 OEM]. I'm running the low-latency kernel, if it matters: 4.4.0-21-lowlatency #37-Ubuntu

I went into the menu as described, restarted LibreOffice Calc and opened the spreadsheet. Instead of garbled test, the dialog box was completely blank. Then ... the screen went totally dark and Ctl-Alt-Delete no longer worked. I ended up doing a hardware reset.

Are there by any chance some log files I can attach, or do you already know what this is?

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

The workaround in #5 works for me, my settings are in the description of the bug. If you want to provide more information, I think it is best in the two upstream bug reports linked to this one.

Revision history for this message
In , Raal (raal) wrote :

confirmed in comment 2

Changed in df-libreoffice:
importance: Unknown → High
status: Unknown → Confirmed
Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

I also get finally the complete freeze as znmeb-o, not immediately but after using LibreOffice for a while. So forget about my workaround.

Revision history for this message
In , Ratatoskr (ratatoskr) wrote :

I just installed 5.2.0.0.alpha1 (Build ID: 902b28a39528b6c92602e9b521a1d0861be1caf9) and I cannot reproduce this bug there.

It would be great if someone could confirm this.

Revision history for this message
In , Raal (raal) wrote :

Jean, Walter,
please could you test it with dev version? You can download it here: http://dev-builds.libreoffice.org/daily/master/
Thank you

Revision history for this message
In , Walter Garcia-Fontes (walter-garcia) wrote :

raal, I installed LibreOffice 5.2.0.0.alpha1 in my affected system and the artifact is gone, no font glyph corruption any more.

Revision history for this message
In , Raal (raal) wrote :

Walter and "D" thanks for testing. Closing the bug.

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

*** Bug 99636 has been marked as a duplicate of this bug. ***

Changed in df-libreoffice:
status: Confirmed → Invalid
Revision history for this message
Vertago1 (vertago1) wrote :

I don't understand. It is being marked as invalid because Libreoffice Version 5.1.2.2 shows the problem but 5.2.0.0.alpha1 doesn't?

Revision history for this message
Vertago1 (vertago1) wrote :

I just tested the 5.2.0.0 debs from: http://ftp.utexas.edu/libreoffice/libreoffice/testing/5.2.0/deb/x86_64/LibreOfficeDev_5.2.0.0.alpha1_Linux_x86-64_deb.tar.gz
and they do not show the problem.

This is still a problem for the version of libreoffice available in ubuntu 16.04 and should be addressed. Currently, the only demonstrated work-around is to install a prerelease version of libreoffice not available in the repositories.

Changed in xserver-xorg-video-ati (Ubuntu):
importance: Undecided → High
Revision history for this message
Stéphane Berthelot (sberthelot) wrote :

I suffer from the same problem with current updated libreoffice 5.1.4 on "Cape Verde PRO [Radeon HD 7750/8740 / R7 250E"
I cannot easily recompile glamor on this box but can someone test the attached patch from this freedesktop report and see if it fixes the problem ?
https://bugs.freedesktop.org/show_bug.cgi?id=63397

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Yup, that patch worked for me. Here's a debdiff of it.

description: updated
affects: xserver-xorg-video-ati (Ubuntu) → xorg-server (Ubuntu)
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

I don't think this is fixed in yakkety yet though (above debdiff is for xenial).

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

The attachment "xorg-server_1.18.3-1ubuntu2.3.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Here is a debdiff for yakkety.

I've tested the binary produced for xenial (previous and pretty much identical debdiff) and it fixes the issue on my hardware. I don't have hardware to test this on yakkety though (live sessions don't work well on the hardware).

Mathew Hodson (mhodson)
Changed in xserver-xorg-driver-ati:
status: New → Unknown
Mathew Hodson (mhodson)
affects: xserver-xorg-driver-ati → glamor
affects: df-libreoffice → ubuntu
Changed in ubuntu:
importance: High → Undecided
status: Invalid → New
no longer affects: ubuntu
affects: glamor → xorg-server
Changed in xserver-xorg-video-ati (Debian):
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xorg-server - 2:1.18.3-1ubuntu7

---------------
xorg-server (2:1.18.3-1ubuntu7) yakkety; urgency=medium

  * glamor-disable-logic-ops-when-doing-compositing.diff: Fix
    libreoffice with glamor. (LP: #1575000)

 -- Timo Aaltonen <email address hidden> Tue, 05 Jul 2016 02:08:01 +0300

Changed in xorg-server (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in xorg-server (Ubuntu Xenial):
status: New → Confirmed
Mathew Hodson (mhodson)
Changed in xorg-server (Ubuntu Xenial):
importance: Undecided → High
Revision history for this message
Bryan Quigley (bryanquigley) wrote :

Thanks for bringing to yakkety. Comment #22 has a debdiff for xenial.

Revision history for this message
Bryan Quigley (bryanquigley) wrote :

This will be fixed for xenial when xorg-server 1.18.4 lands (after the current SRU)
https://lists.freedesktop.org/archives/xorg/2016-July/058156.html

Mathew Hodson (mhodson)
no longer affects: xserver-xorg-video-ati (Debian)
Revision history for this message
Mo (harveyburnt) wrote :

Turning OpenGL fixed the garbled text but my computer completely froze two times so I had to turn it off again.

Revision history for this message
Yuri Ribeiro Sucupira (yuri-sucupira) wrote :

Enabling OpenGL rendering also solved this for me (the attached file shows which checkbox must be enabled/marked/checked, at the LibreOffice GUI).

I'm running LibreOffice 5.1.4.2 on a 64-bit XUbuntu 16.04 "Xenial Xerus" system. My computer is a Dell laptop (Dell Inspiron 5548) which has hybrid graphics (it has two GPU - Graphics Processing Units): GPU 1 is an Intel Broadwell-U Integrated Graphics (it's embedded into the i7 CPU/processor), while GPU 2 is an Advanced Micro Devices [AMD/ATI] Topaz XT [Radeon R7 M260/M265] (it's a PCI Express 3.0 graphics card).

*Ubuntu (Ubuntu, XUbuntu, KUbuntu...) 16.04 distros ship with kernel 4.4.X, which has a bug that causes malfunction of the kernel with the open source "amdgpu" and "radeon" graphics drivers (they superseded the proprietary "fglrx" driver by AMD). See bug #1608042 (https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-amdgpu/+bug/1608042).

Hence, if your computer has any AMD GPU (despite of your computer having hybrid graphics or not), and if your distro is *Ubuntu 16.04 and you already installed MESA (OpenGL support for Linux) and activated OpenGL rendering in LibreOffice, but the issue remais, it is likely that your system is affected by the kernel/AMD bug.

It's thus recommended to download and install a further stable kernel, like e.g. kernel v4.7.2:

- For 64-bit *Ubuntu, download these three files:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702_4.7.2-040702.201608201334_all.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702-generic_4.7.2-040702.201608201334_amd64.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-image-4.7.2-040702-generic_4.7.2-040702.201608201334_amd64.deb

- For 32-bit *Ubuntu, download these three files:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702_4.7.2-040702.201608201334_all.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-headers-4.7.2-040702-generic_4.7.2-040702.201608201334_i386.deb
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.7.2/linux-image-4.7.2-040702-generic_4.7.2-040702.201608201334_i386.deb

...then open a shell terminal window, cd (change directory) into the folder where you donwloaded those DEB packages into, then install the packages and restart your system. For instance, if you downloaded those DEB packages into your downloads folder (/home/your-username/Downloads), then this command will cd into your downloads folder, install the downloaded packages and restart your system (your password will be asked by the shell):

cd ~/Downloads ; sudo dpkg -i linux-*.deb ; telinit 6

Revision history for this message
Walter Garcia-Fontes (walter-garcia) wrote :

The problem is fixed in the LibreOffice version that ships with Ubuntu 16.10, Libreoffice 5.2.1.2

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

it's not a libreoffice bug but xserver, yakkety has 1.18.4 which includes the fix

xenial-proposed has it too, just forgot to add the buglink to this one, so please test that package

Changed in xorg-server (Ubuntu Xenial):
status: Confirmed → Incomplete
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

tumbleweed.. tested or not, the bug should be closed with latest updates

Changed in xorg-server (Ubuntu Xenial):
status: Incomplete → Fix Released
no longer affects: xorg-server
Revision history for this message
NoBugs! (luke32j) wrote :

Also affects 14.04 where I kept getting missing letters, or missing icons when using latest 4.4 kernel. It didn't happen earlier so I downgraded to 4.2-lts wily kernel. And yes I checked the memory was not faulty.

There's been quite a bit of talk about the Linux 4.4 version having a bug with Intel driver with graphics corruption or missing letters on the screen:

http://www.spinics.net/lists/intel-gfx/msg82135.html

https://bbs.archlinux.org/viewtopic.php?id=209065

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.