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

Can't run certain apps in terminal #222247

Closed
Master811129 opened this issue Jul 19, 2024 · 5 comments
Closed

Can't run certain apps in terminal #222247

Master811129 opened this issue Jul 19, 2024 · 5 comments
Assignees

Comments

@Master811129
Copy link

Master811129 commented Jul 19, 2024

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

  • Version: 1.91.1
  • Commit: f1e16e1
  • Date: 2024-07-09T22:08:12.169Z
  • Electron: 29.4.0
  • ElectronBuildId: 9728852
  • Chromium: 122.0.6261.156
  • Node.js: 20.9.0
  • V8: 12.2.281.27-electron.0
  • OS: Linux x64 6.8.0-38-generic snap

Installed the app as a classic Snap. It looks like that some apps can't be run from VSCode's terminal. CPU goes 100% and ram gets filled up and crashes the system:

NO extensions BTW

Steps to Reproduce:

  1. open a terminal in code (snap)
  2. run dolphin as an example and CPU goes 100%

Screencast: ignore the flashing

Ignore the flashing

output.mp4
@meganrogge
Copy link
Contributor

does this happen if you run that in an external terminal?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Jul 22, 2024
@Master811129
Copy link
Author

No, It only happens in vscode terminal. I believe this occurs due to snap sandbox blocking something.

@meganrogge meganrogge assigned deepak1556 and unassigned meganrogge Jul 22, 2024
@meganrogge meganrogge removed the info-needed Issue requires more information from poster label Jul 22, 2024
@deepak1556
Copy link
Collaborator

Merging to #179086

The library variables we set like GTK_PATH, GIO_MODULE_DIR interfere with launching external applications.

@Master811129
Copy link
Author

The library variables we set like GTK_PATH, GIO_MODULE_DIR interfere with launching external applications.

The app I ran here was dolphin which is a Qt app not GTK. Are you sure that this is related to my problem?
I dont have many GTK apps installed on my system but gnome-disks and lutris work fine from VSCode(snap) terminal.

Tried with more qt apps some of them just won't do anything, Halt the termianl and use 100% CPU and some of them will open up without issues. Note that all of them work fine on my normal Konsole its just vscode's terminal.

  • dolphin
  • kdialog --msgbox "Hello world"
  • kdialog --getsavefilename
  • kmines
  • kate
  • systemsettings
  • qbittorrent
  • ark opens but clicking on "Open Archive..." which opens a file dialog hangs the app

@AmeyaVS
Copy link

AmeyaVS commented Aug 5, 2024

I suggest dumping the environment variables in your default terminal into a file.
Then dump the environment variables in the VSCode terminal to another file.
Compare the 2 files, and observe if any new environment variable related to Qt/Gtk by either unsettling them in the VSCode terminal to see if any fixes the issue.

@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants