Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System sound randomly breaks if the game window left unfocused #981

Closed
REmerald opened this issue May 14, 2024 · 28 comments
Closed

System sound randomly breaks if the game window left unfocused #981

REmerald opened this issue May 14, 2024 · 28 comments
Labels
bug Something isn't working

Comments

@REmerald
Copy link

REmerald commented May 14, 2024

Describe the bug
If I switch the window from the game to e.g. browser with youtube, at some random point (not right away when I switch, usually after 10-20 min) the sound on entire system breaks - the media either can't play at all or plays without sound - and remains broken until I close (the game AND) the launcher.
It may happen during an autosave or when the minecraft music finishes playing but I'm not sure.
I'm using sway and wireplumber (pipewire).

To Reproduce
Steps to reproduce the behavior:

  1. Play the game, switching back and forth to browser with youtube.
  2. Sound breaks.
  3. Exit the game AND close the launcher.
  4. Sound works now.

Expected behavior
Sound doesn't break.

Screenshots
N/A.

Desktop (please complete the following information):

  • OS: Garuda Linux (Arch Linux)
  • Version: mcpelauncher-linux-git-0.14.2.r6.gab2424c-1 mcpelauncher-ui-git-0.14.3.r6.gdd57535-1
  • Installation Type: AUR

Additional context
The issue was present for a long time.
The sound breaking "effect" sounds similar to #845.
Everything needed seems to be installed:

$ paru -Qi pipewire-support pipewire pipewire-alsa pipewire-pulse wireplumber alsa-support alsa-firmware sof-firmware alsa-ucm-conf | grep -E -v 'Architecture|URL|Licenses|Required By|Optional For|Packager|Install|Build Date|Validated By'
Name            : pipewire-support
Version         : 1-16
Description     : Meta package for all important packages to use PipeWire
Groups          : None
Provides        : None
Depends On      : gst-plugin-pipewire  pipewire  libpipewire  pipewire-alsa  pipewire-jack  pipewire-pulse  pipewire-v4l2  pipewire-x11-bell  pipewire-zeroconf  realtime-privileges  sof-firmware  wireplumber
Optional Deps   : None
Conflicts With  : pulseaudio-equalizer  pulseaudio-jack  pulseaudio-lirc  pulseaudio-rtp  pulseaudio-support  pulseaudio-zeroconf  jack2  jack2-dbus  lib32-jack2
Replaces        : None

Name            : pipewire
Version         : 1:1.0.6-1
Description     : Low-latency audio/video router and processor
Groups          : None
Provides        : None
Depends On      : gcc-libs  glibc  libpipewire=1:1.0.6-1  libcamera-base.so=0.2-64  libcamera.so=0.2-64  libdbus-1.so=3-64  libglib-2.0.so=0-64  libncursesw.so=6-64  libpipewire-0.3.so=0-64  libreadline.so=8-64  libsystemd.so=0-64  libudev.so=1-64
Optional Deps   : gst-plugin-pipewire: GStreamer plugin [installed]
                  pipewire-alsa: ALSA configuration [installed]
                  pipewire-audio: Audio support [installed]
                  pipewire-docs: Documentation
                  pipewire-ffado: FireWire support
                  pipewire-jack-client: PipeWire as JACK client
                  pipewire-jack: JACK replacement [installed]
                  pipewire-pulse: PulseAudio replacement [installed]
                  pipewire-roc: ROC streaming
                  pipewire-session-manager: Session manager [installed]
                  pipewire-v4l2: V4L2 interceptor [installed]
                  pipewire-x11-bell: X11 bell [installed]
                  pipewire-zeroconf: Zeroconf support [installed]
                  realtime-privileges: realtime privileges with rt module [installed]
                  rtkit: realtime privileges with rtkit module [installed]
Conflicts With  : None
Replaces        : None

Name            : pipewire-alsa
Version         : 1:1.0.6-1
Description     : Low-latency audio/video router and processor - ALSA configuration
Groups          : None
Provides        : pulseaudio-alsa
Depends On      : pipewire  pipewire-audio  pipewire-session-manager
Optional Deps   : None
Conflicts With  : pulseaudio-alsa
Replaces        : None

Name            : pipewire-pulse
Version         : 1:1.0.6-1
Description     : Low-latency audio/video router and processor - PulseAudio replacement
Groups          : None
Provides        : pulse-native-provider  pulseaudio  pulseaudio-bluetooth
Depends On      : dbus  gcc-libs  glibc  libavahi-client.so=3-64  libavahi-common.so=3-64  libglib-2.0.so=0-64  libpipewire-0.3.so=0-64  libpulse.so=0-64  pipewire  pipewire-audio  pipewire-session-manager  systemd-libs
Optional Deps   : None
Conflicts With  : pulseaudio  pulseaudio-bluetooth
Replaces        : None

Name            : wireplumber
Version         : 0.5.2-1
Description     : Session / policy manager implementation for PipeWire
Groups          : None
Provides        : pipewire-session-manager
Depends On      : libwireplumber=0.5.2-1  gcc-libs  glibc  libglib-2.0.so=0-64  libgobject-2.0.so=0-64  libgio-2.0.so=0-64  libpipewire  libpipewire-0.3.so=0-64  libsystemd.so=0-64  lua  pipewire  systemd-libs
Optional Deps   : wireplumber-docs: Documentation [installed]
Conflicts With  : pipewire-media-session
Replaces        : None

Name            : alsa-support
Version         : 1-2
Description     : Meta-package containing all needed packages to use ALSA
Groups          : None
Provides        : None
Depends On      : alsa-firmware  alsa-lib  alsa-oss  alsa-plugins  alsa-tools  alsa-utils
Optional Deps   : None
Conflicts With  : None
Replaces        : None

Name            : alsa-firmware
Version         : 1.2.4-3
Description     : Firmware binaries for loader programs in alsa-tools and hotplug firmware loader
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None

Name            : sof-firmware
Version         : 2024.03-1
Description     : Sound Open Firmware
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None

Name            : alsa-ucm-conf
Version         : 1.2.11-1
Description     : ALSA Use Case Manager configuration (and topologies)
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Conflicts With  : None
Replaces        : None
@REmerald REmerald added the bug Something isn't working label May 14, 2024
@ChristopherHX
Copy link
Member

What you see is part of native proprietary fmod.com binaries, source code not available.

Consider putting -df into the profile command args (feature of nightly GUI)
this disable patching that in.

Deprecation of native libFmod from fmod.com not enforced yet.

Dependency of -df for sound

  • pulseaudio (EGLUT/GLFW)
  • SDL3 (SDL3) CMAKE ARG -DGAMEWINDOW_SYSTEM=SDL3
    • includes pipewire backend if you have all deps of it during build

@REmerald
Copy link
Author

REmerald commented May 15, 2024

