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 use the virtual desktop #2120

Closed
ghost opened this issue Sep 28, 2022 · 11 comments
Closed

[Bug]: Unable to use the virtual desktop #2120

ghost opened this issue Sep 28, 2022 · 11 comments
Assignees

Comments

@ghost
Copy link

ghost commented Sep 28, 2022

Describe the bug

Greetings, when I try to use the virtual desktop in games they stop being able to start. It is something I have tried a few times with different games, over months with different versions of linux mint and kernels.

I have tried different bottle configurations without success. It is a feature that has always worked and still works for me in lutris (also in its flatpak version), so I assume it is a bottles bug instead of wine.

I have finally been trying to figure out the cause without success. The only apparently relevant thing I have found is that when starting a game with the console and the virtual desktop, this text is added to the console:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  156 (NV-GLX)
  Minor opcode of failed request:  43 ()
  Serial number of failed request:  414
  Current serial number in output stream:  415

To Reproduce

Just set any virtual desktop configuration. So far I can reproduce it 100%

Package

Flatpak from Flathub

Distribution

linux mint 21

Troubleshooting Logs

Version: 2022.9.28.1
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.15.0-48-generic
Distro:
    Name: GNOME
    Version: '43'
Disk:
    Total: 4123123712
    Free: 4122939392
RAM:
    MemTotal: "8,2\_GB"
    MemAvailable: "5,1\_GB"
Bottles_envs: null

Display Protocol

X11

Display Backend used by Bottles

X11

Additional context

No response

@ghost ghost assigned mirkobrombin Sep 28, 2022
@TheEvilSkeleton
Copy link
Member

Can you try to install Notepad++ in a separate bottle and use virtual desktop? I want to check if you have problems with virtual desktops in general or only with this in particular.

@mirkobrombin
Copy link
Member

Virtual desktop works here
image

@ghost
Copy link
Author

ghost commented Oct 1, 2022

Can you try to install Notepad++ in a separate bottle and use virtual desktop? I want to check if you have problems with virtual desktops in general or only with this in particular.

It worked with notepad++! My apologies, I clearly wasn't thorough enough in testing only installed games. In case it is relevant, I have tested with both a gaming and application environment.

Perhaps I should also mention that I always use individual disposable bottles for each app, and that both notepad++ success and games failure I can replicate with soda, sys-wine and lutris (in bottles). The error reported on the console is always the one I put above, except for the serial numbers.

@mirkobrombin
Copy link
Member

So it fails on windowed mode only?

@ghost
Copy link
Author

ghost commented Oct 3, 2022

I can replicate it whether the games are in windowed, borderless window or fullscreen mode.
That the virtual desktop has a lower resolution (shrinking to a window) doesn't seem to change anything either.

Notepad++ still works fine in both windowed and fullscreen (with F11).

@ghost
Copy link
Author

ghost commented Dec 23, 2022

I moved to fedora and can no longer replicate it, so I must close this.

@ghost ghost closed this as completed Dec 23, 2022
@SjoerdV
Copy link

SjoerdV commented Sep 12, 2023

@mirkobrombin I have the same issue as reported by ghost. Does not matter which runner I use. Also on Mint (LMDE5). Notepad starts just fine, only games fail to start (either windowed, borderless window or fullscreen mode.)

info:  Device properties:
info:    Device name:     : NVIDIA GeForce GTX 1650
info:    Driver version   : 535.104.5
...
info:  Queue families:
info:    Graphics : 0
info:    Transfer : 1
info:  DXVK: Read 159 valid state cache entries
info:  DXVK: Using 7 compiler threads
warn:  winevulkan detected, disabling exclusive fullscreen support
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  156 (NV-GLX)
  Minor opcode of failed request:  43 ()
  Serial number of failed request:  407
  Current serial number in output stream:  408

@another-sapiens
Copy link

another-sapiens commented Dec 9, 2023

I used to have this problem when enabling Virtual Desktop from Bottle's menu.
But for some reason, if enabled through Legacy Wine Tools -> Configuration -> Graphics -> Emulate Virtual Desktop, it works properly.

@christiansam
Copy link

christiansam commented Jan 28, 2024

I'm experiencing the same issue - when Virtual Desktop (regardless if set via Bottle settings, or Legacy Wine Tools) is enabled applications fail to start in general:

  • Bottles 51.10 Flatpak (SteamOS)
  • The used bottle was created with the Bottle-schema "Application" and is based on "Win64 & soda 8.0.2"
  • notepad++ is used a testing application

with Virtual Desktop enabled

  • Bottle Virtual Desktop default settings (1280x720)
  • SteamOS KDE Host Desktop is running in 1920x1080
  • notepad++ fails to execute
 (deck@steamdeck ~)$ flatpak run com.usebottles.bottles bottles:run/desktop/'notepad++'
TypeError: Must be number, not NoneType
(deck@steamdeck ~)$ 09:40:18 (INFO) Forcing offline mode 
Windows path detected. Avoiding validation.
wine: using kernel write watches (experimental).
wineserver: using server-side synchronization.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
wine: using kernel write watches (experimental).
00ec:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00ec:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."
wine: using kernel write watches (experimental).
^C

with Virtual Desktop disabled

  • notepad++ succesfully starts and is displayed/useable
  • no stderr/console-message like these appear:

00ec:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
00ec:err:winediag:nodrv_CreateWindow L"The explorer process failed to start."

@christiansam
Copy link

i guess this issue is somehow WINE Runner specific/related:

After stumbled upon this: Need better feedback that virtual desktop is not supported with wine-GE #5196 it tried to switch the Bottle's WINE Runner from

  • soda 8.0.2 to soda 7.0.2

now with Virtual Desktop enabled:

  • not a single console-message appears - especially no ERR messages
  • a WINE Virtual Desktop and notepad++ succesfully started and are displayed/useable

@cameronbosch
Copy link

cameronbosch commented Apr 27, 2024

I can confirm switching to soda 7.0-9 from 8.0 fixed the issue with the Wine virtual desktops not opening and erroring out on the console; I was having it too.

This issue was closed.
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

6 participants