Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to create more than one bottle (or that it takes unreasonable long time) #284

Closed
ddund opened this issue May 21, 2021 · 4 comments

Comments

@ddund
Copy link

ddund commented May 21, 2021

Describe the bug
I recently installed Bottles and create a software bottle. However when I try to add another bottle of any type (software/gaming/custom) the process seems to get stuck on "Creating bottle...". I have tried letting it run for 2 respective 1 hour without getting anywhere. The first bottle did take less than a minute to create and I'm guessing it's unreasonable that it should take hours to create more of them.

Installation

  • Method: Flatpak
  • Version: 3.1.9

Screenshots
stuck

Desktop:

  • OS: Fedora
  • Version: 34
@mirkobrombin
Copy link
Member

mirkobrombin commented May 21, 2021

Launch from the console to see if there are any errors or logs:

flatpak run com.usebottles.bottles

@zer0exia
Copy link

zer0exia commented May 21, 2021

I have the same problem right now, except trying to create a single software bottles (without other bottles created prior). The app stuck at "Creating bottle..." for quite a long time.
Here's the log when it is ran from terminal. The progress bar is still running at this time, but there aren't any additional logs after :


2021-05-22 07:33:08 INFO: Runners found: [Proton-6.8-GE-2, chardonnay-6.4, lutris-6.4]
2021-05-22 07:33:08 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 07:33:10 INFO: Connection status: online …
https://raw.githubusercontent.com/bottlesdevs/components/main//index.json
2021-05-22 07:33:18 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 07:33:18 INFO: Runners found: [Proton-6.8-GE-2, chardonnay-6.4, lutris-6.4]
2021-05-22 07:33:18 INFO: Connection status: online …
2021-05-22 07:33:25 INFO: Connection status: online …
2021-05-22 07:33:27 INFO: Connection status: online …
2021-05-22 07:33:28 INFO: Connection status: online …

(bottles:24218): Gtk-WARNING **: 07:33:31.405: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'

