FS#48490 - [xfce4-session] font rendering bug: partial disappearing after screen unlock

Attached to Project: Arch Linux
Opened by Ilya Dashevsky (evolucia) - Monday, 07 March 2016, 10:41 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 27 June 2017, 03:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Xfce4: font rendering bug: partial disappearing after screen unlock


Description:
Using last update, Desktop: Xfce4.

After lock screen (reproduced with light-locker and xlockmore) font from almost all apps failed to render correctly. Majority of letter disappears, and may return after text-selecting.

Additional info:
* Packages: last xfce4, last light-locker, last greybird theme and elementary icon set.


Steps to reproduce:
1. Lock screen.
2. Unlock screen. Issue is reproduced systematically but not after each unlock

This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 27 June 2017, 03:50 GMT
Reason for closing:  None
Additional comments about closing:  Assuming it was an Intel bug and that it has been fixed in the past year or so.
Comment by Ilya Dashevsky (evolucia) - Monday, 07 March 2016, 10:44 GMT
Most likely the problem is not in theme, because the same happens in Swing based NetBeans IDE (without custom look and feel)
Comment by Doug Newgard (Scimmia) - Monday, 07 March 2016, 16:42 GMT
So did you change themes and see if it works?

Edit: and what video drivers?

Also, don't just say "last" for a version, as that changes all of the time.
Comment by Ilya Dashevsky (evolucia) - Tuesday, 08 March 2016, 07:07 GMT
Hi Scimmia, thank for notes.

Packages versions

xfce4: 4.12.3-1
xfce-theme-greybird: 1.6.2-2
elementary-xfce-icons: 0.7-1

I switched to Adwaita theme and began to observe the issue.

Result of "lspci -v" for VGA section:

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Acer Incorporated [ALI] Device 0688
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at c2000000 (64-bit, non-prefetchable) [size=4M]
Memory at b0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

Comment by Ilya Dashevsky (evolucia) - Wednesday, 09 March 2016, 08:43 GMT
After switching to Adwaita theme, the issue has not yet reproduced. Continue to watch
Comment by Ilya Dashevsky (evolucia) - Thursday, 10 March 2016, 05:20 GMT
The issue was reproduced.
Discovered a new detail: The issue was reproduced after notebook has been in sleep mode all night.
New screenshot attached.
Comment by Doug Newgard (Scimmia) - Thursday, 10 March 2016, 13:51 GMT
  • Field changed: Summary (Xfce4: font rendering bug: partial disappearing after screen unlock → [xfce4-session] font rendering bug: partial disappearing after screen unlock)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Evangelos Foutras (foutrelis), Jan Alexander Steffens (heftig)
Not really sure where the problem lies, taking a guess.
Comment by tok pow (tokapowa) - Sunday, 20 March 2016, 09:50 GMT
I'm affected by the same issue, using i3wm. Attached is a screenshot of emacs after resume from suspend. The issue occurs after every suspend.
It might have something to do with font rendering cache (if such thing exists?), because over time, many characters become visible again.

lspci -v:
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device 5006
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at f0000000 (64-bit, non-prefetchable) [size=4M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915
   emacs.png (24.2 KiB)
Comment by Ilya Dashevsky (evolucia) - Sunday, 27 March 2016, 15:34 GMT
This problem still occurs quite often. Another observation. After the issue occurs, I checked all TTY, and found that they do not work. Only the cursor blinks. See screenshot.
Comment by Jan Alexander Steffens (heftig) - Sunday, 27 March 2016, 16:10 GMT
This is most likely a kernel issue.
Comment by Ilya Dashevsky (evolucia) - Sunday, 27 March 2016, 16:12 GMT
Jan Steffens, What can I do in order to better understand the cause of the problem, when the problem reproduces again?
Comment by Jan Alexander Steffens (heftig) - Sunday, 27 March 2016, 16:15 GMT Comment by Serge Hooge (serh) - Thursday, 31 March 2016, 15:23 GMT
I found that the issue can be fixed by adding a 20-intel.conf file to xorg.conf.d with the following contents:

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"

However, after a short time of using the fix, font and theme colors started messing up instead, giving me problems pictured on the screeenshots.
Comment by Ilya Dashevsky (evolucia) - Wednesday, 06 April 2016, 07:20 GMT
The issue still reproduced after completely system reinstalling.
Comment by Ilya Dashevsky (evolucia) - Thursday, 07 April 2016, 04:14 GMT
Also, the issue reproduced with GNOME 3 Flashback (metacity). So, it is not Xfce4 problem.

Detail: the problem is reproduced only after a long stay in sleep mode (more then 30 minutes).

Maybe it is hardware defect?
Comment by tok pow (tokapowa) - Thursday, 07 April 2016, 04:34 GMT Comment by Serge Hooge (serh) - Thursday, 07 April 2016, 04:52 GMT
I am using StumpWM with no DE, so it's definitely not a DE/WM issue, I suspect Intel video most, as changing the AccelMethod does change things.
Comment by Ilya Dashevsky (evolucia) - Thursday, 07 April 2016, 05:10 GMT
Thanks, Serge Hooge (serh)

Also found section "Font and screen corruption in GTK+ applications (missing glyphs after suspend/resume)" in our wiki:

https://wiki.archlinux.org/index.php/Intel_graphics

Comment by Ilya Dashevsky (evolucia) - Monday, 11 April 2016, 19:41 GMT
Looks like this solved the problem:

create file /etc/X11/xorg.conf.d/20-intel.conf with content below:

Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
EndSection

Loading...