flathub / flathub/com.mojang.Minecraft
application launcher fails to complete
- Dominant language
- Shell
- Stars
- 38
- Forks
- 13
- Avg merge
- 24m
- Merged PRs (30d)
- 2
Description
hello
i'm having trouble launching the application. it only works maybe `1` time out of `10` and never seems to retain my login information
it usually hangs entering my login and clicking on the `Let's Go` prompt on the `Welcome to XBox` screen

below is the output from running it on the command line
```
$ flatpak run com.mojang.Minecraft
[0820/140547.059331:INFO:main_context.cpp(136)] CEF initialized successfully.
[0820/140547.059439:INFO:main_context.cpp(138)] CEF version: 99.2.14+g3f796b8+chromium-99.0.4844.84
sh: line 1: orca: command not found
[0820/140547.084784:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Code Cache/js
[0820/140547.084943:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Code Cache/wasm
[0820/140547.085125:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Code Cache/js
[0820/140547.085301:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Code Cache/wasm
[0820/140547.085349:ERROR:disk_cache.cc(185)] Unable to create cache
[0820/140547.085376:ERROR:disk_cache.cc(185)] Unable to create cache
Created browser window for reuse: 0x6400003
[0820/140547.224746:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[0820/140547.811295:INFO:CONSOLE(2)] "The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu", source: https://mojang/launcher/static/js/app.77b9cd5c.bundle.js (2)
[0820/140548.323615:WARNING:value_store_frontend.cc(47)] Reading mhjfbmdgcfjbbpaeojofohoefgiehjai.alarms from failed: IO error: .../LOCK: Access denied. (ChromeMethodBFE: 15::LockFile::5)
Created browser window for reuse: 0x6400015
[0820/140616.918728:INFO:LauncherAppRenderer.cpp(542)] OnContextReleased: no frame (unknown context), browser id=2
[0820/140617.063668:INFO:LauncherAppRenderer.cpp(542)] OnContextReleased: no frame (unknown context), browser id=2
[0820/140617.702625:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Cache/Cache_Data
[0820/140617.703418:ERROR:simple_backend_impl.cc(735)] Simple Cache Backend: wrong file structure on disk: 2 path: /home/sarah/.var/app/com.mojang.Minecraft/data/../.minecraft/webcache2/Cache/Cache_Data
[0820/140617.703573:ERROR:disk_cache.cc(185)] Unable to create cache
Created browser window for reuse: 0x640001c
[0820/140628.804446:INFO:LauncherAppRenderer.cpp(52)] [Info: 2023-08-20 13:05:46.790867153: LauncherMain.cpp(116)] Initiated models
[0820/140628.804833:INFO:LauncherAppRenderer.cpp(52)] [Info: 2023-08-20 13:05:46.791156236: LauncherController.cpp(616)] Constructing launcher controller with workDir: /.../.minecraft, isActive: 0
[0820/140628.805205:INFO:LauncherAppRenderer.cpp(52)] [Info: 2023-08-20 13:06:19.782178831: LauncherAppRenderer.cpp(173)] Javascript bridge extended in OnWebKitInitialized.
[0820/140629.112978:INFO:LauncherAppRenderer.cpp(542)] OnContextReleased: no frame (unknown context), browser id=3
[0820/140629.199551:INFO:LauncherAppRenderer.cpp(70)] OnBrowserDestroyed: id=3
[0820/140629.261956:WARNING:connection.cc(61)] X error received. Request: DestroyWindowRequest, Error: WindowError{.sequence = 11195, .bad_value = 104857629, .minor_opcode = 0, .major_opcode = 4}
```
i usually try to leave it on that screen for about ten minutes before giving up and killing all the processes because i can't get them all to go away simply by closing the window
i've also had limited success deleting the following directory but it's not a silver bullet
```
$ rm -rf ~/.var/app/com.mojang.Minecraft/
```
i wondered whether my issue may be related to https://github.com/flathub/com.mojang.Minecraft/issues/116 so i added the two overrides as below. but this doesn't appear to have made much difference
```
$ flatpak override --show --user com.mojang.Minecraft
[Context]
sockets=session-bus;
[System Bus Policy]
org.kde.kwalletd5=talk
```
i'd be grateful for any help with this. my system details are below
```
$ flatpak info com.mojang.Minecraft
Minecraft - Create your own world in one of the most popular video games
ID: com.mojang.Minecraft
Ref: app/com.mojang.Minecraft/x86_64/stable
Arch: x86_64
Branch: stable
Version: 1.0.1221
License: LicenseRef-proprietary
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 67.6 MB
Runtime: org.freedesktop.Platform/x86_64/22.08
Sdk: org.freedesktop.Sdk/x86_64/22.08
Commit: 205f41809ec8be4ac6fe553acb6e2998807d455ebea2433fc40070bd55d38869
Parent: f7fb10b49d4a0d9ebbafb3c61967895df37ca94e5653695ff788bb424d083d52
Subject: Update project icon to the new launcher icon (#140) (8588bd2e)
Date: 2023-06-25 13:09:42 +0000
$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="36 (KDE Plasma)"
ID=fedora
VERSION_ID=36
VERSION_CODENAME=""
PLATFORM_ID="platform:f36"
PRETTY_NAME="Fedora Linux 36 (KDE Plasma)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:36"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f36/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=36
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=36
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
SUPPORT_END=2023-05-16
VARIANT="KDE Plasma"
VARIANT_ID=kde
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the intermittent login hang with `flatpak run com.mojang.Minecraft` and review the reported cache, lock-file, CEF, and sandbox messages. Compare behavior after removing `~/.var/app/com.mojang.Minecraft/` and applying the shown Flatpak overrides; done means the launcher consistently completes login, retains credentials, and exits cleanly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fedora, linux, shell
- Domain
- authentication, desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100