EvilSupahFly / Amulet-Flatpak

Amulet Flatpak Project
https://github.com/Amulet-Team/Amulet-Map-Editor
GNU General Public License v3.0
2 stars 0 forks source link

unable to launch on native wayland #1

Closed UltraBlackLinux closed 2 months ago

UltraBlackLinux commented 2 months ago

Hey there, glad everything has worked out :) I'm running into some issues though:

INFO - PyMCTranslate Version 291
Unable to access the X Display, is $DISPLAY set properly?

if I force run it with xwayland (env -u WAYLAND_DISPLAY flatpak run ...) it works. Any idea why? Thanks!

EvilSupahFly commented 2 months ago

That's strange because my initial production machine was running Wayland. I'll definitely take a look when I get home tonight though. What distribution are you running?

EvilSupahFly commented 2 months ago

Also, are you on KDE?

UltraBlackLinux commented 2 months ago

Nope, I'm on hyprland

Arch Linux, as mentioned in #2

EvilSupahFly commented 2 months ago

Sorry, I misread your name and thought you were different people. 😅

EvilSupahFly commented 2 months ago

When I re-built the Flatpak, now based on Amulet 0.10.35, I made sure to include support for X11 and Wayland both, so it launches without issue, but it still takes a nosedive like the one you experienced in #2, so that's my next task.

UltraBlackLinux commented 2 months ago

Sorry to disappoint you but I'm still running into issues with Unable to access the X Display, is $DISPLAY set properly? Furthermore, running it within xwayland, the amulet process closes randomly during almost every step of the resource pack download and install process. I cannot get past the loading screen at all.

Here's the full log:

INFO - PyMCTranslate Version 291
INFO - Loading level /home/foo/.local/share/PrismLauncher/instances/1.20.2 for real/.minecraft/saves/§3⚀§b Random Royale §3⚅§8 v1.1.0
INFO - Loading level /home/foo/.local/share/PrismLauncher/instances/1.20.2 for real/.minecraft/saves/§3⚀§b Random Royale §3⚅§8 v1.1.0
Inconsistent value (1) for DRI_PRIME. Should be < 1 (GPU devices count). Using: 0
INFO - Downloading java launcher manifest file.
INFO - Downloading java launcher manifest file.
INFO - Finished downloading java launcher manifest file.
INFO - Finished downloading java launcher manifest file.

Edit: Just stumbled across this issue here: https://github.com/wxWidgets/Phoenix/issues/2557 Apparently wayland is unsupported. If you remove the wayland and wayland-fallback options within the amulet manifest you can just force X11.

EvilSupahFly commented 2 months ago

I'm running Wayland on my production machine and it ran fine. After work tonight I'll boot up a couple of VMs for different distributions and see what comes up in the logss

EvilSupahFly commented 2 months ago

I've rebuilt the Flatpak with a modified amulet.yml and I didn't encounter any issues aside from some of the textures being broken (see Amulet #1091).

Screenshot from 2024-08-25 19-06-45 Screenshot from 2024-08-25 19-00-45

Before you try the new Flatpak from the releases section, be sure to uninstall your current Flatpak version:

flatpak uninstall com.github.amulet_map_editor

Also, as you can see here, I ran the flatpak with -vvv to get a crap-ton of output. When you run it, try that too, and with all the extra detail, hopefully we'll see specifically where it's breaking down for you.

flatpak run -vvv com.github.amulet_map_editor
UltraBlackLinux commented 2 months ago

yep that seems to be working mostly!

As you've already noted, quite a few textures are missing, but that's progress :)

Annoyingly all buttons inside the 3D view are invisible and flicker in and out of view once when clicking inside the 3D view, which is quite unusable still... this should probably go into a new issue shouldn't it

EvilSupahFly commented 2 months ago

The thing with the buttons has been an issue on Linux since the earliest days of Amulet.

The thing with the textures is new.

¯⁠\⁠⁠(⁠ ͡⁠°⁠ ͜⁠ʖ⁠ ͡⁠°⁠)⁠⁠/⁠¯