microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.7k stars 29.45k forks source link

System dialog boxes don't show in Plasma #231310

Open nhaehnle opened 1 month ago

nhaehnle commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

  1. Perform any action that usually shows a "native" dialog box. For example
    • Help -> About
    • Add Folder to Workspace
  2. Most of the time, the expected dialog simply doesn't show up

This is running in Plasma (default packages from Ubuntu), and I did receive a "kdialog crashed" notification once while poking at this.

Looking at ps output, there are a bunch of kdialog processes seemingly stuck in the background like this one:

  14629 ?        Sl     0:00  |   \_ kdialog --attach=23068718 --title=Add Folder to Workspace --multiple --separate-output --getexistingdirectory /home/nha

Running the command line from the ps output works fine, i.e. it shows the expected dialog box and prints the selected directory to stdout.

I was able to work around it by setting the "Window: Dialog Style" to "custom", but obviously that's not ideal.

Let me know if there's a way I can help by collecting more information.

Snackhole commented 1 month ago

I was able to work around this as well in Kubuntu 24.04 (KDE Plasma 5.27.11, VS Code from Snap), but only by enabling the Simple Dialog setting under Text Editor, then Files. The "Window: Dialog Style" setting had no effect for me.

I'm not able to verify the precise version of VS Code I have installed through Snap because the dialog won't open in VS Code to show me and the terminal (snap list) lists the version as "384ff738" with 172 under the revision column.

Edit: I also seem to be experiencing some kind of crazy memory leak related to this, as the kdialog process was using over 10 GB of memory.

Edit 2: Here's my current version info. Issue still persists, but it turns out you can still get your version info as long as you don't try to use the save dialog first:

Version: 1.95.1 Commit: 65edc4939843c90c34d61f4ce11704f09d3e5cb6 Date: 2024-10-31T05:14:54.222Z Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Linux x64 6.8.0-48-generic snap

sergey-lukin commented 1 month ago

Same here (kdialog version 23.08.5, vscode version 1.94.2 x64) The workaround mentioned by @nhaehnle (File > Preferences > Settings > Text Editor > Files > Simple Dialog > Enable) works fine for me. Thank you very much.

razorree commented 1 month ago

same for me, vcode version 1.94.2 x64 (from snap). Kdialog takes a lot of memory, and I can't open any folder from code (trick simple dialog: enable works) up-to-date Kubuntu 24.04 plasma: 5.27.11 kde frameworks 5.115.0 QT 5.15.13 graphics platform X11

Craig-Macomber commented 1 month ago

I get this when trying to "Open Folder" or "Open File". Kdiolog eats one CPU core while ramping slowly up to ~20 GB of memory before crashing.

"Simple Dialog" is usable as a workaround.

wallygit commented 1 month ago

The same problem here, after an unsuccessful attempt to install aspose-cad and cadquery. Kubuntu 24-04 lts and python 3.12. "Simple Dialog" is usable as a workaround.

mmasias commented 1 month ago

Same problem here. Now I'm using the "Simple Dialog" trick.

Versión: 1.94.2
Confirmar: 384ff7382de624fb94dbaf6da11977bba1ecd427
Fecha: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
SO: Linux x64 6.8.0-47-generic snap
Craig-Macomber commented 1 month ago

Previously when I hit this it was on nightly. Now I'm hitting it on stable:

Version: 1.94.2
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-47-generic snap
reneas commented 4 weeks ago

Same here with:

Version: 1.94.2
Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427
Date: 2024-10-09T16:08:44.566Z
Electron: 30.5.1
ElectronBuildId: 10262041
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Linux x64 6.8.0-45-generic snap

This could be the same problem as in https://github.com/microsoft/vscode/issues/230679, no?