Closed REmerald closed 4 months ago
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
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?
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.
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
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
Btw, I got unrelated idea, maybe add a log section under
News
or aboveSettings
? 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.
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.
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.
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.
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).
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
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)?
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
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.
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.
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:
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)?
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
@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.
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.
You can also try updating the SDL submodule manually to a newer version (default branch)
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.
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?
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
I noticed sdl3 cannot be updated, there are another couple of renames as it's in prerelease development.
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: 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.
With output eDP-1 scale 2
it's even worse:
Seems like an SDL bug.
@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)
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
@ChristopherHX, thanks, now sdl3 wayland backend works. Didn't test if sound breaks yet.
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
e.g. also pipewire support should be included, via the -df
commandline
@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.
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:
Expected behavior Sound doesn't break.
Screenshots N/A.
Desktop (please complete the following information):
mcpelauncher-linux-git-0.14.2.r6.gab2424c-1
mcpelauncher-ui-git-0.14.3.r6.gdd57535-1
Additional context The issue was present for a long time. The sound breaking "effect" sounds similar to #845. Everything needed seems to be installed: