bottlesdevs / Bottles

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

[Bug]: Unable to create bottle (no further explanation is given) #3202

Open rptb1 opened 11 months ago

rptb1 commented 11 months ago

Describe the bug

When I try to create a Bottle (in a previously working Bottle installation) I get a message "Unable to create bottle" with no further details. If I relaunch, I am prompted to submit a crash report. Here it is.

To Reproduce

  1. Launch Bottles.
  2. Press the "+" button.
  3. Select a Gaming bottle.
  4. Name it something.
  5. Press "Create" button.

Package

Flatpak from Flathub

Distribution

SteamOS Holo

Debugging Information

Official Package: true
Version: '51.9'
DE/WM: plasma-steamos-oneshot
Display:
    X.org: true
    X.org (port): :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: 6.1.52-valve9-1-neptune-61
Disk:
    Total: 7767031808
    Free: 7766876160
RAM:
    MemTotal: 14.5GiB
    MemAvailable: 10.9GiB
Bottles_envs: null

Troubleshooting Logs

[Errno 2] No such file or directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/templates/cc89cb50-eb65-417f-83d0-a85f870957ae'  File "/app/share/bottles/bottles/backend/utils/threading.py", line 59, in __target
    result = self.task_func(*args, **kwargs)

  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1235, in create_bottle
    TemplateManager.unpack_template(template, config)

  File "/app/share/bottles/bottles/backend/managers/template.py", line 195, in unpack_template
    shutil.copytree(_path, bottle, symlinks=True, dirs_exist_ok=True, ignore=shutil.ignore_patterns('.*'), ignore_dangling_symlinks=True)

  File "/usr/lib/python3.10/shutil.py", line 557, in copytree
    with os.scandir(src) as itr:

Additional context

Looking at the error message, it seems that the string "USER" in the path should be the username. That path does indeed not exist.

rptb1 commented 11 months ago

That path does indeed not exist.

But it doesn't exist in the user directory either.

(deck@plover ~)$ ls .var/app/com.usebottles.bottles/data/bottles/templates/
95797081-5d49-4273-81fa-428b34a2fb64  f51d6fa3-f261-4969-9569-d326399fab8b
rptb1 commented 11 months ago

Also, I'm able to create "Application" and "Custom" (with defaults) bottles.