Skip to content

[Bug]: idle_add() got an unexpected keyword argument 'plain' #3983

@gabrielsouza-dev

Description

@gabrielsouza-dev

Describe the bug

Every time I finish installing the game, everything seems to be OK, but when I click to start it in the launcher, the game simply won't open, even if I try several times, open and close Bottles, delete it, and create another bottle. I even tried using different executors than wine/proton, but none of them worked. The only thing that happens is that it closes the launcher and after a few seconds opens it again, as if something went wrong when starting the game.

This bug happens every time I create a bottle for the HoYoPlay launcher that I only use to play Genshin Impact specifically. Whether I install it manually or through the Bottles program menu, the same thing happens.

To Reproduce

  1. Create a new bottle
  2. Download the HoYoPlay launcher (either from the official website or from the Bottles program list)
  3. Install the launcher
  4. Install the Genshin Impact game
  5. Start the game from the launcher
  6. The launcher closes
  7. The game does not open
  8. A few seconds later, the launcher opens again

Package

Flatpak from Flathub

Distribution

Pop!_OS 22.04 LTS

Debugging Information

Official Package: true
Version: '51.21'
DE/WM: pop
Display:
    X.org: true
    X.org (port): :1
    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.12.10-76061203-generic
Disk:
    Total: 8051998720
    Free: 8051830784
RAM:
    MemTotal: 15.0GiB
    MemAvailable: 8.2GiB
Bottles_envs: null

Troubleshooting Logs

idle_add() got an unexpected keyword argument 'plain'  File "/app/share/bottles/bottles/backend/utils/threading.py", line 62, in __target
    result = self.task_func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/share/bottles/bottles/frontend/views/bottle_dependencies.py", line 141, in process_dependencies
    GLib.idle_add(new_dependency, dep, plain=True)

Additional context

The only alternative I found was to install Port-Proton, which has a specific version of Wine for the HoYoPlay Launcher (version 10-10), it works like magic by the way. Other than this error, Bottles has always worked very well.

I am happy if I can help in any way with this feedback.

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