bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.36k stars 267 forks source link

[Bug]: Returning from offline breaks runners, components and dependencies tabs #2972

Open Qronikarz opened 1 year ago

Qronikarz commented 1 year ago

Describe the bug

I always use Bottles with internet connection blocked in Flatseal because the start-up checks are unnecessary most of the times and they are extremely slow when you launch it while downloading something somewhere else. But if I have to install some dependency no matter if I already used it I need to turn it back on again. So, when you enable internet connection in Flatseal you need to restart Bottles because the icon that appears in Bottles when you don't have connection doesn't do anything. I tried it few minutes ago with just pulling the cable out and then back on. This time the internet connection button works, but if you go to runners and components tab they are broken. Dependencies inside bottle are also not showing. off

To Reproduce

  1. Turn off your internet connection (not in Flatseal)
  2. Open Bottles
  3. Turn internet connection back on
  4. Click on the internet connection button in Bottles
  5. Go to Dependencies, Runners and Components tabs and see if they work

Package

Flatpak from Flathub

Distribution

Mint 21.2

Debugging Information

Official Package: true
Version: '51.6'
DE/WM: cinnamon
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 5.15.0-76-generic
Disk:
    Total: 8315015168
    Free: 8314855424
RAM:
    MemTotal: 15.5GiB
    MemAvailable: 12.5GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

No response

Pengukov commented 1 year ago

Testing fix for #3061 I ran into a similar issue.

  1. Start Bottles
  2. Turn off internet
  3. Try to install new bottle were dependencies fail to fetch (canceled with fix, goes through in 51.9, errors only in terminal)
  4. Turn on internet
  5. Creating a new bottle will fail to fetch dependencies and cancel until Bottles is restarted (goes through without installing dependencies in 51.9, terminal log still says they are being installed).

But there is no warning that Bottles is not connected / in offline-mode and no "connect" button since it was started while online.

Cheers