Skip to content

[Bug]: Startup crash [Errno 1] after force-closing frozen window while adding Library Path (Flatpak) #4380

@MagTun

Description

@MagTun

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

  1. Open Bottles (Flatpak).
  2. Go to Preferences and try to add a custom Library path.
  3. A popup appeared mentioning that a restart is needed.
  4. I closed the popup because I wanted to remove a bottle before restarting.
  5. The main window became unresponsive/frozen.
  6. I closed the app via System Monitor (force kill).
  7. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions