Hyprland: Hyprland not starting after updating to v0.35.0 on Arch

Hyprland Version

Updating to v0.35.0 on arch broke hyprland

Bug or Regression?

Bug

Description

Unable to start hyprland after upgrading to v0.35.0 on Arch. Downgraded back to v0.34.0, and my problem was fixed.

How to reproduce

  1. Run sudo pacman -Syyu
  2. Upgrade hyprland to v0.35.0
  3. Restart pc
  4. Login

Expected result

Hyprland starting up

Actual results

Hyprland crashes, and my monitors flicker for a while, then i am back to my login manager.

Crash reports, logs, images, videos

Some logs

coredumpctl-info-xdg-desktop-portal-hyprland.log

hyprland-report.log

journalctl-logs-at-hyprland-startup.log

xdg-desktop-portal-hyprland[1172]: [CRITICAL] Couldn't connect to a wayland compositor
Feb 08 22:43:38 arch systemd-coredump[1162]: [šŸ”•] Process 1117 (xdg-desktop-por) of user 1000 dumped core.
                                             
                                             Stack trace of thread 1117:
                                             #0  0x00007e7171939f9b n/a (libsdbus-c++.so.1 + 0x19f9b)
                                             #1  0x00007e717194487e n/a (libsdbus-c++.so.1 + 0x2487e)
                                             #2  0x00007e7171944d8a n/a (libsdbus-c++.so.1 + 0x24d8a)
                                             #3  0x00006479aea32840 n/a (xdg-desktop-portal-hyprland + 0x1f840)
                                             #4  0x00006479aea32a35 n/a (xdg-desktop-portal-hyprland + 0x1fa35)
                                             #5  0x00007e717125cb36 n/a (libc.so.6 + 0x3eb36)
                                             #6  0x00007e717125cc80 exit (libc.so.6 + 0x3ec80)
                                             #7  0x00007e7171243cd7 n/a (libc.so.6 + 0x25cd7)
                                             #8  0x00007e7171243d8a __libc_start_main (libc.so.6 + 0x25d8a)
                                             #9  0x00006479aea24f25 n/a (xdg-desktop-portal-hyprland + 0x11f25)
                                             
                                             Stack trace of thread 1119:
                                             #0  0x00007e71713227cb __madvise (libc.so.6 + 0x1047cb)
                                             #1  0x00007e71712a95a3 n/a (libc.so.6 + 0x8b5a3)
                                             #2  0x00007e7171326a3c n/a (libc.so.6 + 0x108a3c)
                                             ELF object binary architecture: AMD x86-64
Feb 08 22:43:39 arch systemd[782]: Failed to start Portal service (Hyprland implementation).

Temporary Solution (Downgrade to v0.34.0 again…)

Open up a TTY (CTRL + ALT + F3)

Check if you have the previous version cached

ls /var/cache/pacman/pkg | grep hyprland

Downgrade to hyprland-0.34.0-1

sudo pacman -U /var/cache/pacman/pkg/<previous-version>

Now restart hyprland or (CTRL + ALT + F2 -> Login)

This solved it for me, hopefully there is something i can do in order to make v0.35.0 work, but until then. i will be stuck on this version.

About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Reactions: 1
  • Comments: 26 (10 by maintainers)

Most upvoted comments

The segfaul is in src/render/Renderbuffer.cpp:55 because of throwing in constructor

    if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
        throw std::runtime_error("rbo: glCheckFramebufferStatus failed");

The previous commit passed this check for some reason.

Update:

Changing

RASSERT(PWLREGLCREATEIMAGEFROMDMABUF, "wlr_egl_create_image_from_dmabuf was not found in wlroots!");

to

RASSERT(PWLREGLCREATEIMAGEFROMDMABUF != null, "wlr_egl_create_image_from_dmabuf was not found in wlroots!");

does not trigger the segfault. The only reasonable explanation is that the ā€œevil hackā€ is somehow UB.