bottlesdevs / Bottles

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

[Bug]: library 'NoneType' object is not subscriptable #1621

Closed ghtesting2020 closed 2 years ago

ghtesting2020 commented 2 years ago

Describe the bug

2022.6.14-brescia

with latest verson I am finally able to get to library view without crashing. I can now see the programs i add but when I click to play beside one it prints:

Traceback (most recent call last):
  File "/app/share/bottles/bottles/widgets/library.py", line 138, in run_executable
    exec_path=self.program["path"],
TypeError: 'NoneType' object is not subscriptable

yes i know library mode is very experimental. I am just reporting so it is aware. I am very excited for library and have been trying every version last 4 or 5 times hahahahah

To Reproduce

  1. add program to library
  2. go to library view
  3. click play

Package

Flatpak from Flathub

Distribution

Arch

Health Check

Version: 2022.6.14-brescia
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: false
Graphics:
    vendors:
        nvidia: &id002
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
        intel: &id001
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: *id001
        discrete: *id002
Kernel:
    Type: Linux
    Version: 5.17.14-hardened1-1-hardened
Distro:
    Name: GNOME
    Version: '"42 (Flatpak runtime)"'
Disk:
    Total: 8306270208
    Free: 8306102272
RAM:
    MemTotal: 15.5GiB
    MemAvailable: 12.1GiB
Tools:
    cabextract: true
    p7zip: true
    patool: true
    glibc_min: '2.33'
Bottles_envs: null

Display Protocol

X11

Display Backend used by Bottles

X11

Additional context

No response

mirkobrombin commented 2 years ago

Can you share your library.yml?

ghtesting2020 commented 2 years ago

Can you share your library.yml?

4829302fa-3s39-3csa-ga24-s43y4gew5h39:
bottle:
name: Guild Wars 2
path: Guild-Wars-2
icon: /home/mahmood/.var/app/com.usebottles.bottles/data/bottles/bottles/Guild-Wars-2/icons/Gw2-64.png
name: Gw2-64
ghtesting2020 commented 2 years ago

@mirkobrombin I am guess you will also want to see the bottle.yml

Arch: win64
Creation_Date: '2022-02-13 12:03:35.316543'
Custom_Path: false
DLL_Overrides: {}
DXVK: dxvk-1.10.1
Environment: Gaming
Environment_Variables: {}
External_Programs:
    Gw2-64.exe:
        arguments: DXVK_ASYNC=1
        dxvk: true
        dxvk_nvapi: true
        executable: Gw2-64.exe
        folder: /home/mahmood/.var/app/com.usebottles.bottles/data/bottles/bottles/Guild-Wars-2/drive_c/Program
            Files/Guild Wars 2
        icon: com.usebottles.bottles-program
        id: Gw2-64.exe
        name: Guild Wars 2
        path: C:\Program Files\Guild Wars 2\Gw2-64.exe
        removed: null
        script: null
        vkd3d: true
Installed_Dependencies:
- d3dx9
- d3dcompiler_43
LatencyFleX: latencyflex-v0.1.0
Latest_Executables: []
NVAPI: dxvk-nvapi-v0.5.4
Name: Guild Wars 2
Parameters:
    aco_compiler: true
    custom_dpi: 96
    discrete_gpu: true
    dxvk: true
    dxvk_hud: false
    dxvk_nvapi: true
    environment_variables: ''
    fixme_logs: false
    fsr: true
    fsr_level: 2
    fullscreen_capture: false
    gamemode: true
    gamescope: false
    gamescope_borderless: false
    gamescope_fps: 60
    gamescope_fps_no_focus: 60
    gamescope_fullscreen: true
    gamescope_game_height: 1080
    gamescope_game_width: 1920
    gamescope_scaling: false
    gamescope_window_height: 480
    gamescope_window_width: 640
    latencyflex: false
    mangohud: false
    mouse_warp: true
    obsvkc: false
    pulseaudio_latency: true
    renderer: gl
    sync: esync
    take_focus: true
    use_runtime: false
    use_steam_runtime: false
    virtual_desktop: false
    virtual_desktop_res: 1024x768
    vkbasalt: false
    vkd3d: true
Path: Guild-Wars-2
Programs: {}
Runner: wine-ge-7-11
State: 0
Uninstallers:
    d3dcompiler_43: false
    d3dx9: false
Update_Date: '2022-05-30 19:18:34.373424'
VKD3D: vkd3d-proton-2.6
Versioning: false
Windows: win10
WorkingDir: ''