itchio / itch

🎮 The best way to play your itch.io games
https://itch.io/app
MIT License
2.31k stars 198 forks source link

App crashes when using Wayland backend #2976

Open hollowshiroyuki opened 6 months ago

hollowshiroyuki commented 6 months ago

OS: Linux 6.6.8-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 21 Dec 2023 19:00:41 +0000 Installation method: https://aur.archlinux.org/packages/itch-setup-bin Components versions:

When using the --enable-features=UseOzonePlatform --ozone-platform=wayland flags to make electron use the Wayland backend, the app shows no window, memory usage goes up to ~1Gb and then crashes leaving no process.

These are the flags used by older electron version, the new one is --ozone-platform-hint=auto but it is not recognized by the version used by the app.

Sorry for the lack of information I don't know how to put the app in debug mode.

VortexAcherontic commented 5 months ago

Can confirm this issue is also present on openSUSE Aeon with Gnome 45.3.

flatpak run io.itch.itch --enable-features=UseOzonePlatform --ozone-platform=wayland
Debug: Detecting Nvidia GPU
Debug: Will run Itch with the following arguments: 
Debug: Additionally, user gave: --enable-features=UseOzonePlatform --ozone-platform=wayland
18:02:46.462 INFO itch@25.6.2 on electron@11.5.0 in production
18:02:46.463 DEBUG (m/reac/preb/load-preferences) imported preferences: {"downloadSelfUpdates":true,"offlineMode":false,"installLocations":{},"defaultInstallLocation":"appdata","isolateApps":false,"closeToTray":true,"readyNotification":true,"showAdvanced":false,"openAtLogin":false,"openAsHidden":false,"manualGameUpdates":false,"preventDisplaySleep":true,"preferOptimizedPatches":false,"disableBrowser":false,"enableTabs":false,"lastSuccessfulSetupVersion":"25.6.2","importedOldInstallLocations":true,"gotMinimizeNotification":true}
interface 'wl_output' has no event 4
tcmalloc: large alloc 1073741824 bytes == 0x17cd93e7c000 @  0x7f8ae37db38f 0x7f8ae37db5cb 0x7f8ae37d4e8f 0x7f8ae37d5387 0x7f8ae37d560a 0x7f8ae37d5566 0x7f8ae37d460e 0x7f8ae37d642b 0x7f8ae37d64e0 0x55f1ec9e8911 0x55f1ec9fff69 0x55f1ec9ca9a7 0x55f1ef979f14 0x55f1ef979eb1 0x55f1edc53aea 0x55f1edc547f9 0x55f1edc4fc5c 0x55f1edb4967a 0x55f1edb4929b 0x55f1ece01784 0x55f1ece01e92 0x55f1ec1842f6 0x7f8ae600330b 0x7f8ae40f408a 0x7f8ae40f414b 0x7f8ae600359d 0x55f1ec16e1aa
[3:0202/190311.604388:FATAL:memory_linux.cc(37)] Out of memory.
/app/bin/itch-run: Zeile 18:     3 Trace/Breakpoint ausgelöst   (Speicherabzug geschrieben) zypak-wrapper /app/bin/itch $@ ${EXTRA_FLAGS[@]}

OS: openSUSE Aeon (Linux 6.7.2-1-default #1 SMP PREEMPT_DYNAMIC Fri Jan 26 11:01:28 UTC 2024 (a52bf76) x86_64 x86_64 x86_64 GNU/Linux) WM: Mutter 45.3 DE: Gnome 45.3