microsoft / vscode

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

Everytime I click the button " Open Folder'', it will crash and closed automatically.. #178780

Closed yuanryann closed 1 year ago

yuanryann commented 1 year ago

Type: Bug

here is code --verbose code --verbose [0331/163124.791335:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/dced7b8c-5c8e-447a-8e1d-ec0614f57154.lock: File exists (17) [0331/163124.791417:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/2b55050e-23bb-4592-9b41-f55e052c1731.lock: File exists (17) [0331/163124.791441:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/38155e0d-d3a3-4ac6-bd68-ece9eca892bd.lock: File exists (17) [0331/163124.791466:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/9a884d8e-6d5b-47c9-bbe3-3861203cc8ca.lock: File exists (17) [0331/163124.791490:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/3d596b97-8ace-4a65-bb4f-f0d80e2e711f.lock: File exists (17) [0331/163124.791514:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/dfffe9f7-c22c-4e92-bca0-5d16412b0667.lock: File exists (17) [0331/163124.791539:ERROR:file_io_posix.cc(152)] open /home/ryann/.config/Code/Crashpad/pending/b5f3f622-12b3-4506-ba5f-b143aea7c720.lock: File exists (17) [16232:0331/163124.867249:WARNING:bluez_dbus_manager.cc(248)] Floss manager not present, cannot set Floss enable/disable. libGL error: failed to create dri screen libGL error: failed to load driver: iris libGL error: failed to create dri screen libGL error: failed to load driver: iris [main 2023-03-31T08:31:24.934Z] [File Watcher (node.js)] Request to start watching: /home/ryann/.config/Code/User (excludes: , includes: ),/home/ryann/.config/Code/User/settings.json (excludes: , includes: ) [main 2023-03-31T08:31:24.944Z] Sending env to running instance... [main 2023-03-31T08:31:24.945Z] [File Watcher (node.js)] Started watching: '/home/ryann/.config/Code/User' [main 2023-03-31T08:31:24.945Z] [File Watcher (node.js)] Started watching: '/home/ryann/.config/Code/User/settings.json' libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed [16261:0331/163124.966324:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization [main 2023-03-31T08:31:24.993Z] Sent env to running instance. Terminating... [main 2023-03-31T08:31:24.993Z] Lifecycle#kill() [main 2023-03-31T08:31:24.993Z] Lifecycle#onWillShutdown.fire() libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed [16306:0331/163125.001352:WARNING:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.

VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:05:35.165Z) OS version: Linux x64 5.4.0-144-generic snap Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 x 4200)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|2, 1, 1| |Memory (System)|31.00GB (24.10GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id 98715daf-161d-41a1-bfac-e09740e8f3d2| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (34) Extension|Author (truncated)|Version ---|---|--- project-manager|ale|12.7.0 compare-view|che|0.13.0 doxdocgen|csc|1.4.0 gitlens|eam|13.4.0 todo-tree|Gru|0.0.224 githd|hui|2.3.3 plantuml|jeb|2.17.5 vscode-graphviz|joa|0.0.6 terminal-tools|lgl|1.0.0 plantumlpreviewer|Meb|0.6.0 git-graph|mhu|1.30.0 vscode-language-pack-zh-hans|MS-|1.77.2023032909 isort|ms-|2022.8.0 python|ms-|2023.6.0 vscode-pylance|ms-|2023.3.40 jupyter|ms-|2023.3.1000892223 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-ssh|ms-|0.98.0 remote-ssh-edit|ms-|0.84.0 cmake-tools|ms-|1.13.45 cpptools|ms-|1.14.5 cpptools-extension-pack|ms-|1.3.0 remote-explorer|ms-|0.2.0 vue-helper|she|2.4.7 markdown|sta|2.0.1 cmake|twx|0.0.17 errorlens|use|3.8.0 vscode-icons|vsc|12.2.0 markdown-all-in-one|yzh|3.5.1 material-theme|zhu|3.15.8 vscode-proto3|zxh|0.5.5 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256860 vstes627:30244334 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263cf:30335440 vscorecescf:30445987 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 vsctsb:30677850 pythonb192cf:30669361 defaultazurewalk:30687958 pythonms35cf:30686773 ```
lramos15 commented 1 year ago

/gifPlease

VSCodeTriageBot commented 1 year ago

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.

If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.

Happy coding!

gablabc commented 1 year ago

I have had the same issue since today. Indeed, attempting to open a folder closes the window. The same thing happens when I press Ctrl+S to save a new file that was not saved previously. I suspect the issue might be caused by the File Explorer that usually appears when pressing Ctrl+K, Ctrl+O to open a folder or Ctrl+S to save a file.

lramos15 commented 1 year ago

That's so strange, thanks for the gif.

cc @bpasero

mlelarge commented 1 year ago

Same problem on Ubuntu 18.04.6 LTS. I cannot save or open a folder; it crashes... very annoying

bpasero commented 1 year ago

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

gablabc commented 1 year ago

Hi, here is the .dmp file. Unfortunately, I was not able to Symbolicate it
into a log file since I experienced issues with electron-minidump. I hope this still helps.

Gabriel

Benjamin Pasero @.***> a écrit :

Can you please follow the steps in
https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get
at more details around the crash and attach the result here? Thanks!

-- Reply to this email directly or view it on GitHub: https://github.com/microsoft/vscode/issues/178780#issuecomment-1492138069 You are receiving this because you commented.

Message ID: @.***>

mlelarge commented 1 year ago

Please find attached the *.dmp file obtained when I tried to save my file with VSCode leading to a crash... Thank you for you help. Marc

On Fri, Mar 31, 2023 at 5:31 PM Benjamin Pasero @.***> wrote:

Can you please follow the steps in https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues to get at more details around the crash and attach the result here? Thanks!

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode/issues/178780#issuecomment-1492138069, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF2ODKJ3F5YZYGUUXOBEDX3W632FFANCNFSM6AAAAAAWOK3NCU . You are receiving this because you commented.Message ID: @.***>

lramos15 commented 1 year ago

@gablabc @mlelarge Email strips attachments you must attach it via the GitHub UI. Please resubmit them.

mlelarge commented 1 year ago

9a793905-9cab-456e-90f5-aff3a5600f76.zip I hope it works this time. I made a zip because .dmp is not supported as an attachment.

bpasero commented 1 year ago

This may be snap update related.

gablabc commented 1 year ago

Here is my dmp 674dfbc8-d954-4124-8c22-cd4b3c630514.zip

rzhao271 commented 1 year ago

I have symbolicated both crashes, and it seems that the crashes happen after creating a FileChooserDialog. symbolicated-mlelarge.log symbolicated-gablabc.log

wbrian-onlineed commented 1 year ago

I'm getting the same issue starting with the new update today.

System: Kubuntu 19.04 VS Code: 1.77.0 KDE Plasma: 5.15.4 KDE Frameworks: 5.56.0 QT: 5.12.2

Action taken: "File > open folder" or "File > add folder to workspace" (any action that would open a file chooser dialogue)

When run with code --verbose, the crash produces this relevant output:

[main 2023-03-31T22:20:30.022Z] [DialogMainService]: request to acquire file dialog lock {
  title: 'Add Folder to Workspace',
  defaultPath: undefined,
  buttonLabel: '_Add',
  properties: [ 'createDirectory', 'openDirectory', 'multiSelections' ]
}
[main 2023-03-31T22:20:30.022Z] [DialogMainService]: new file dialog lock created {
  title: 'Add Folder to Workspace',
  defaultPath: undefined,
  buttonLabel: '_Add',
  properties: [ 'createDirectory', 'openDirectory', 'multiSelections' ]
}
(code:6397): GLib-GIO-ERROR **: 15:20:30.107: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'
[0331/152030.113879:ERROR:process_memory_range.cc(75)] read out of range
... message repeats until crash ...
adamstarlight commented 1 year ago

I experience the same crushes as well. Maybe we should mark this issue as new-release? Before 1.77 I had no issues.


[22843:0402/115817.642155:INFO:CONSOLE(620)] "%cTRACE color: #888 CommandService#executeCommand workbench.action.files.openFolder", source: vscode-file://vscode-app/snap/code/123/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (620)
[main 2023-04-02T09:58:17.643Z] [DialogMainService]: request to acquire file dialog lock {
  title: 'Open Folder',
  buttonLabel: undefined,
  filters: undefined,
  defaultPath: '/home/username/Projects/side',
  properties: [ 'multiSelections', 'openDirectory', 'createDirectory' ]
}
[main 2023-04-02T09:58:17.644Z] [DialogMainService]: new file dialog lock created {
  title: 'Open Folder',
  buttonLabel: undefined,
  filters: undefined,
  defaultPath: '/home/username/Projects/side',
  properties: [ 'multiSelections', 'openDirectory', 'createDirectory' ]
}
(code:22843): GLib-GIO-ERROR **: 11:58:17.786: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column'```
yuanryann commented 1 year ago

Here is the content in the Toggle Developer Tools -> Console INFO Electron sandbox mode is enabled! workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.vscode-selfhost-test-provider' wants API proposal 'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-vscode.remote-repositories' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'github.vscode-pull-request-github' wants API proposal 'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. workbench.desktop.main.js:620 WARN Via 'product.json#extensionEnabledApiProposals' extension 'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that proposal DOES NOT EXIST. Likely, the proposal has been finalized (check 'vscode.d.ts') or was abandoned. workbench.desktop.main.js:620 WARN [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. workbench.html:1 [.WebGL-0x186804a5e200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels workbench.html:1 [.WebGL-0x186804a5e200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels workbench.html:1 [.WebGL-0x186804a5e200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels workbench.desktop.main.js:90 [Extension Host] [vscode-icons] v12.2.0 activated! workbench.desktop.main.js:620 INFO [perf] Render performance baseline is 29ms workbench.html:1 [.WebGL-0x186804a5e200]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat) DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/7f329fe6c66b0f86ae1574c2911b681ad5a45d63/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout

yuanryann commented 1 year ago

WARN [twxs.cmake]: Cannot register 'cmake.cmakePath'. This property is already registered. [Violation] 'setTimeout' handler took 221ms workbench.desktop.main.js:90 [Extension Host] activating extension workbench.desktop.main.js:90 [Extension Host] starting language server workbench.desktop.main.js:620 ERR [Extension Host] (node:459) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use exe --trace-deprecation ... to show where the warning was created) workbench.desktop.main.js:90 [Extension Host] (node:459) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use exe --trace-deprecation ... to show where the warning was created) T @ workbench.desktop.main.js:90 $logExtensionHostMessage @ workbench.desktop.main.js:1593 N @ workbench.desktop.main.js:1593 M @ workbench.desktop.main.js:1593 H @ workbench.desktop.main.js:1593 G @ workbench.desktop.main.js:1593 (anonymous) @ workbench.desktop.main.js:1593 invoke @ workbench.desktop.main.js:86 deliver @ workbench.desktop.main.js:86 fire @ workbench.desktop.main.js:86 fire @ workbench.desktop.main.js:556 G.onmessage @ workbench.desktop.main.js:1691 workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.594Z [debug] [main] Safe constructing new CMakeProject instance workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.594Z [debug] [variant] Constructing VariantManager workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.595Z [debug] [main] Constructing new CMakeProject instance workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.595Z [debug] [main] Starting CMake Tools second-phase init workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.854Z [info] [variant] Loaded new set of variants workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:48.899Z [debug] [kit] Reading kits file /home/ryann/.local/share/CMakeTools/cmake-tools-kits.json workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:49.319Z [info] [kit] Successfully loaded 1 kits from /home/ryann/.local/share/CMakeTools/cmake-tools-kits.json workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:49.452Z [debug] [kit] Not reading non-existent kits file: /home/ryann/voyager/.vscode/cmake-kits.json workbench.desktop.main.js:90 [Extension Host] [CMakeTools] 2023-04-03T05:49:49.458Z [debug] [main] CMakeProject instance initialization complete. workbench.desktop.main.js:620 INFO [perf] Render performance baseline is 33ms workbench.desktop.main.js:693 Overlapping semantic tokens detected at lineNumber 15, column 1 warnOverlappingSemanticTokens @ workbench.desktop.main.js:693 w @ workbench.desktop.main.js:693 r @ workbench.desktop.main.js:696 (anonymous) @ workbench.desktop.main.js:696 workbench.desktop.main.js:90 [Extension Host] [vscode-icons] v12.2.0 activated! DevTools failed to load source map: Could not load content for https://ticino.blob.core.windows.net/sourcemaps/7f329fe6c66b0f86ae1574c2911b681ad5a45d63/core/vs/workbench/workbench.desktop.main.js.map: Load canceled due to load timeout

mlelarge commented 1 year ago

Is there any update on this issue? Any workaround? Thanks!

deepak1556 commented 1 year ago

Steps for verification:

In Ubuntu 18.04 VM

* sudo snap install code --classic
* code
* Open a folder from file menu and it will crash the application
* Download `.snap` file from https://builds.code.visualstudio.com/builds/stable when verification builds are available
* sudo snap install <path-to>.snap --classic --dangerous
* code
* Open a folder from file menu and it opens as expected

In Ubuntu 22.04 VM

* Download `.snap` file from https://builds.code.visualstudio.com/builds/stable when verification builds are available
* sudo snap install <path-to>.snap --classic --dangerous
* code
* Open a folder from file menu and it opens as expected
yuanryann commented 1 year ago

Download .snap file from https://builds.code.visualstudio.com/builds/stable when verification builds are available pity, I can not download the .snap. image

jaime-ez commented 1 year ago

can't download files from here https://builds.code.visualstudio.com/builds/stable

Downloaded code-insiders and it' fixed. Please inform when the fix will be in the stable release

deepak1556 commented 1 year ago

Fix will be available in 1.77.1 release tomorrow.

yuanryann commented 1 year ago

1.77.1 has fixed this bug. thanks very much!