Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 932591 - gui-wm/hyprland-0.40.0-r1 breaks ui (media-libs/mesa is miscompiled with LTO with sys-devel/gcc-14)
Summary: gui-wm/hyprland-0.40.0-r1 breaks ui (media-libs/mesa is miscompiled with LTO ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto gcc-14
  Show dependency tree
 
Reported: 2024-05-23 23:12 UTC by ignamartinoli
Modified: 2024-05-24 06:29 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Google Docs (20240523 - 20:07:40.png,107.61 KB, image/png)
2024-05-23 23:12 UTC, ignamartinoli
Details
VirtualBox (20240523 - 20:07:18.png,97.48 KB, image/png)
2024-05-23 23:13 UTC, ignamartinoli
Details
Zoom (20240523 - 15:50:25.png,72.94 KB, image/png)
2024-05-23 23:13 UTC, ignamartinoli
Details
dmesg (dmesg,74.55 KB, text/plain)
2024-05-24 00:30 UTC, ignamartinoli
Details
emerge.log (emerge.log.gz,183.86 KB, application/gzip)
2024-05-24 00:31 UTC, ignamartinoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ignamartinoli 2024-05-23 23:12:31 UTC
After updating Hyprland to the latest version I get different UI bugs:

- Google Docs documents don't have the text rendered
- VirtualBox UI is completely teared up
- The cursor on Kitty's terminal is missing
- Various letters are missing from Zoom UI
- The cursor vanishes inside various components
- The cursor action doesn't correspond to what is shown (text selection when hovering a button)

Examples (adding as an attachment too): https://imgur.com/a/hVwraQs

This began happening after the update, but reverting to older versions of Hyprland don't fix the issue.
Comment 1 ignamartinoli 2024-05-23 23:12:51 UTC
Created attachment 894084 [details]
Google Docs
Comment 2 ignamartinoli 2024-05-23 23:13:03 UTC
Created attachment 894085 [details]
VirtualBox
Comment 3 ignamartinoli 2024-05-23 23:13:16 UTC
Created attachment 894086 [details]
Zoom
Comment 4 Alfred Wingate 2024-05-24 00:00:18 UTC
Have you checked if it could be anything else that was updated around the same time?

Mesa maybe? Also getting logs for the applications or dmesg would be good if there is anything abnormal.
Comment 5 ignamartinoli 2024-05-24 00:26:10 UTC
I checked the emerge.log (I leave it for reference) and tried to downgrade mesa, wlroots and hyprland.

```
$ cat /etc/portage/package.mask/recent
=gui-wm/hyprland-0.40.0-r1
=gui-libs/wlroots-0.17.3-r1
=media-libs/mesa-24.1.0
```

I also checked Kitty's log:

```
$ kitty
[0.172] [glfw error 65544]: process_desktop_settings: failed with error: [org.freedesktop.DBus.Error.UnknownMethod] No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
```

Nothing particularly out of the ordinary. For Firefox there was only "Theme parsing error".

I couldn't find anything relevant on dmesg (attaching it), but I realized when writing "$ dmesg > dmesg" that the ">" character wasn't rendering on the terminal. Weird.
Comment 6 ignamartinoli 2024-05-24 00:30:08 UTC
Created attachment 894088 [details]
dmesg
Comment 7 ignamartinoli 2024-05-24 00:31:11 UTC
Created attachment 894089 [details]
emerge.log
Comment 8 ignamartinoli 2024-05-24 01:33:59 UTC
This commit fixed it: https://github.com/gentoo/gentoo/commit/7319ff722dbb79d4b8b1a93154bea3b7fdcb0a7b

Apparently mesa compiled with LTO produced this, closing. Your hunch was correct Alfred, it was Mesa indeed
Comment 9 Larry the Git Cow gentoo-dev 2024-05-24 06:29:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=617b657f254bede24caeb6da40f99c390e845e38

commit 617b657f254bede24caeb6da40f99c390e845e38
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-24 06:28:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-24 06:28:32 +0000

    media-libs/mesa: add another bug ref for LTO issue
    
    I hadn't seen this bug / clocked it was mesa/LTO related until after
    I committed the workaround. Add a reference now we know they're linked.
    
    Bug: https://bugs.gentoo.org/932591
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/mesa/mesa-24.0.8-r1.ebuild | 2 +-
 media-libs/mesa/mesa-24.1.0-r1.ebuild | 2 +-
 media-libs/mesa/mesa-9999.ebuild      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)