I also found that playing with the game audio volume in pavucontrol breaks it as well (or closing or reopening pavucontrol afterwards it's not consistent). And after this the game can't exit normally, I have to send SIGINT to one of the mcpelauncher-client processes through htop.
Also, the sound may remain broken even if I close the launcher, so I have to run systemctl --user restart pipewire.service.

What you see is part of native proprietary fmod.com binaries, source code not available

Are they here because Bedrock uses fmod?

Consider putting -df into the profile command args (feature of nightly GUI)

Seems to be working, in pavucontrol the title changed from Pipewire ALSA [mcpelauncher-client] to just mcpelauncher

  • SDL3 (SDL3) CMAKE ARG -DGAMEWINDOW_SYSTEM=SDL3

Wow, sdl3 support gonna be available soon?

  • pulseaudio (EGLUT/GLFW)

Nvm, it's even more broken... Doing "pavucontrol" trick breaks the audio the exact same way (with SIGINT and chance to persist after closing launcher mentioned in the beginning).
But this time it can happen if I just open then close pavucontrol.

Is there any logs I can provide?

Game Log doesn't seem to show anything...
11:37:30 Info  [Launcher] Version: client a9e38d7 / manifest ab2424c
11:37:30 Info  [Launcher] CPU: GenuineIntel Intel(R) Celeron(R) N5100 @ 1.10GHz
11:37:30 Info  [Launcher] CPU supports SSSE3: YES
11:37:30 Info  [Launcher] Reading Launcher Settings File: /home/remorin/.local/share/mcpelauncher/mcpelauncher-client-settings.txt
11:37:30 Info  [Launcher] Applied Launcher Settings
11:37:30 Trace [Launcher] Loading android libraries
11:37:30 Trace [Launcher] linker loaded
11:37:30 Trace [REDIRECT] /data/data/com.mojang.minecraftpe to /home/remorin/.local/share/mcpelauncher/
11:37:30 Trace [REDIRECT] /data/data/usr/proc/12127/cmdline to /home/remorin/.local/share/mcpelauncher/
11:37:30 Trace [REDIRECT] /data/data/usr/bin/mcpelauncher-client to /home/remorin/.local/share/mcpelauncher/
11:37:30 Trace [REDIRECT] /data/data to /home/remorin/.local/share/mcpelauncher/
11:37:30 Trace [REDIRECT] . to /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/assets/
11:37:30 Trace [LinkerUtils] Loaded OS library libm.so.6
11:37:30 Trace [LinkerUtils] Loaded OS library libz.so.1
11:37:30 Info  [Launcher] Loading gamepad mappings
11:37:30 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
11:37:30 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
11:37:30 Info  [Launcher] Creating window
11:37:30 Trace [Launcher] Loading Minecraft library
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libc++_shared.so 0x7e8da64c0000
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so 0x7e8da5a80000
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so 0x7e8d7ce00000
Found hook: _ZN11AppPlatform16showMousePointerEv @ 0x5f9197d8f1f0
Found hook: _ZN11AppPlatform16hideMousePointerEv @ 0x5f9197d8f1d0
Found hook: _ZN11AppPlatform17setFullscreenModeE14FullscreenMode @ 0x5f9197d8f210
11:37:30 Info  [Launcher] Loaded Minecraft library
11:37:30 Debug [Launcher] Minecraft is at offset 0x7E8D7CE00000
11:37:30 Info  [Launcher] Game version: 0.0.0.0
11:37:30 Info  [Launcher] Applying patches
11:37:30 Debug [CorePatches] Failed to patch, vtable _ZTV21AppPlatform_android23 not found
11:37:30 Info  [Launcher] Initializing JNI
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeRegisterThis
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeWithApplicationContext
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeUnregisterThis
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeXboxLive
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeinitializeLibHttpClient
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeLibHttpClient
11:37:30 Error [JniSupport] Missing native symbol: Java_com_microsoft_xal_browser_WebView_urlOperationSucceeded
11:37:30 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_PlayIntegrity_nativePlayIntegrityComplete
11:37:30 Trace [Minecraft] Entering JNI_OnLoad 0x7e8d9fe006c0
11:37:30 Trace [Minecraft] JNI_OnLoad completed
11:37:30 Info  [Launcher] Executing main thread
11:37:30 Trace [JniSupport] Invoking nativeRegisterThis
11:37:30 Trace [JniSupport] Invoking ANativeActivity_onCreate
11:37:30 Warn  [Main] Android stub called
11:37:30 Warn  [Main] Android stub called
11:37:30 Warn  [Main] Android stub called
11:37:30 Warn  [Main] Android stub called
11:37:30 Info  [Minecraft] android_main starting. internalDataPath is '/internal', externalDataPath is '/external'
11:37:30 Error [MCPE] *** setCachedDeviceId(cb9f103b-9fe9-4d11-8d69-5ce1602272e3)
11:37:30 Info  [Bedrock] configureBreakpad with directory: /crash, sessionid is: 5991b7fe-5588-4def-80cc-de255cfc9805
11:37:30 Info  [Bedrock] configureBreakpad called, directory is: /crash, sessionid is: 5991b7fe-5588-4def-80cc-de255cfc9805
11:37:30 Trace [JniSupport] Invoking start activity callbacks
11:37:30 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using External dir (NEW) - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
11:37:30 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
11:37:30 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
11:37:30 Warn  [Minecraft] MinecraftGame::init && MinecraftGame::setSize!
11:37:30 Warn  [FakeEGL] eglQueryString 308d
11:37:30 Warn  [Main] Android stub called
11:37:30 Info  [GL] Vendor: Intel
11:37:30 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
11:37:30 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.7-arch1.3
11:37:30 Info  [GL] Vendor: Intel
11:37:30 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
11:37:30 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.7-arch1.3
11:37:30 Warn  [Main] Android stub called
11:37:30 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using AppData dir - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libMediaDecoders_Android.so 0x7e8d7c600000
11:37:30 Info  [GL] Vendor: Intel
11:37:30 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
11:37:30 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.7-arch1.3
11:37:30 Warn  [Main] Android stub called
11:37:31 Debug [HttpCallStaticGlue] Successfully registerered HttpCall methods
11:37:31 Debug [XboxLiveAppConfig] Successfully registerered XboxLiveAppConfig methods
11:37:31 Debug [XSAPI.Android] Successfully registerered HttpCall tcuiMethods
11:37:32 Info  [GL] Vendor: Intel
11:37:32 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
11:37:32 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.7-arch1.3
11:37:32 Warn  [Main] Android stub called
11:37:33 Info  [Minecraft] NO LOG FILE! - Time played notifier not required for 'en'
11:38:32 Trace [JniSupport] Invoking stop activity callbacks

Process exited with unexpected exit code: 2

Btw, I got unrelated idea, maybe add a log section under News or above Settings? The log window is annoying and gets in the way, especially in tilling wm.

@ChristopherHX
Copy link
Member

Are they here because Bedrock uses fmod?

Yes together with the original mcpelauncher patching the internals of the game to avoid the java native interface of the game.

Additionally a pulseaudio only backend can not replace the native fmod library as using the pulseaudio doesn't has alsa support and native macOS support.

Wow, sdl3 support gonna be available soon?

It's available since january, but not used by AUR and other prebuilds from my side

  • gamepad inpit not tested
  • touch input should be corrected by now, but not tested
  • imgui_overlay crashs on macOS if and only if metal has been choosen for angle

AUR = Nightly, bugs lands here way to early

  • pulseaudio (EGLUT/GLFW)

Nvm, it's even more broken... Doing "pavucontrol" trick breaks the audio the exact same way

Sounds like pipewire-pulse is defect on your system.
How would opening a pulseaudio stream connect kill yoir sound server?

I would also expect pipewire pulse would not break system sounds if a process dies like the launcher.

You should really configure SDL3 and use the -df flag in your profile to not depend on pipewire compat libraries that might cause issues.

The sdl3 backend should be much more resilent than the quick pulseaudio simple wrapper built by me years ago.
My pulseaudio impl for eglut doesn't reconnect if the sound server restarts

@ChristopherHX
Copy link
Member

Btw, I got unrelated idea, maybe add a log section under News or above Settings? The log window is annoying and gets in the way, especially in tilling wm.

Yes this would be a good idea.
The gamelog still has a performace defecf, therefore detailed logging is disabled in release builds.

However sound subsystem logging is non existent. Your error is more likely present on your sound server, I'm still using a full pulseaudio system and haven't noticed glitches yet.

@REmerald
Copy link
Author

I played for some time with -df (and without even touching pavucontrol) and the sound still breaks the same way when I switch to youtube in browser and back to minecraft. This time though I don't have to close the launcher itself for the sound to restore, just the game.
Every time switching back I noticed the autosave icon. Does the game do something with sound during an autosave?

Sounds like pipewire-pulse is defect on your system.
How would opening a pulseaudio stream connect kill yoir sound server?

Can be a pavucontrol bug. (Without minecraft or launcher being opened) if I close it, the sound on the system stops and I have to restart all applications currently trying to play audio (or refresh the browser page) for it to restore.
But I didn't open pavucontrol even once after booting, so it seems to be just that program's unrelated issue.

Currently I'm not sure if it's the pipewire or the game/launcher issue.

@ChristopherHX
Copy link
Member

Currently I'm not sure if it's the pipewire or the game/launcher issue

Can't be a game issue, since the game has no alsa, no pulseaudio and no pipewire support

My recent OS upgrade (Ubuntu 24.04) silently replaced pulseaudio with pipewire, but I still have trouble to break sound.

  • using the pipewire alsa (mcpelauncher-client) via native fmod shown in pavucontrol

I only noticed a noise with length 1s while closing pavucontrol and audio of both game and msedge continued all the time. Sometimes I don't even hear that noise.

I restart my system sometimes more than one time per day, if an issue need a long running os I don't have one.

@REmerald
Copy link
Author

REmerald commented May 24, 2024

Just a quick update

Seems like it happens if I switch to browser when the autosave icon is shown (often, but always) the sound breaks either during the youtube video playback (sound just cuts off, but video keeps playing) or when I pause the video and switch back to game. When I wait for the autosave icon to disappear (or just exit the world, the sound never breaks in the main menu), then switch, the sound never breaks NVM, it breaks now even if I switch before the autosave icon (though I think the game may still start an autosave when it's not focused, because I still saw the icon when I switched back to the game). The fact that it happens "often, but always" and randomly during video playback tells me that the cause is some operation during an autosave. FYI, I randomly (relative to the game/autosave operation) switch back and forth from the game to the video how to build a farm, I watch a couple of steps, build them in game, switch to the video for more steps again.

Also, sometimes (maybe every 3rd or 5th sound crash) I get pipewire-x11-bell error crash and it disappers in pipewire modules (pw-cli list-objects | grep libpipewire-module) and appears only after user service restart.

May 24 20:15:46 myhost pipewire[36581]: mod.x11-bell: X11 I/O error handler called on display :0
May 24 20:15:46 myhost pipewire[36581]: mod.x11-bell: X11 display (:0) has encountered a fatal I/O error

This time though I don't have to close the launcher itself for the sound to restore, just the game.

upd: Well, this time for some reason when I restarted the game without restarting the launcher, the sound still didn't come back, so I had to restart the launcher as well. But for some reason only this time (when I check the journal; and seems like previous time the sound broke as well judging by the time in the logs) gave some useful information in the journalctl:

May 24 21:37:49 myhost (sd-parse-elf)[52529]: Could not parse number of program headers from core file: invalid `Elf' handle
May 24 21:37:49 myhost systemd-coredump[52484]: Process 51814 (MINECRAFT MAIN ) of user 1000 dumped core.
                                                 
                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so without build-id.
                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so
                                                 Stack trace of thread 52476:
                                                 #0  0x00005bce3eb32bc6 _ZN12CrashHandler12handleSignalEiPv (mcpelauncher-client + 0x414bc6)
                                                 #1  0x00007f72a2965ae0 n/a (libc.so.6 + 0x3cae0) 
                                                 #2  0x00007f727b353ce1 n/a (/home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so + 0xe553ce1)
                                                 ELF object binary architecture: AMD x86-64
May 24 21:48:25 myhost (sd-parse-elf)[54142]: Could not parse number of program headers from core file: invalid `Elf' handle
May 24 21:48:25 myhost systemd-coredump[54122]: Process 52553 (MINECRAFT MAIN ) of user 1000 dumped core.

                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so without build-id.
                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so
                                                 Stack trace of thread 54108:
                                                 #0  0x0000781e93353ce1 n/a (/home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so + 0xe553ce1)
                                                 ELF object binary architecture: AMD x86-64

So fmod still executed when using -df?

P.S. Actually, it seems like, this isn't the first time it crashed like that:

[myuser@myhost:0 ~]$ ll /var/lib/systemd/coredump/
total 1.2G
drwxr-xr-x  1 root root 1.5K May 24 21:48  ./
drwxr-xr-x  1 root root  164 Aug  5  2023  ../
-rw-r-----+ 1 root root 206M May 24 21:37 'core.MINECRAFT\x20MAIN\x20.1000.2251368a3e174faea261956b9605c5d5.51814.1716575860000000.zst'
-rw-r-----+ 1 root root 221M May 24 21:48 'core.MINECRAFT\x20MAIN\x20.1000.2251368a3e174faea261956b9605c5d5.52553.1716576495000000.zst'
-rw-r-----+ 1 root root 246M May 22 00:18 'core.MINECRAFT\x20MAIN\x20.1000.28c9ea528f76441484a70ef0ac403bb1.83540.1716326321000000.zst'
-rw-r-----+ 1 root root 229M May 19 20:24 'core.MINECRAFT\x20MAIN\x20.1000.4bd62fc361d54433b0e775c89203ff39.51680.1716139459000000.zst'
-rw-r-----+ 1 root root 186M May 11 15:46 'core.MINECRAFT\x20MAIN\x20.1000.578f383375d642df9c4df560c5ac6a1c.5424.1715431548000000.zst'
... other programs

But the sound crashed definetly more than 2 times today, so I think it is related to 2 times when the game didn't close normally after I pressed "ok to exit the game" (when the sound was broken as well) and instead froze for several seconds then crashed with code 11 (I didn't copy the log because I thought it was unrelated because it was happening long ago without broken sound, though now it happens rarely and I don't remember (excluding these 2 crashes) if the sound was broken as well when relatively recent such crashes were happening).

@ChristopherHX
Copy link
Member

So fmod still executed when using -df?

It's fmod for android, this launcher emulates the android java sound api. This fmod doesn't interact directly with anything other the launchers implementation of pcm streams.

Building the aur without sdl3 and without pulseaudio simple dev libraries disables the games ability to output any sound under -df

e.g. take the xenial AppImage and use -df it's silent, but still loads the android fmod

@REmerald
Copy link
Author

My recent OS upgrade (Ubuntu 24.04) silently replaced pulseaudio with pipewire, but I still have trouble to break sound.

Maybe sway wm also plays a role in this. By changing the window, I meant changing the workspace (when I do that the game window isn't displayed at all; I didn't test if the sound breaks under the condition where it's 2 split windows - the game and the browser - where the cursor is in the browser and the game window is unfocused but is still visible and displaying stuff).
When I do that the sound from the game becomes stuttery - sound plays for short time, then stops for a short time, then plays again, etc. I just did a little test with the redstone clock that activate pistons - it doesn't happen if the window is unfocused while in the active workspace, but the moment I switch into another workspace the "sound effect" is here, when I switch back, the sound is normal again.

P.S. Hmm, the minecraft music isn't getting stuttery when I switch the workspace, or any music at all, only the sounds. In the world with the piston clock I placed a jukebox playing otherside at the same time, swithed the workspace, and the music was still playing normally but at the same time the piston sound became stuttery. Is sway messing with the game somehow, maybe slowing it down or interrrupting it?

Can you test if gnome (if that is what you are using) does this as well? If it does, maybe while you play the game, you could reproduce the issue by switching the workspace while the game is autosaving (or right before it)?

@REmerald
Copy link
Author

so I think it is related to 2 times when the game didn't close normally after I pressed "ok to exit the game" (when the sound was broken as well) and instead froze for several seconds then crashed with code 11 (I didn't copy the log because I thought it was unrelated because it was happening long ago without broken sound, though now it happens rarely and I don't remember (excluding these 2 crashes) if the sound was broken as well when relatively recent such crashes were happening).

Actually it just happened with the sound working, so it and the corefiles may be unrelated issue (though it seems like fmod.so is still at fault here), here're the logs:

14:59:27 Info  [Launcher] Version: client a9e38d7 / manifest ab2424c
14:59:27 Info  [Launcher] CPU: GenuineIntel Intel(R) Celeron(R) N5100 @ 1.10GHz
14:59:27 Info  [Launcher] CPU supports SSSE3: YES
14:59:27 Info  [Launcher] Reading Launcher Settings File: /home/myuser/.local/share/mcpelauncher/mcpelauncher-client-settings.txt
14:59:27 Info  [Launcher] Applied Launcher Settings
14:59:27 Trace [Launcher] Loading android libraries
14:59:27 Trace [Launcher] linker loaded
14:59:27 Trace [REDIRECT] /data/data/com.mojang.minecraftpe to /home/myuser/.local/share/mcpelauncher/
14:59:27 Trace [REDIRECT] /data/data/usr/proc/10468/cmdline to /home/myuser/.local/share/mcpelauncher/
14:59:27 Trace [REDIRECT] /data/data/usr/bin/mcpelauncher-client to /home/myuser/.local/share/mcpelauncher/
14:59:27 Trace [REDIRECT] /data/data to /home/myuser/.local/share/mcpelauncher/
14:59:27 Trace [REDIRECT] . to /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/assets/
14:59:27 Trace [LinkerUtils] Loaded OS library libm.so.6
14:59:27 Trace [LinkerUtils] Loaded OS library libz.so.1
14:59:27 Info  [Launcher] Loading gamepad mappings
14:59:27 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
14:59:27 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
14:59:27 Info  [Launcher] Creating window
14:59:27 Trace [Launcher] Loading Minecraft library
linker: mcpelauncher_linker_notifylldb /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libc++_shared.so 0x7adff4ac0000
linker: mcpelauncher_linker_notifylldb /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so 0x7adfefe80000
linker: mcpelauncher_linker_notifylldb /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so 0x7adfcce00000
Found hook: _ZN11AppPlatform16showMousePointerEv @ 0x56df5ad911f0
Found hook: _ZN11AppPlatform16hideMousePointerEv @ 0x56df5ad911d0
Found hook: _ZN11AppPlatform17setFullscreenModeE14FullscreenMode @ 0x56df5ad91210
14:59:27 Info  [Launcher] Loaded Minecraft library
14:59:27 Debug [Launcher] Minecraft is at offset 0x7ADFCCE00000
14:59:27 Info  [Launcher] Game version: 0.0.0.0
14:59:27 Info  [Launcher] Applying patches
14:59:27 Debug [CorePatches] Failed to patch, vtable _ZTV21AppPlatform_android23 not found
14:59:27 Info  [Launcher] Initializing JNI
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeRegisterThis
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeWithApplicationContext
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeUnregisterThis
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeXboxLive
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeinitializeLibHttpClient
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeLibHttpClient
14:59:27 Error [JniSupport] Missing native symbol: Java_com_microsoft_xal_browser_WebView_urlOperationSucceeded
14:59:27 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_PlayIntegrity_nativePlayIntegrityComplete
14:59:27 Info  [Launcher] Executing main thread
14:59:27 Trace [Minecraft] Entering JNI_OnLoad 0x7adfeea006c0
14:59:27 Trace [Minecraft] JNI_OnLoad completed
14:59:27 Trace [JniSupport] Invoking nativeRegisterThis
14:59:27 Trace [JniSupport] Invoking ANativeActivity_onCreate
14:59:27 Warn  [Main] Android stub called
14:59:27 Warn  [Main] Android stub called
14:59:27 Warn  [Main] Android stub called
14:59:27 Warn  [Main] Android stub called
14:59:27 Info  [Minecraft] android_main starting. internalDataPath is '/internal', externalDataPath is '/external'
14:59:27 Trace [JniSupport] Invoking start activity callbacks
14:59:27 Error [MCPE] *** setCachedDeviceId(cb9f103b-9fe9-4d11-8d69-5ce1602272e3)
14:59:27 Info  [Bedrock] configureBreakpad with directory: /crash, sessionid is: b8b60a54-75c1-43d5-8eee-838df0d8e196
14:59:27 Info  [Bedrock] configureBreakpad called, directory is: /crash, sessionid is: b8b60a54-75c1-43d5-8eee-838df0d8e196
14:59:27 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using External dir (NEW) - CurrentFileStoragePath is now '/home/myuser/.local/share/mcpelauncher/'
14:59:27 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
14:59:27 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
14:59:27 Warn  [Minecraft] MinecraftGame::init && MinecraftGame::setSize!
14:59:27 Warn  [FakeEGL] eglQueryString 308d
14:59:27 Warn  [Main] Android stub called
14:59:27 Info  [GL] Vendor: Intel
14:59:27 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
14:59:27 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.8-arch1.1
14:59:27 Info  [GL] Vendor: Intel
14:59:27 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
14:59:27 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.8-arch1.1
14:59:27 Warn  [Main] Android stub called
14:59:27 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using AppData dir - CurrentFileStoragePath is now '/home/myuser/.local/share/mcpelauncher/'
linker: mcpelauncher_linker_notifylldb /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libMediaDecoders_Android.so 0x7adfc6600000
14:59:27 Info  [GL] Vendor: Intel
14:59:27 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
14:59:27 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.0.8-arch1.1
14:59:27 Warn  [Main] Android stub called
14:59:28 Debug [HttpCallStaticGlue] Successfully registerered HttpCall methods
14:59:28 Debug [XboxLiveAppConfig] Successfully registerered XboxLiveAppConfig methods
14:59:28 Debug [XSAPI.Android] Successfully registerered HttpCall tcuiMethods
14:59:32 Info  [Minecraft] NO LOG FILE! - Time played notifier not required for 'en'
15:00:25 Info  [Minecraft] NO LOG FILE! - Opening level '/home/myuser/.local/share/mcpelauncher/minecraftpe/blob_cache'
15:08:20 Trace [JniSupport] Invoking stop activity callbacks
15:08:20 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was lost

Process exited with unexpected exit code: 11
May 25 15:08:30 myhost (sd-parse-elf)[12274]: Could not parse number of program headers from core file: invalid `Elf' handle
May 25 15:08:30 myhost systemd-coredump[12259]: Process 10468 (MINECRAFT MAIN ) of user 1000 dumped core.
                                                 
                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so without build-id.
                                                 Module /home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libfmod.so
                                                 Stack trace of thread 12251:
                                                 #0  0x000056df5af09bc6 _ZN12CrashHandler12handleSignalEiPv (mcpelauncher-client + 0x414bc6)
                                                 #1  0x00007ae002c23ae0 n/a (libc.so.6 + 0x3cae0)
                                                 #2  0x00007adfdb353ce1 n/a (/home/myuser/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so + 0xe553ce1)
                                                 ELF object binary architecture: AMD x86-64

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

It's fmod for android, this launcher emulates the android java sound api.

So, is there a possibility that the builtin android fmod is causing it? (Maybe it sees that the game window isn't displayed, so it stops outputting sound, because on android if you exit to home screen, an app suspends.)

@ChristopherHX, hmm, is it possible to implement building mcpelauncher-linux-git with both EGLUT and SDL3 by default and have the launcher choose one of the libraries before launch, since the launcher is in the separate mcpelauncher-ui-git package? Might be a good feature to implement in the future.

@ChristopherHX
Copy link
Member

is there a possibility that the builtin android fmod is causing it?

The possibility that your software stack is part of the problem is far more likely. My sound server has never stopped playing audio regardless how hard I tried or how often minecraft dumped. Using alt-tab, multi workspace etc., lost enough time on that topic.

is it possible to implement building mcpelauncher-linux-git with both EGLUT and SDL3 by default

No it's not implemented to use two window backends. Technically an env var or similar could influence the window factory at runtime

I can update the AUR to SDL3 it's not stable in any way, because it builds the bleeding untested edge of the launcher.

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

I can update the AUR to SDL3 it's not stable in any way, because it builds the bleeding untested edge of the launcher.

Yeah, maybe don't for now. I added the argument to PKGBUILD and built the package

build() {
  cmake -S mcpelauncher-manifest \
    -DCMAKE_C_COMPILER=clang \
    -DCMAKE_CXX_COMPILER=clang++ \
    -B build -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DENABLE_DEV_PATHS=OFF \
    -DGAMEWINDOW_SYSTEM=SDL3 \
    -Wno-dev
  cmake --build build --parallel
}

FYI, it also made and installed mcpelauncher-linux-git-debug, but I uninstalled it for now.

Pressed PLAY and almost nothing happened (except something popping up on a screen for a split second like a black rectangle and Minecraft title and disappeared), then the menu music started playing, but there's still no window. The game process usen 99.5% CPU in htop (but 30% in waybar) and didn't respond to SIGING and SIGTERM, only SIGKILL.

Here's the log

18:58:40 Info  [Launcher] Version: client a9e38d7 / manifest 02133e3
18:58:40 Info  [Launcher] CPU: GenuineIntel Intel(R) Celeron(R) N5100 @ 1.10GHz
18:58:40 Info  [Launcher] CPU supports SSSE3: YES
18:58:40 Info  [Launcher] Reading Launcher Settings File: /home/remorin/.local/share/mcpelauncher/mcpelauncher-client-settings.txt
18:58:40 Info  [Launcher] Applied Launcher Settings
18:58:40 Trace [Launcher] Loading android libraries
18:58:40 Trace [Launcher] linker loaded
18:58:42 Trace [REDIRECT] /data/data/com.mojang.minecraftpe to /home/remorin/.local/share/mcpelauncher/
18:58:42 Trace [REDIRECT] /data/data/usr/proc/6658/cmdline to /home/remorin/.local/share/mcpelauncher/
18:58:42 Trace [REDIRECT] /data/data/usr/bin/mcpelauncher-client to /home/remorin/.local/share/mcpelauncher/
18:58:42 Trace [REDIRECT] /data/data to /home/remorin/.local/share/mcpelauncher/
18:58:42 Trace [REDIRECT] . to /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/assets/
18:58:42 Trace [LinkerUtils] Loaded OS library libm.so.6
18:58:42 Trace [LinkerUtils] Loaded OS library libz.so.1
18:58:42 Trace [LinkerUtils] Loaded OS library /usr/share/mcpelauncher/lib/native/x86_64/libfmod.so.12.0
18:58:42 Info  [Launcher] Loading gamepad mappings
18:58:42 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
18:58:42 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
18:58:42 Info  [Launcher] Creating window
18:58:42 Trace [Launcher] Loading Minecraft library
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libc++_shared.so 0x721b70ec0000
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so 0x721b48e00000
Found hook: _ZN11AppPlatform16showMousePointerEv @ 0x59ce85f97210
Found hook: _ZN11AppPlatform16hideMousePointerEv @ 0x59ce85f971f0
Found hook: _ZN11AppPlatform17setFullscreenModeE14FullscreenMode @ 0x59ce85f97230
Found hook: _ZN3rtc10getifaddrsEPP7ifaddrs @ 0x59ce8613b290
Found hook: _ZN3rtc11freeifaddrsEP7ifaddrs @ 0x59ce8613b4e0
18:58:42 Info  [Launcher] Loaded Minecraft library
18:58:42 Debug [Launcher] Minecraft is at offset 0x721B48E00000
18:58:42 Info  [Launcher] Game version: 0.0.0.0
18:58:42 Info  [Launcher] Applying patches
18:58:42 Debug [CorePatches] Failed to patch, vtable _ZTV21AppPlatform_android23 not found
18:58:42 Info  [Launcher] Initializing JNI
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeRegisterThis
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeWithApplicationContext
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeUnregisterThis
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeXboxLive
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeinitializeLibHttpClient
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeLibHttpClient
18:58:42 Error [JniSupport] Missing native symbol: Java_com_microsoft_xal_browser_WebView_urlOperationSucceeded
18:58:42 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_PlayIntegrity_nativePlayIntegrityComplete
18:58:42 Trace [Minecraft] Entering JNI_OnLoad 0x721b6aa006c0
18:58:42 Trace [Minecraft] JNI_OnLoad completed
18:58:42 Trace [JniSupport] Invoking nativeRegisterThis
18:58:42 Trace [JniSupport] Invoking ANativeActivity_onCreate
18:58:42 Info  [Launcher] Executing main thread
18:58:42 Warn  [Main] Android stub called
18:58:42 Warn  [Main] Android stub called
18:58:42 Warn  [Main] Android stub called
18:58:42 Warn  [Main] Android stub called
18:58:42 Info  [Minecraft] android_main starting. internalDataPath is '/internal', externalDataPath is '/external'
18:58:42 Trace [JniSupport] Invoking start activity callbacks
18:58:42 Error [MCPE] *** setCachedDeviceId(cb9f103b-9fe9-4d11-8d69-5ce1602272e3)
18:58:42 Info  [Bedrock] configureBreakpad with directory: /crash, sessionid is: d1619442-25a6-4668-90db-6584947b25dc
18:58:42 Info  [Bedrock] configureBreakpad called, directory is: /crash, sessionid is: d1619442-25a6-4668-90db-6584947b25dc
18:58:42 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using External dir (NEW) - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
18:58:42 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
18:58:42 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
18:58:42 Warn  [Minecraft] MinecraftGame::init && MinecraftGame::setSize!
18:58:42 Warn  [FakeEGL] eglQueryString 308d
18:58:42 Warn  [Main] Android stub called
18:58:42 Info  [GL] Vendor: Intel
18:58:42 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
18:58:42 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
18:58:42 Info  [GL] Vendor: Intel
18:58:42 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
18:58:42 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
18:58:42 Warn  [Main] Android stub called
18:58:42 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using AppData dir - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libMediaDecoders_Android.so 0x721b42600000
18:58:42 Info  [GL] Vendor: Intel
18:58:42 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
18:58:42 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
18:58:42 Warn  [Main] Android stub called
18:58:43 Info  [GL] Vendor: Intel
18:58:43 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
18:58:43 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
18:58:43 Warn  [Main] Android stub called
wp_viewport#43: error 2: source rectangle out of buffer bounds
18:58:43 Debug [HttpCallStaticGlue] Successfully registerered HttpCall methods
18:58:43 Debug [XboxLiveAppConfig] Successfully registerered XboxLiveAppConfig methods
18:58:43 Debug [XSAPI.Android] Successfully registerered HttpCall tcuiMethods
18:58:47 Info  [Minecraft] NO LOG FILE! - Time played notifier not required for 'en'

Process exited with unexpected exit code: 9

Also, Thank you for implementing the log section, much more convenient now. But there's a visual glitch, when I press the copy button:
image

No it's not implemented to use two window backends.

I meant as a feature request. If it's not possible to implement in one binary, could it be possible to build 2 binaries and make the launcher choose between them (and possibly a third binary/shared-object for everything else besides the video output to reduce their size)?

@ChristopherHX
Copy link
Member

I'm not shure I understand your SDL3 crash, for me it just works

Also for some reason, when I press the copy button, this glitch happened

That's why building my working branches directly is not a good idea.

I believe you missed the corrected revision of the ui

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

@ChristopherHX, is there any more logs I can provide? The debug package is still here, I can install it.

That's why building my working branches directly is not a good idea.

I believe you missed the corrected revision of the ui

I'm using 0.14.3.r7.gf47455c-1 from chaotic-aur, maybe it will automatically rebuild the package after an hour/day.

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

Could be related to libsdl-org/SDL/issues/9283, I'm using fractional scaling output eDP-1 scale 1.5.

P.S. Disabled scaling entirely, didn't help, same crash.

@ChristopherHX
Copy link
Member

You can also try updating the SDL submodule manually to a newer version (default branch)

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

Here's the log with the WAYLAND_DEBUG=1 variable in the profile settings, I didn't reenable scaling, also, the visual glitch didn't happen.

Log
19:43:53 Info  [Launcher] Version: client a9e38d7 / manifest 02133e3
19:43:53 Info  [Launcher] CPU: GenuineIntel Intel(R) Celeron(R) N5100 @ 1.10GHz
19:43:53 Info  [Launcher] CPU supports SSSE3: YES
19:43:53 Info  [Launcher] Reading Launcher Settings File: /home/remorin/.local/share/mcpelauncher/mcpelauncher-client-settings.txt
19:43:53 Info  [Launcher] Applied Launcher Settings
19:43:53 Trace [Launcher] Loading android libraries
19:43:53 Trace [Launcher] linker loaded
[3459517.164] {Default Queue}  -> wl_display#1.get_registry(new id wl_registry#2)
[3459517.181] {Default Queue}  -> wl_display#1.sync(new id wl_callback#3)
[3459517.297] {Display Queue} wl_display#1.delete_id(3)
[3459517.308] {Default Queue} wl_registry#2.global(1, "wl_shm", 1)
[3459517.315] {Default Queue}  -> wl_registry#2.bind(1, "wl_shm", 1, new id [unknown]#4)
[3459517.320] {Default Queue} wl_registry#2.global(2, "wl_drm", 2)
[3459517.325] {Default Queue} wl_registry#2.global(3, "zwp_linux_dmabuf_v1", 4)
[3459517.329] {Default Queue} wl_registry#2.global(4, "wl_compositor", 6)
[3459517.333] {Default Queue}  -> wl_registry#2.bind(4, "wl_compositor", 6, new id [unknown]#5)
[3459517.337] {Default Queue} wl_registry#2.global(5, "wl_subcompositor", 1)
[3459517.340] {Default Queue} wl_registry#2.global(6, "wl_data_device_manager", 3)
[3459517.344] {Default Queue}  -> wl_registry#2.bind(6, "wl_data_device_manager", 3, new id [unknown]#6)
[3459517.349] {Default Queue} wl_registry#2.global(7, "zwlr_gamma_control_manager_v1", 1)
[3459517.352] {Default Queue} wl_registry#2.global(8, "zxdg_output_manager_v1", 3)
[3459517.364] {Default Queue}  -> wl_registry#2.bind(8, "zxdg_output_manager_v1", 3, new id [unknown]#7)
[3459517.370] {Default Queue} wl_registry#2.global(9, "ext_idle_notifier_v1", 1)
[3459517.374] {Default Queue} wl_registry#2.global(10, "zwp_idle_inhibit_manager_v1", 1)
[3459517.378] {Default Queue}  -> wl_registry#2.bind(10, "zwp_idle_inhibit_manager_v1", 1, new id [unknown]#8)
[3459517.383] {Default Queue} wl_registry#2.global(11, "zwlr_layer_shell_v1", 4)
[3459517.386] {Default Queue} wl_registry#2.global(12, "xdg_wm_base", 2)
[3459517.390] {Default Queue}  -> wl_registry#2.bind(12, "xdg_wm_base", 2, new id [unknown]#9)
[3459517.394] {Default Queue} wl_registry#2.global(13, "zwp_tablet_manager_v2", 1)
[3459517.398] {Default Queue}  -> wl_registry#2.bind(13, "zwp_tablet_manager_v2", 1, new id [unknown]#10)
[3459517.402] {Default Queue} wl_registry#2.global(14, "org_kde_kwin_server_decoration_manager", 1)
[3459517.406] {Default Queue} wl_registry#2.global(15, "zxdg_decoration_manager_v1", 1)
[3459517.410] {Default Queue}  -> wl_registry#2.bind(15, "zxdg_decoration_manager_v1", 1, new id [unknown]#11)
[3459517.414] {Default Queue} wl_registry#2.global(16, "zwp_relative_pointer_manager_v1", 1)
[3459517.418] {Default Queue}  -> wl_registry#2.bind(16, "zwp_relative_pointer_manager_v1", 1, new id [unknown]#12)
[3459517.422] {Default Queue} wl_registry#2.global(17, "zwp_pointer_constraints_v1", 1)
[3459517.426] {Default Queue}  -> wl_registry#2.bind(17, "zwp_pointer_constraints_v1", 1, new id [unknown]#13)
[3459517.430] {Default Queue} wl_registry#2.global(18, "wp_presentation", 1)
[3459517.434] {Default Queue} wl_registry#2.global(19, "zwlr_output_manager_v1", 4)
[3459517.437] {Default Queue} wl_registry#2.global(20, "zwlr_output_power_manager_v1", 1)
[3459517.440] {Default Queue} wl_registry#2.global(21, "zwp_input_method_manager_v2", 1)
[3459517.444] {Default Queue} wl_registry#2.global(22, "zwp_text_input_manager_v3", 1)
[3459517.447] {Default Queue}  -> wl_registry#2.bind(22, "zwp_text_input_manager_v3", 1, new id [unknown]#14)
[3459517.451] {Default Queue} wl_registry#2.global(23, "zwlr_foreign_toplevel_manager_v1", 3)
[3459517.455] {Default Queue} wl_registry#2.global(24, "ext_session_lock_manager_v1", 1)
[3459517.459] {Default Queue} wl_registry#2.global(25, "wp_drm_lease_device_v1", 1)
[3459517.462] {Default Queue} wl_registry#2.global(26, "zwlr_export_dmabuf_manager_v1", 1)
[3459517.465] {Default Queue} wl_registry#2.global(27, "zwlr_screencopy_manager_v1", 3)
[3459517.469] {Default Queue} wl_registry#2.global(28, "zwlr_data_control_manager_v1", 2)
[3459517.472] {Default Queue} wl_registry#2.global(29, "wp_security_context_manager_v1", 1)
[3459517.476] {Default Queue} wl_registry#2.global(30, "wp_viewporter", 1)
[3459517.480] {Default Queue}  -> wl_registry#2.bind(30, "wp_viewporter", 1, new id [unknown]#15)
[3459517.483] {Default Queue} wl_registry#2.global(31, "wp_single_pixel_buffer_manager_v1", 1)
[3459517.487] {Default Queue} wl_registry#2.global(32, "wp_content_type_manager_v1", 1)
[3459517.490] {Default Queue} wl_registry#2.global(33, "wp_fractional_scale_manager_v1", 1)
[3459517.494] {Default Queue}  -> wl_registry#2.bind(33, "wp_fractional_scale_manager_v1", 1, new id [unknown]#16)
[3459517.498] {Default Queue} wl_registry#2.global(34, "zxdg_exporter_v1", 1)
[3459517.501] {Default Queue} wl_registry#2.global(35, "zxdg_importer_v1", 1)
[3459517.505] {Default Queue} wl_registry#2.global(36, "zxdg_exporter_v2", 1)
[3459517.508] {Default Queue} wl_registry#2.global(37, "zxdg_importer_v2", 1)
[3459517.511] {Default Queue} wl_registry#2.global(38, "xdg_activation_v1", 1)
[3459517.516] {Default Queue}  -> wl_registry#2.bind(38, "xdg_activation_v1", 1, new id [unknown]#17)
[3459517.519] {Default Queue} wl_registry#2.global(39, "wp_cursor_shape_manager_v1", 1)
[3459517.522] {Default Queue} wl_registry#2.global(40, "zwp_virtual_keyboard_manager_v1", 1)
[3459517.526] {Default Queue} wl_registry#2.global(41, "zwlr_virtual_pointer_manager_v1", 2)
[3459517.529] {Default Queue} wl_registry#2.global(42, "zwlr_input_inhibit_manager_v1", 1)
[3459517.532] {Default Queue} wl_registry#2.global(43, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[3459517.536] {Default Queue}  -> wl_registry#2.bind(43, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1, new id [unknown]#18)
[3459517.540] {Default Queue} wl_registry#2.global(44, "zwp_pointer_gestures_v1", 3)
[3459517.544] {Default Queue} wl_registry#2.global(45, "wl_seat", 8)
[3459517.548] {Default Queue}  -> wl_registry#2.bind(45, "wl_seat", 8, new id [unknown]#19)
[3459517.552] {Default Queue}  -> wl_data_device_manager#6.get_data_device(new id wl_data_device#20, wl_seat#19)
[3459517.557] {Default Queue}  -> zwp_text_input_manager_v3#14.get_text_input(new id zwp_text_input_v3#21, wl_seat#19)
[3459517.562] {Default Queue}  -> zwp_tablet_manager_v2#10.get_tablet_seat(new id zwp_tablet_seat_v2#22, wl_seat#19)
[3459517.651] {Default Queue} wl_registry#2.global(47, "zwp_primary_selection_device_manager_v1", 1)
[3459517.659] {Default Queue}  -> wl_registry#2.bind(47, "zwp_primary_selection_device_manager_v1", 1, new id [unknown]#23)
[3459517.665] {Default Queue}  -> zwp_primary_selection_device_manager_v1#23.get_device(new id zwp_primary_selection_device_v1#24, wl_seat#19)
[3459517.671] {Default Queue} wl_registry#2.global(48, "wl_output", 4)
[3459517.675] {Default Queue}  -> wl_registry#2.bind(48, "wl_output", 4, new id [unknown]#25)
[3459517.679] {Default Queue}  -> zxdg_output_manager_v1#7.get_xdg_output(new id zxdg_output_v1#26, wl_output#25)
[3459517.683] {Default Queue} wl_callback#3.done(992)
[3459517.690] {Default Queue}  -> wl_display#1.sync(new id wl_callback#3)
[3459517.757] {Display Queue} wl_display#1.delete_id(3)
[3459517.764] {Default Queue} discarded wl_shm#4.format(0)
[3459517.767] {Default Queue} discarded wl_shm#4.format(1)
[3459517.769] {Default Queue} discarded wl_shm#4.format(875709016)
[3459517.772] {Default Queue} discarded wl_shm#4.format(875708993)
[3459517.775] {Default Queue} discarded wl_shm#4.format(875710274)
[3459517.777] {Default Queue} discarded wl_shm#4.format(842094674)
[3459517.779] {Default Queue} discarded wl_shm#4.format(842088786)
[3459517.782] {Default Queue} discarded wl_shm#4.format(892426322)
[3459517.784] {Default Queue} discarded wl_shm#4.format(892420434)
[3459517.786] {Default Queue} discarded wl_shm#4.format(909199186)
[3459517.789] {Default Queue} discarded wl_shm#4.format(808665688)
[3459517.791] {Default Queue} discarded wl_shm#4.format(808665665)
[3459517.793] {Default Queue} discarded wl_shm#4.format(1211384408)
[3459517.796] {Default Queue} discarded wl_shm#4.format(1211384385)
[3459517.798] {Default Queue} discarded wl_shm#4.format(942948952)
[3459517.801] {Default Queue} discarded wl_shm#4.format(942948929)
[3459517.803] {Default Queue} wl_seat#19.name("seat0")
[3459517.807] {Default Queue} wl_seat#19.capabilities(3)
[3459517.810] {Default Queue}  -> wl_seat#19.get_pointer(new id wl_pointer#27)
[3459517.814] {Default Queue}  -> wl_seat#19.get_keyboard(new id wl_keyboard#28)
[3459517.818] {Default Queue} wl_output#25.geometry(0, 0, 300, 200, 0, "BOE", "0x0893", 0)
[3459517.834] {Default Queue} wl_output#25.mode(1, 2160, 1440, 60001)
[3459517.838] {Default Queue} wl_output#25.scale(1)
[3459517.842] {Default Queue} wl_output#25.name("eDP-1")
[3459517.845] {Default Queue} wl_output#25.description("BOE 0x0893 (eDP-1)")
[3459517.848] {Default Queue} wl_output#25.done()
[3459517.852] {Default Queue} zxdg_output_v1#26.name("eDP-1")
[3459517.855] {Default Queue} zxdg_output_v1#26.description("BOE 0x0893 (eDP-1)")
[3459517.858] {Default Queue} zxdg_output_v1#26.logical_position(0, 0)
[3459517.861] {Default Queue} zxdg_output_v1#26.logical_size(2160, 1440)
[3459517.865] {Default Queue} wl_output#25.done()
[3459517.880] {Default Queue} wl_callback#3.done(992)
[3459517.992] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#3)
[3459518.000] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#29)
[3459518.004] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#30)
[3459518.008] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#31)
[3459518.012] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#32)
[3459518.016] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#33)
[3459518.019] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#34)
[3459518.022] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#35)
[3459518.026] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#36)
[3459518.029] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#37)
[3459518.579] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#38)
[3459518.770] {Default Queue}  -> zwp_text_input_v3#21.enable()
[3459518.778] {Default Queue}  -> zwp_text_input_v3#21.commit()
[3459518.782] {Default Queue}  -> zwp_text_input_v3#21.enable()
[3459518.785] {Default Queue}  -> zwp_text_input_v3#21.commit()
[3459518.788] {Default Queue}  -> zwp_text_input_v3#21.set_content_type(0, 0)
[3459518.792] {Default Queue}  -> zwp_text_input_v3#21.commit()
19:43:55 Trace [REDIRECT] /data/data/com.mojang.minecraftpe to /home/remorin/.local/share/mcpelauncher/
19:43:55 Trace [REDIRECT] /data/data/usr/proc/16056/cmdline to /home/remorin/.local/share/mcpelauncher/
19:43:55 Trace [REDIRECT] /data/data/usr/bin/mcpelauncher-client to /home/remorin/.local/share/mcpelauncher/
19:43:55 Trace [REDIRECT] /data/data to /home/remorin/.local/share/mcpelauncher/
19:43:55 Trace [REDIRECT] . to /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/assets/
19:43:55 Trace [LinkerUtils] Loaded OS library libm.so.6
19:43:55 Trace [LinkerUtils] Loaded OS library libz.so.1
19:43:55 Trace [LinkerUtils] Loaded OS library /usr/share/mcpelauncher/lib/native/x86_64/libfmod.so.12.0
19:43:55 Info  [Launcher] Loading gamepad mappings
19:43:55 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
19:43:55 Trace [Launcher] Loading gamepad mappings: /usr/share/mcpelauncher/gamecontrollerdb.txt
19:43:55 Info  [Launcher] Creating window
[3461682.129]  -> wl_display#1.get_registry(new id wl_registry#39)
[3461682.143]  -> wl_display#1.sync(new id wl_callback#40)
[3461682.311] {Display Queue} wl_display#1.delete_id(40)
[3461682.320] wl_registry#39.global(1, "wl_shm", 1)
[3461682.324] wl_registry#39.global(2, "wl_drm", 2)
[3461682.328] wl_registry#39.global(3, "zwp_linux_dmabuf_v1", 4)
[3461682.332]  -> wl_registry#39.bind(3, "zwp_linux_dmabuf_v1", 4, new id [unknown]#41)
[3461682.337] wl_registry#39.global(4, "wl_compositor", 6)
[3461682.340] wl_registry#39.global(5, "wl_subcompositor", 1)
[3461682.343] wl_registry#39.global(6, "wl_data_device_manager", 3)
[3461682.347] wl_registry#39.global(7, "zwlr_gamma_control_manager_v1", 1)
[3461682.350] wl_registry#39.global(8, "zxdg_output_manager_v1", 3)
[3461682.353] wl_registry#39.global(9, "ext_idle_notifier_v1", 1)
[3461682.362] wl_registry#39.global(10, "zwp_idle_inhibit_manager_v1", 1)
[3461682.366] wl_registry#39.global(11, "zwlr_layer_shell_v1", 4)
[3461682.369] wl_registry#39.global(12, "xdg_wm_base", 2)
[3461682.373] wl_registry#39.global(13, "zwp_tablet_manager_v2", 1)
[3461682.375] wl_registry#39.global(14, "org_kde_kwin_server_decoration_manager", 1)
[3461682.378] wl_registry#39.global(15, "zxdg_decoration_manager_v1", 1)
[3461682.382] wl_registry#39.global(16, "zwp_relative_pointer_manager_v1", 1)
[3461682.386] wl_registry#39.global(17, "zwp_pointer_constraints_v1", 1)
[3461682.390] wl_registry#39.global(18, "wp_presentation", 1)
[3461682.393] wl_registry#39.global(19, "zwlr_output_manager_v1", 4)
[3461682.396] wl_registry#39.global(20, "zwlr_output_power_manager_v1", 1)
[3461682.399] wl_registry#39.global(21, "zwp_input_method_manager_v2", 1)
[3461682.402] wl_registry#39.global(22, "zwp_text_input_manager_v3", 1)
[3461682.405] wl_registry#39.global(23, "zwlr_foreign_toplevel_manager_v1", 3)
[3461682.408] wl_registry#39.global(24, "ext_session_lock_manager_v1", 1)
[3461682.411] wl_registry#39.global(25, "wp_drm_lease_device_v1", 1)
[3461682.414] wl_registry#39.global(26, "zwlr_export_dmabuf_manager_v1", 1)
[3461682.417] wl_registry#39.global(27, "zwlr_screencopy_manager_v1", 3)
[3461682.420] wl_registry#39.global(28, "zwlr_data_control_manager_v1", 2)
[3461682.423] wl_registry#39.global(29, "wp_security_context_manager_v1", 1)
[3461682.426] wl_registry#39.global(30, "wp_viewporter", 1)
[3461682.429] wl_registry#39.global(31, "wp_single_pixel_buffer_manager_v1", 1)
[3461682.432] wl_registry#39.global(32, "wp_content_type_manager_v1", 1)
[3461682.435] wl_registry#39.global(33, "wp_fractional_scale_manager_v1", 1)
[3461682.438] wl_registry#39.global(34, "zxdg_exporter_v1", 1)
[3461682.441] wl_registry#39.global(35, "zxdg_importer_v1", 1)
[3461682.444] wl_registry#39.global(36, "zxdg_exporter_v2", 1)
[3461682.447] wl_registry#39.global(37, "zxdg_importer_v2", 1)
[3461682.450] wl_registry#39.global(38, "xdg_activation_v1", 1)
[3461682.453] wl_registry#39.global(39, "wp_cursor_shape_manager_v1", 1)
[3461682.456] wl_registry#39.global(40, "zwp_virtual_keyboard_manager_v1", 1)
[3461682.459] wl_registry#39.global(41, "zwlr_virtual_pointer_manager_v1", 2)
[3461682.462] wl_registry#39.global(42, "zwlr_input_inhibit_manager_v1", 1)
[3461682.465] wl_registry#39.global(43, "zwp_keyboard_shortcuts_inhibit_manager_v1", 1)
[3461682.468] wl_registry#39.global(44, "zwp_pointer_gestures_v1", 3)
[3461682.471] wl_registry#39.global(45, "wl_seat", 8)
[3461682.474] wl_registry#39.global(47, "zwp_primary_selection_device_manager_v1", 1)
[3461682.477] wl_registry#39.global(48, "wl_output", 4)
[3461682.480] wl_callback#40.done(992)
[3461682.484]  -> zwp_linux_dmabuf_v1#41.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1#40)
[3461682.488]  -> wl_display#1.sync(new id wl_callback#42)
[3461682.563] {Display Queue} wl_display#1.delete_id(42)
[3461682.567] zwp_linux_dmabuf_feedback_v1#40.main_device(array[8])
[3461682.874] zwp_linux_dmabuf_feedback_v1#40.format_table(fd 18, 3200)
[3461682.921] zwp_linux_dmabuf_feedback_v1#40.tranche_target_device(array[8])
[3461682.926] zwp_linux_dmabuf_feedback_v1#40.tranche_flags(0)
[3461682.929] zwp_linux_dmabuf_feedback_v1#40.tranche_formats(array[400])
[3461682.941] zwp_linux_dmabuf_feedback_v1#40.tranche_done()
[3461682.945] zwp_linux_dmabuf_feedback_v1#40.done()
[3461682.947] wl_callback#42.done(992)
[3461682.952]  -> zwp_linux_dmabuf_feedback_v1#40.destroy()
[3461703.307] {Default Queue} wl_keyboard#28.keymap(1, fd 17, 70673)
[3461708.615] {Default Queue} wl_keyboard#28.repeat_info(25, 600)
[3461708.664] {Default Queue}  -> wl_compositor#5.create_surface(new id wl_surface#42)
[3461708.671] {Default Queue}  -> wp_viewporter#15.get_viewport(new id wp_viewport#43, wl_surface#42)
[3461708.675] {Default Queue}  -> wp_fractional_scale_manager_v1#16.get_fractional_scale(new id wp_fractional_scale_v1#44, wl_surface#42)
[3461708.681] {Default Queue}  -> wp_viewport#43.set_source(0.00000000, 0.00000000, 720.00000000, 480.00000000)
[3461708.686] {Default Queue}  -> wp_viewport#43.set_destination(720, 480)
[3461708.690] {Default Queue}  -> wl_compositor#5.create_region(new id wl_region#45)
[3461708.693] {Default Queue}  -> wl_region#45.add(0, 0, 720, 480)
[3461708.697] {Default Queue}  -> wl_surface#42.set_opaque_region(wl_region#45)
[3461708.700] {Default Queue}  -> wl_region#45.destroy()
[3461708.708]  -> wl_surface#42.frame(new id wl_callback#46)
[3461708.712] {Default Queue}  -> wl_surface#42.frame(new id wl_callback#47)
[3461708.785]  -> zwp_linux_dmabuf_v1#41.get_surface_feedback(new id zwp_linux_dmabuf_feedback_v1#48, wl_surface#42)
[3461708.794]  -> wl_display#1.sync(new id wl_callback#49)
[3461708.941] {Display Queue} wl_display#1.delete_id(40)
[3461708.947] {Display Queue} wl_display#1.delete_id(45)
[3461708.950] {Display Queue} wl_display#1.delete_id(49)
[3461708.953] wl_callback#49.done(992)
[3461709.100] {Default Queue}  -> zwp_idle_inhibit_manager_v1#8.create_inhibitor(new id zwp_idle_inhibitor_v1#49, wl_surface#42)
[3461709.113] {Default Queue}  -> wl_surface#42.attach(nil, 0, 0)
[3461709.118] {Default Queue}  -> wl_surface#42.commit()
[3461709.121] {Default Queue}  -> xdg_wm_base#9.get_xdg_surface(new id xdg_surface#45, wl_surface#42)
[3461709.126] {Default Queue}  -> xdg_surface#45.get_toplevel(new id xdg_toplevel#40)
[3461709.130] {Default Queue}  -> xdg_toplevel#40.set_app_id("mcpelauncher-client")
[3461709.134] {Default Queue}  -> xdg_toplevel#40.set_title("Minecraft")
[3461709.137] {Default Queue}  -> wl_surface#42.commit()
[3461709.207] {Default Queue} xdg_wm_base#9.ping(994)
[3461709.214] {Default Queue}  -> xdg_wm_base#9.pong(994)
[3461709.217] {Default Queue} xdg_toplevel#40.configure(0, 0, array[0])
[3461709.222] {Default Queue} xdg_surface#45.configure(993)
[3461709.225] {Default Queue}  -> xdg_toplevel#40.set_min_size(0, 0)
[3461709.229] {Default Queue}  -> xdg_toplevel#40.set_max_size(0, 0)
[3461709.234] {Default Queue}  -> xdg_surface#45.ack_configure(993)
[3461709.237] {Default Queue}  -> zxdg_decoration_manager_v1#11.get_toplevel_decoration(new id zxdg_toplevel_decoration_v1#50, xdg_toplevel#40)
[3461709.242] {Default Queue}  -> xdg_surface#45.set_window_geometry(0, 0, 720, 480)
[3461709.246] {Default Queue}  -> xdg_toplevel#40.set_min_size(1, 1)
[3461709.249] {Default Queue}  -> xdg_toplevel#40.set_max_size(0, 0)
[3461709.252] {Default Queue}  -> zxdg_toplevel_decoration_v1#50.set_mode(2)
[3461709.256] {Default Queue}  -> xdg_activation_v1#17.activate("964d5a454c5b4c633a7d3f56dbf5cfa6", wl_surface#42)
[3461709.262] {Default Queue}  -> wl_display#1.sync(new id wl_callback#51)
[3461709.267] {Default Queue}  -> xdg_toplevel#40.unset_maximized()
[3461709.272] {Default Queue}  -> wl_display#1.sync(new id wl_callback#52)
[3461709.327] {Display Queue} wl_display#1.delete_id(51)
[3461709.331] {Display Queue} wl_display#1.delete_id(52)
[3461709.334] {Default Queue} wl_callback#51.done(995)
[3461709.338] {Default Queue} wl_callback#52.done(995)
[3461709.341] {Default Queue} xdg_toplevel#40.configure(0, 0, array[0])
[3461709.345] {Default Queue} zxdg_toplevel_decoration_v1#50.configure(2)
[3461709.348] {Default Queue} xdg_surface#45.configure(995)
[3461709.351] {Default Queue}  -> xdg_toplevel#40.set_min_size(1, 1)
[3461709.355] {Default Queue}  -> xdg_toplevel#40.set_max_size(0, 0)
[3461709.377] {Default Queue}  -> xdg_surface#45.ack_configure(995)
[3461711.567] zwp_linux_dmabuf_feedback_v1#48.main_device(array[8])
[3461711.583] zwp_linux_dmabuf_feedback_v1#48.format_table(fd 17, 3200)
[3461711.601] zwp_linux_dmabuf_feedback_v1#48.tranche_target_device(array[8])
[3461711.605] zwp_linux_dmabuf_feedback_v1#48.tranche_flags(0)
[3461711.608] zwp_linux_dmabuf_feedback_v1#48.tranche_formats(array[400])
[3461711.615] zwp_linux_dmabuf_feedback_v1#48.tranche_done()
[3461711.620] zwp_linux_dmabuf_feedback_v1#48.done()
19:43:55 Trace [Launcher] Loading Minecraft library
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libc++_shared.so 0x7e6a18ec0000
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libminecraftpe.so 0x7e69f0e00000
Found hook: _ZN11AppPlatform16showMousePointerEv @ 0x604cf24b6210
Found hook: _ZN11AppPlatform16hideMousePointerEv @ 0x604cf24b61f0
Found hook: _ZN11AppPlatform17setFullscreenModeE14FullscreenMode @ 0x604cf24b6230
Found hook: _ZN3rtc10getifaddrsEPP7ifaddrs @ 0x604cf265a290
Found hook: _ZN3rtc11freeifaddrsEP7ifaddrs @ 0x604cf265a4e0
19:43:56 Info  [Launcher] Loaded Minecraft library
19:43:56 Debug [Launcher] Minecraft is at offset 0x7E69F0E00000
19:43:56 Info  [Launcher] Game version: 0.0.0.0
19:43:56 Info  [Launcher] Applying patches
19:43:56 Debug [CorePatches] Failed to patch, vtable _ZTV21AppPlatform_android23 not found
19:43:56 Info  [Launcher] Initializing JNI
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeRegisterThis
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeWithApplicationContext
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeUnregisterThis
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeXboxLive
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeinitializeLibHttpClient
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_MainActivity_nativeInitializeLibHttpClient
19:43:56 Error [JniSupport] Missing native symbol: Java_com_microsoft_xal_browser_WebView_urlOperationSucceeded
19:43:56 Error [JniSupport] Missing native symbol: Java_com_mojang_minecraftpe_PlayIntegrity_nativePlayIntegrityComplete
19:43:56 Trace [Minecraft] Entering JNI_OnLoad 0x7e6a12a006c0
19:43:56 Trace [Minecraft] JNI_OnLoad completed
19:43:56 Trace [JniSupport] Invoking nativeRegisterThis
19:43:56 Trace [JniSupport] Invoking ANativeActivity_onCreate
19:43:56 Info  [Launcher] Executing main thread
19:43:56 Warn  [Main] Android stub called
19:43:56 Warn  [Main] Android stub called
19:43:56 Warn  [Main] Android stub called
19:43:56 Warn  [Main] Android stub called
19:43:56 Info  [Minecraft] android_main starting. internalDataPath is '/internal', externalDataPath is '/external'
19:43:56 Trace [JniSupport] Invoking start activity callbacks
19:43:56 Error [MCPE] *** setCachedDeviceId(cb9f103b-9fe9-4d11-8d69-5ce1602272e3)
19:43:56 Info  [Bedrock] configureBreakpad with directory: /crash, sessionid is: ae269f8e-188c-46da-8b33-d6c82c11e859
19:43:56 Info  [Bedrock] configureBreakpad called, directory is: /crash, sessionid is: ae269f8e-188c-46da-8b33-d6c82c11e859
19:43:56 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using External dir (NEW) - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
19:43:56 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
19:43:56 Warn  [Minecraft] NO LOG FILE! - [Graphics] The graphics context was gained
19:43:56 Warn  [Minecraft] MinecraftGame::init && MinecraftGame::setSize!
19:43:56 Warn  [FakeEGL] eglQueryString 308d
19:43:56 Warn  [Main] Android stub called
19:43:56 Info  [GL] Vendor: Intel
19:43:56 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
19:43:56 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
19:43:56 Info  [GL] Vendor: Intel
19:43:56 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
19:43:56 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
19:43:56 Warn  [Main] Android stub called
19:43:56 Info  [Minecraft] NO LOG FILE! - AppPlatform_android::setStorageDirectory - using AppData dir - CurrentFileStoragePath is now '/home/remorin/.local/share/mcpelauncher/'
linker: mcpelauncher_linker_notifylldb /home/remorin/.local/share/mcpelauncher/versions/1.20.81.01/lib/x86_64/libMediaDecoders_Android.so 0x7e69ea600000
19:43:56 Info  [GL] Vendor: Intel
19:43:56 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
19:43:56 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
19:43:56 Warn  [Main] Android stub called
[3462859.220]  -> zwp_linux_dmabuf_v1#41.create_params(new id zwp_linux_buffer_params_v1#52)
[3462859.355]  -> zwp_linux_buffer_params_v1#52.add(fd 34, 0, 0, 2944, 16777216, 4)
[3462859.413]  -> zwp_linux_buffer_params_v1#52.add(fd 35, 1, 1413120, 128, 16777216, 4)
[3462859.434]  -> zwp_linux_buffer_params_v1#52.create_immed(new id wl_buffer#51, 720, 480, 875713112, 0)
[3462859.451]  -> zwp_linux_buffer_params_v1#52.destroy()
[3462859.466]  -> wl_surface#42.attach(wl_buffer#51, 0, 0)
[3462859.480]  -> wl_surface#42.damage(0, 0, 2147483647, 2147483647)
[3462859.493]  -> wl_surface#42.commit()
[3462859.505]  -> wl_display#1.sync(new id wl_callback#53)
[3462885.450] {Display Queue} wl_display#1.delete_id(52)
[3462885.518] {Display Queue} wl_display#1.delete_id(46)
[3462885.533] {Display Queue} wl_display#1.delete_id(47)
[3462885.543] {Display Queue} wl_display#1.delete_id(53)
[3462885.554] wl_callback#53.done(998)
[3462885.581]  -> zwp_linux_dmabuf_v1#41.create_params(new id zwp_linux_buffer_params_v1#53)
[3462885.687]  -> zwp_linux_buffer_params_v1#53.add(fd 34, 0, 0, 2944, 16777216, 4)
[3462885.724]  -> zwp_linux_buffer_params_v1#53.add(fd 35, 1, 1413120, 128, 16777216, 4)
[3462885.746]  -> zwp_linux_buffer_params_v1#53.create_immed(new id wl_buffer#52, 720, 480, 875713112, 0)
[3462885.764]  -> zwp_linux_buffer_params_v1#53.destroy()
[3462885.779]  -> wl_surface#42.attach(wl_buffer#52, 0, 0)
[3462885.794]  -> wl_surface#42.damage(0, 0, 2147483647, 2147483647)
[3462885.808]  -> wl_surface#42.commit()
[3462885.820]  -> wl_display#1.sync(new id wl_callback#54)
[3463119.485] {Default Queue} wl_keyboard#28.enter(997, wl_surface#42, array[0])
[3463119.512] {Default Queue} wl_keyboard#28.modifiers(998, 0, 0, 16, 0)
[3463119.558] {Default Queue} wl_data_device#20.selection(nil)
[3463119.563] {Default Queue} zwp_primary_selection_device_v1#24.selection(nil)
[3463119.568] {Default Queue} wl_callback#47.done(4006727)
[3463119.573] {Default Queue}  -> wl_surface#42.damage_buffer(0, 0, 720, 480)
[3463119.580] {Default Queue}  -> wl_surface#42.frame(new id wl_callback#47)
[3463119.584] {Default Queue} xdg_toplevel#40.configure(2148, 1391, array[20])
[3463119.589] {Default Queue} xdg_surface#45.configure(996)
[3463119.596] {Default Queue}  -> wp_viewport#43.set_source(0.00000000, 0.00000000, 2148.00000000, 1391.00000000)
[3463119.600] {Default Queue}  -> wp_viewport#43.set_destination(2148, 1391)
[3463119.604] {Default Queue}  -> xdg_surface#45.set_window_geometry(0, 0, 2148, 1391)
[3463119.608] {Default Queue}  -> wl_compositor#5.create_region(new id wl_region#55)
[3463119.612] {Default Queue}  -> wl_region#55.add(0, 0, 2148, 1391)
[3463119.615] {Default Queue}  -> wl_surface#42.set_opaque_region(wl_region#55)
[3463119.619] {Default Queue}  -> wl_region#55.destroy()
[3463119.623] {Default Queue}  -> xdg_toplevel#40.set_min_size(1, 1)
[3463119.626] {Default Queue}  -> xdg_toplevel#40.set_max_size(0, 0)
[3463119.633] {Default Queue}  -> xdg_surface#45.ack_configure(996)
[3463120.714] {Display Queue} wl_display#1.delete_id(53)
[3463120.804] {Display Queue} wl_display#1.delete_id(54)
[3463120.812] {Default Queue} wl_surface#42.enter(wl_output#25)
[3463120.821] {Default Queue} wp_fractional_scale_v1#44.preferred_scale(120)
[3463120.825] {Default Queue} wl_surface#42.preferred_buffer_scale(1)
[3463121.071] wl_callback#46.done(4006727)
[3463121.084]  -> wl_surface#42.frame(new id wl_callback#53)
[3463121.215] wl_callback#54.done(998)
[3463121.223] wl_buffer#51.release()
[3463121.227]  -> wl_buffer#51.destroy()
[3463121.234]  -> zwp_linux_dmabuf_v1#41.create_params(new id zwp_linux_buffer_params_v1#54)
[3463121.299]  -> zwp_linux_buffer_params_v1#54.add(fd 33, 0, 0, 2944, 16777216, 4)
[3463121.311]  -> zwp_linux_buffer_params_v1#54.add(fd 34, 1, 1413120, 128, 16777216, 4)
[3463121.316]  -> zwp_linux_buffer_params_v1#54.create_immed(new id wl_buffer#46, 720, 480, 875713112, 0)
[3463121.321]  -> zwp_linux_buffer_params_v1#54.destroy()
[3463121.324]  -> wl_surface#42.attach(wl_buffer#46, 0, 0)
[3463121.328]  -> wl_surface#42.damage(0, 0, 2147483647, 2147483647)
[3463121.332]  -> wl_surface#42.commit()
[3463121.335]  -> wl_display#1.sync(new id wl_callback#56)
19:43:57 Info  [GL] Vendor: Intel
19:43:57 Info  [GL] Renderer: Mesa Intel(R) UHD Graphics (JSL)
19:43:57 Info  [GL] Version: OpenGL ES 3.2 Mesa 24.1.0-arch1.1
19:43:57 Warn  [Main] Android stub called
[3463137.196] {Display Queue} wl_display#1.delete_id(55)
[3463137.219] {Display Queue} wl_display#1.delete_id(51)
[3463137.223] {Display Queue} wl_display#1.delete_id(54)
[3463137.226] {Display Queue} wl_display#1.error(wp_viewport#43, 2, "source rectangle out of buffer bounds")
wp_viewport#43: error 2: source rectangle out of buffer bounds
19:43:57 Debug [HttpCallStaticGlue] Successfully registerered HttpCall methods
19:43:57 Debug [XboxLiveAppConfig] Successfully registerered XboxLiveAppConfig methods
19:43:57 Debug [XSAPI.Android] Successfully registerered HttpCall tcuiMethods
19:44:01 Info  [Minecraft] NO LOG FILE! - Time played notifier not required for 'en'

Process exited with unexpected exit code: 9

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

You can also try updating the SDL submodule manually to a newer version (default branch)

Yeah, the sumodule commit in this repo points to commit 5 months ago, definitely before the libsdl-org/SDL/pull/9285 fix.

@ChristopherHX, how do I change the commit to the main branch in the PKGBUILD?

@ChristopherHX
Copy link
Member

Maybe just a git fetch and git checkout origin/main in the subfolder.

I'm not an archlinux user and build all other packages via git, clang and cmake without that file

@ChristopherHX
Copy link
Member

I noticed sdl3 cannot be updated, there are another couple of renames as it's in prerelease development.

@REmerald
Copy link
Author

REmerald commented Jun 1, 2024

I noticed sdl3 cannot be updated, there are another couple of renames as it's in prerelease development.

I fixed it as well during build:

prepare() {
  ...
  git -C mcpelauncher-manifest/sdl3 checkout main
  spatch --sp-file "$srcdir/SDL/build-scripts/SDL_migration.cocci" --c++=17 --max-width 200 --dir "$srcdir/mcpelauncher-manifest/sdl3/src" --in-place
  spatch --sp-file "$srcdir/SDL/build-scripts/SDL_migration.cocci" --c++=17 --max-width 200 "$srcdir/mcpelauncher-manifest/game-window/src/window_sdl3.cpp" --in-place
}

If I don't enable any scaling the game launches and looks ok (but I didn't go and test after main menu). But with any scaling (> 1, int or fractional) there's a glitch:
image
Though, it's just the picture that's messed up, if I need to interact with e.g. button, I need to put the cursor on the position where the button would have been if the picture wasn't messed up.

Log with WAYLAND_DEBUG=1

With output eDP-1 scale 2 it's even worse:
image

Seems like an SDL bug.

@REmerald
Copy link
Author

REmerald commented Jun 2, 2024

@ChristopherHX, built again with the latest commit (and reverted prepare() changes above).
The issue is still here. It's wayland only, adding SDL_VIDEO_DRIVER=x11 variable workaround works.

Also, for some reason, the appimage doesn't work:

$ Minecraft_Bedrock_Launcher-sdl3-x86_64-v0.14.2.353.AppImage 
This application failed to start because it could not find or load the Qt platform plugin "wayland"
in "".

Available platform plugins are: xcb.

Reinstalling the application may fix this problem.
Aborted (core dumped)

@ChristopherHX
Copy link
Member

Also, for some reason, the appimage doesn't work:

only boomworm appimages contain qt that can handle force wayland env variables

AppImages are still x11 apps, even the sdl variant refuses to build sdl wayland

@REmerald
Copy link
Author

REmerald commented Jun 3, 2024

@ChristopherHX, thanks, now sdl3 wayland backend works.
Didn't test if sound breaks yet.

@ChristopherHX
Copy link
Member

I updated the dependencies of the bookworm based appimages..

AppImage-bookworm-sdl3 (nightly build 356 and up) is now a true wayland application, should work without xwayland

  • For unknown reasons I froze my UI session 3 times by pressing the red x of the window, pressing poweroff for some seconds recovered the login manager and killed the session
  • Now that changed to cannot reproduce, but it can come back

@ChristopherHX
Copy link
Member

e.g. also pipewire support should be included, via the -df commandline

@REmerald
Copy link
Author

@ChristopherHX The sound still breaks with sdl3 (wayland) and -df, even more frequently.

I tried doing (without the -df) the fmod fix (ln -s /usr/bin/true /usr/local/bin/pulseaudio) and it changed the string from Pipewire ALSA [mcpelauncher-client] to FMOD Audio (so it seems like it switched from also to pulseaudio), but it didn't help. (Adding FMOD_ALSA_DEVICE=pulse instead changed the string to ALSA plug-in [mcpelauncher-client], so I don't think it does anything useful.)

But I also tried another fix (which I initially skipped because I wasn't having the same error message) and it seems to have worked. The sound doesn't disappear no matter how I switch windows. Maybe there's a chance it will happen again, but I think that's very unlikely.

I won't test if it works in eglut or without -df for now, because I'm happy with sdl3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants