PathOfBuilding icon indicating copy to clipboard operation
PathOfBuilding copied to clipboard

Linux Wayland Black Screen

Open zoobporsor opened this issue 1 year ago • 4 comments

Check version

  • [X] I'm running the latest version of Path of Building and I've verified this by checking the changelog

Check for duplicates

  • [X] I've checked for duplicate open and closed issues by using the search function of the issue tracker

What platform are you running Path of Building on?

Linux - PoB Frontend

How is Path of Building expected to behave?

Not be a black screen

How does Path of Building behave?

When opening, black screen

How to reproduce the issue

Using Arch Linux, KDE Plasma, With Wayland And Nvidia Rtx 2080ti

Character build code

Cant access that part of the program, the whole program is a black screen

Screenshots

image

zoobporsor avatar Aug 02 '24 04:08 zoobporsor

Also experiencing this issue. On Hyprland for my part.

In the interim, this can be worked around by running with xwayland, like so:

env -u WAYLAND_DISPLAY -u GDK_BACKEND QT_QPA_PLATFORM="xcb" PathOfBuildingCommunity

John-Paul-R avatar Aug 13 '24 00:08 John-Paul-R

Just started getting this after updating nvidia drivers to 560.35.03-2, using nearly the same setup as OP but with an RTX 3060.

For those running the Flatpak, you can go use Flatseal to disable Wayland for PoB as shown here: image

JoshIce avatar Aug 30 '24 19:08 JoshIce

Also experiencing this issue. On Hyprland for my part.

In the interim, this can be worked around by running with xwayland, like so:

env -u WAYLAND_DISPLAY -u GDK_BACKEND QT_QPA_PLATFORM="xcb" PathOfBuildingCommunity

This fixed my issues on arch + wayland, thanks

putzak avatar Nov 23 '24 08:11 putzak

Running it as such seems to have introduced a massive memory leak however. I logged PathOfBuildingCommunity owning 29/32GiB of my RAM.

ninetailedtori avatar Mar 10 '25 18:03 ninetailedtori

This is how I got it running:

flatpak override --user community.pathofbuilding.PathOfBuilding --nosocket=wayland --socket=x11 --env=QT_QPA_PLATFORM=xcb

This command tells Flatpak to prevent Path of Building from directly using the Wayland socket (--nosocket=wayland), grant it access to the X11 socket (--socket=x11), and set the QT_QPA_PLATFORM environment variable to xcb to ensure that Qt-based applications use the XCB (X11) platform plugin. This resolved the UI loading problem.

strokesws avatar Jul 14 '25 14:07 strokesws

I got it running JUST passing QT_QPA_PLATFORM=xcb %command%, but it's not ideal - xwayland shows severe memory leak due to some bug with xwayland on nvidia.

ninetailedtori avatar Jul 14 '25 19:07 ninetailedtori