(bottles:24218): Gtk-WARNING **: 07:33:31.405: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'
2021-05-22 07:33:31 INFO: Bottles Started!
2021-05-22 07:33:45 INFO: Creating the wineprefix …
/bin/sh: line 1: /home/user/.local/share/bottles/runners/Proton-6.8-GE-2/dist/bin/wine64: No such file or directory
2021-05-22 07:33:46 INFO: Generating Bottle configuration file …
2021-05-22 07:33:46 INFO: Applying environment: [Software] …
2021-05-22 07:33:47 ERROR: Error while running async job: <bound method BottlesRunner.async_create_bottle of <bottles.runner.BottlesRunner object at 0x7fd1ee4aed60>>
Exception: [Errno 2] No such file or directory: '/home/user/.local/share/bottles/bottles/testing/bottle.json'
  File "/usr/local/share/bottles/bottles/utils.py", line 181, in target
    result = self.task_func(*args, **kwargs)
  File "/usr/local/share/bottles/bottles/runner.py", line 858, in async_create_bottle
    with open("%s/bottle.json" % bottle_complete_path,

Edit : Trying to create any bottle produce the same problem. (Not just software)

OS : EndeavorOS
Version : 3.1.9

@ddund
Copy link
Author

ddund commented May 22, 2021

I have the same problem right now, except trying to create a single software bottles (without other bottles created prior). The app stuck at "Creating bottle..." for quite a long time.
Here's the log when it is ran from terminal. The progress bar is still running at this time, but there aren't any additional logs after :


2021-05-22 07:33:08 INFO: Runners found: [Proton-6.8-GE-2, chardonnay-6.4, lutris-6.4]
2021-05-22 07:33:08 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 07:33:10 INFO: Connection status: online …
https://raw.githubusercontent.com/bottlesdevs/components/main//index.json
2021-05-22 07:33:18 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 07:33:18 INFO: Runners found: [Proton-6.8-GE-2, chardonnay-6.4, lutris-6.4]
2021-05-22 07:33:18 INFO: Connection status: online …
2021-05-22 07:33:25 INFO: Connection status: online …
2021-05-22 07:33:27 INFO: Connection status: online …
2021-05-22 07:33:28 INFO: Connection status: online …

(bottles:24218): Gtk-WARNING **: 07:33:31.405: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'

(bottles:24218): Gtk-WARNING **: 07:33:31.405: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'
2021-05-22 07:33:31 INFO: Bottles Started!
2021-05-22 07:33:45 INFO: Creating the wineprefix …
/bin/sh: line 1: /home/user/.local/share/bottles/runners/Proton-6.8-GE-2/dist/bin/wine64: No such file or directory
2021-05-22 07:33:46 INFO: Generating Bottle configuration file …
2021-05-22 07:33:46 INFO: Applying environment: [Software] …
2021-05-22 07:33:47 ERROR: Error while running async job: <bound method BottlesRunner.async_create_bottle of <bottles.runner.BottlesRunner object at 0x7fd1ee4aed60>>
Exception: [Errno 2] No such file or directory: '/home/user/.local/share/bottles/bottles/testing/bottle.json'
  File "/usr/local/share/bottles/bottles/utils.py", line 181, in target
    result = self.task_func(*args, **kwargs)
  File "/usr/local/share/bottles/bottles/runner.py", line 858, in async_create_bottle
    with open("%s/bottle.json" % bottle_complete_path,

Edit : Trying to create any bottle produce the same problem. (Not just software)

OS : EndeavorOS
Version : 3.1.9

I get the same response as you get when I run Bottles from the terminal.

$ flatpak run com.usebottles.bottles
Gtk-Message: 13:00:10.203: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:00:10.203: Failed to load module "pk-gtk-module"
2021-05-22 13:00:10 INFO: Runners found: [chardonnay-6.8, Proton-6.8-GE-2, chardonnay-6.4, chardonnay-6.0]
2021-05-22 13:00:10 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 13:00:15 INFO: Connection status: online …
https://raw.githubusercontent.com/bottlesdevs/components/main//index.json
2021-05-22 13:00:15 INFO: Dxvk found: [dxvk-1.8.1]
2021-05-22 13:00:15 INFO: Runners found: [chardonnay-6.8, Proton-6.8-GE-2, chardonnay-6.4, chardonnay-6.0]
2021-05-22 13:00:15 INFO: Bottles found: Softwares
2021-05-22 13:00:15 INFO: Connection status: online …
2021-05-22 13:00:15 INFO: Connection status: online …
2021-05-22 13:00:16 INFO: Connection status: online …
2021-05-22 13:00:16 INFO: Connection status: online …
2021-05-22 13:00:16 INFO: Bottles found: Softwares

(bottles:2): Gtk-WARNING **: 13:00:16.626: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'

(bottles:2): Gtk-WARNING **: 13:00:16.626: Failed to set property GtkListBox.selection-mode to None: Could not parse enum: 'None'
2021-05-22 13:00:16 INFO: Bottles Started!
2021-05-22 13:00:26 INFO: Creating the wineprefix …
/bin/sh: line 1: /home/user/.local/share/bottles/runners/Proton-6.8-GE-2/dist/bin/wine64: No such file or directory
2021-05-22 13:00:27 INFO: Generating Bottle configuration file …
2021-05-22 13:00:27 INFO: Applying environment: [Gaming] …
2021-05-22 13:00:28 ERROR: Error while running async job: <bound method BottlesRunner.async_create_bottle of <bottles.runner.BottlesRunner object at 0x7f7217f46eb0>>
Exception: [Errno 2] No such file or directory: '/home/user/.local/share/bottles/bottles/Gaming/bottle.json'
  File "/app/share/bottles/bottles/utils.py", line 181, in target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/runner.py", line 858, in async_create_bottle
    with open("%s/bottle.json" % bottle_complete_path,

@mirkobrombin
Copy link
Member

mirkobrombin commented May 22, 2021

Does the problem also occur with other packages then flatpak?

I have not encountered the problem with snap and appimage, it must be specific to flatpak. I'll do some tests.


Finally I found the problem. The Proton-6.8 build changed the binary path from dist to files so when Bottles try to create the prefix with that runner, it fail and in the next step Iit don't detect the wineprefix files. I am working on a fix to handle this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants