[Bug]: Startup crash [Errno 1] after force-closing frozen window while adding Library Path (Flatpak)
Describe the bug
I tried to add an external Library path, but the application froze after I dismissed the ≈"Restart" popup. After force-killing the app, it is now stuck in an unresponsive loop on startup, even after a system reboot.
To Reproduce
- Open Bottles (Flatpak).
- Go to Preferences and try to add a custom Library path.
- A popup appeared mentioning that a restart is needed.
- I closed the popup because I wanted to remove a bottle before restarting.
- The main window became unresponsive/frozen.
- I closed the app via System Monitor (force kill).
- Now, when opening Bottles, the window appears but gets stuck on the loading screen ("offline fetch"), and the following error is printed in the logs.
Package
Flatpak from Flathub
Distribution
Fedora 43 KDE
Debugging Information
Official Package: true
Version: '61.1'
DE/WM: plasma
Display:
X.org: true
X.org (port): :0
Wayland: true
Graphics:
vendors:
nvidia:
vendor: nvidia
envs:
__NV_PRIME_RENDER_OFFLOAD: '1'
__GLX_VENDOR_LIBRARY_NAME: nvidia
__VK_LAYER_NV_optimus: NVIDIA_only
icd: /usr/share/vulkan/icd.d/nvidia_icd.json
nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-580-119-02/lib/nvidia/wine
prime:
integrated: null
discrete: null
Kernel:
Type: Linux
Version: 6.18.7-200.fc43.x86_64
Disk:
Total: 16664420352
Free: 16664231936
RAM:
MemTotal: 31.0GiB
MemAvailable: 22.9GiB
Bottles_envs: null
Troubleshooting Logs
[Errno 1] Operation not permitted: '/run/user/1000/doc/3a50c248/appsForBottles' File "/app/share/bottles/bottles/backend/utils/threading.py", line 73, in __target
result = self.task_func(*args, **kwargs)
File "/app/share/bottles/bottles/frontend/windows/window.py", line 380, in get_manager
mng = Manager(
g_settings=self.settings,
check_connection=self.utils_conn.aborted_connections == 0,
)
File "/app/share/bottles/bottles/backend/utils/singleton.py", line 6, in __call__
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/app/share/bottles/bottles/backend/managers/manager.py", line 183, in __init__
times.update(self.checks(install_latest=False, first_run=True).data)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/share/bottles/bottles/backend/managers/manager.py", line 295, in checks
result = func()
File "/app/share/bottles/bottles/backend/managers/manager.py", line 1319, in check_bottles
process_bottle(b)
~~~~~~~~~~~~~~^^^
File "/app/share/bottles/bottles/backend/managers/manager.py", line 1279, in process_bottle
os.makedirs(p)
~~~~~~~~~~~^^^
File "<frozen os>", line 218, in makedirs
File "<frozen os>", line 218, in makedirs
File "<frozen os>", line 218, in makedirs
File "<frozen os>", line 228, in makedirs
Additional context
No response
I don't know what caused it in your case, but I wound up with the same error when my flatpak document permissions broke, and I was trying to fix it by manually updating the locations in the configurations.
Bottles reads the bottle location (that flatpak symlinks inside the sandbox) from a placeholder.yml located in one of the directories in ~/.var/app/com.usebottles.bottles/data/bottles/bottles/. It then tries to read the bottle settings from the bottle.yml at that path and then uses the Path: entry in the settings to create the cache directories for the bottle.
I was getting that error because I only updated the path in the placeholder.yml. The path in the bottle.yml inside the actual bottle directory also needs to match the mounted path. It sounds like in your case, bottles only updated placeholder file because it has managed to read the bottle.yml file but can't create the cache directories. The error says that the broken bottle paths are for appsForBottles.