Skip to content

Freeze when deleting files via trash #101920

Closed

Description

@guoyunhe
  • VSCode Version: 1.46.1
  • OS Version: openSUSE Tumbleweed
  • TypeScript: 3.7.5 (project) 3.9.4 (vscode)

Steps to Reproduce:

  1. npx create-react-app --typescript --use-npm my-app
  2. code my-app
  3. Copy paste App.tsx file to App copy.tsx
  4. Delete App copy.tsx
  5. VS Code window freezes for 5~10 seconds

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

Activity

  1. bpasero commented on Jul 8, 2020

    @bpasero
    Contributor

    Can you follow this wiki and post the results back here to understand more about why performance is so bad for you: https://github.com/Microsoft/vscode/wiki/Performance-Issues

    Thanks!

  2. added
    info-needed
    on Jul 8, 2020
  3. guoyunhe commented on Jul 8, 2020

    @guoyunhe
    Author

    I did the "Profiling the Renderer Process":
    CPU-20200708T151518.cpuprofile.zip

    code --status doesn't work because when the window freeze, code --status doesn't response, too.

  4. bpasero commented on Jul 8, 2020

    @bpasero
    Contributor

    Thanks, I see a lot of idle unfortunately, which is not code from us:

    image

    Can you install htop and monitor which process in VSCode is potentially high CPU? If any?

  5. guoyunhe commented on Jul 8, 2020

    @guoyunhe
    Author

    I didn't see any process using high CPU when the window freeze. All processes use < 3% CPU.

  6. bpasero commented on Jul 8, 2020

    @bpasero
    Contributor

    Guo Yunhe (@guoyunhe) can you try "Shift+Delete" to bypass the trash. Wondering if it could be trash related.

  7. guoyunhe commented on Jul 8, 2020

    @guoyunhe
    Author

    Yeah, Shift+Delete works smoothly. No freeze.

  8. added
    electron
    freeze-slow-crash-leak
    linux
    and removed
    info-needed
    on Jul 8, 2020
  9. changed the title [-]Freeze when deleting TypeScript files on Linux[/-] [+]Freeze when deleting files via trash[/+] on Jul 8, 2020
  10. 25 remaining items

  11. removed their assignment
    on Jan 25, 2021
  12. removed this from the February 2021 milestone on Jan 25, 2021
  13. bpasero commented on Jan 26, 2021

    @bpasero
    Contributor

    Needs Electron 12 though 👍

  14. dbidwell94 commented on Feb 2, 2021

    @dbidwell94

    So to be clear: Shift+Click to fix temporarily until VSCode gets updated to Electron 12? (Manjaro-Linux w/ KDE)

    Is there a timeframe for Electron12 update? Thanks for looking into this fellas!

  15. TechComet commented on Feb 8, 2021

    @TechComet

    (electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
    /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
    /snap/code/53/usr/share/code/../../lib/x86_64-linux-gnu/libgnutls.so.30: version `GNUTLS_3_6_3' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so)
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
    [28074:0208/093334.737367:ERROR:angle_platform_impl.cc(43)] Display.cpp:805 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
    [28074:0208/093334.747910:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
    [28074:0208/093334.748474:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
    [28074:0208/093334.752303:ERROR:angle_platform_impl.cc(43)] Display.cpp:805 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
    [28074:0208/093334.758263:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
    [28074:0208/093334.759545:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
    [28074:0208/093334.760240:ERROR:gl_initializer_linux_x11.cc(160)] GLSurfaceEGL::InitializeOneOff failed.
    [28074:0208/093334.774852:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
    Version: Code 1.53.0 (8490d3d, 2021-02-03T15:56:04.185Z)
    OS Version: Linux x64 5.4.0-58-generic
    CPUs: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (2 x 1603)
    Memory (System): 7.78GB (0.12GB free)
    Load (avg): 4, 3, 3
    VM: 0%
    Screen Reader: no
    Process Argv: --force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id 059d028d-c5fd-4826-8d0a-1ac985c63e0a
    GPU Status: 2d_canvas: unavailable_software
    gpu_compositing: disabled_software
    multiple_raster_threads: disabled_off
    oop_rasterization: disabled_off
    opengl: disabled_off
    protected_video_decode: disabled_off
    rasterization: disabled_software
    skia_renderer: enabled_on
    video_decode: disabled_software
    vulkan: disabled_off
    webgl: unavailable_software
    webgl2: unavailable_software

    CPU % Mem MB PID Process
    0 119 4944 code main
    0 0 4946 zygote
    0 40 5430 gpu-process
    0 0 4947 zygote
    0 24 5429 utility
    0 72 5545 shared-process
    0 223 27484 window (AnimeCom - Visual Studio Code)
    0 207 27517 extensionHost
    0 104 27554 electron_node server.js
    0 183 27701 electron_node bundle.js
    0 223 27518 watcherService
    0 64 27658 searchService
    0 0 27722 /bin/bash
    0 32 27899 python manage.py runserver
    0 32 27901 /home/techcomet/Documents/Projects/MyProjects/Web_Python/AnimeCom/.venv/bin/python manage.py runserver

    Workspace Stats:
    | Window (AnimeCom - Visual Studio Code)
    | Folder (AnimeCom): 8193 files
    | File types: mo(1182) po(1182) py(1097) pyc(1088) html(123) js(90)
    | whl(27) svg(26) txt(25) css(15)
    | Conf files:

  16. TechComet commented on Feb 8, 2021

    @TechComet

    (electron) Sending uncompressed crash reports is deprecated and will be removed in a future version of Electron. Set { compress: true } to opt-in to the new behavior. Crash reports will be uploaded gzipped, which most crash reporting servers support.
    /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so: undefined symbol: g_task_set_name
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognomeproxy.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so: undefined symbol: g_date_time_format_iso8601
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so: undefined symbol: g_task_set_name
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
    /snap/code/53/usr/share/code/../../lib/x86_64-linux-gnu/libgnutls.so.30: version `GNUTLS_3_6_3' not found (required by /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so)
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiognutls.so
    /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so: undefined symbol: g_mount_operation_get_is_tcrypt_system_volume
    Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so
    [28296:0208/093530.653761:ERROR:angle_platform_impl.cc(43)] Display.cpp:805 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
    [28296:0208/093530.658256:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
    [28296:0208/093530.659234:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
    [28296:0208/093530.668378:ERROR:angle_platform_impl.cc(43)] Display.cpp:805 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
    [28296:0208/093530.669697:ERROR:gl_surface_egl.cc(773)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
    [28296:0208/093530.670383:ERROR:gl_surface_egl.cc(1322)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
    [28296:0208/093530.670971:ERROR:gl_initializer_linux_x11.cc(160)] GLSurfaceEGL::InitializeOneOff failed.
    [28296:0208/093530.687142:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization
    Version: Code 1.53.0 (8490d3d, 2021-02-03T15:56:04.185Z)
    OS Version: Linux x64 5.4.0-58-generic
    CPUs: Intel(R) Core(TM)2 CPU 6400 @ 2.13GHz (2 x 1867)
    Memory (System): 7.78GB (0.13GB free)
    Load (avg): 3, 3, 3
    VM: 0%
    Screen Reader: no
    Process Argv: --force-user-env --no-sandbox --unity-launch --no-sandbox --crash-reporter-id 059d028d-c5fd-4826-8d0a-1ac985c63e0a
    GPU Status: 2d_canvas: unavailable_software
    gpu_compositing: disabled_software
    multiple_raster_threads: disabled_off
    oop_rasterization: disabled_off
    opengl: disabled_off
    protected_video_decode: disabled_off
    rasterization: disabled_software
    skia_renderer: enabled_on
    video_decode: disabled_software
    vulkan: disabled_off
    webgl: unavailable_software
    webgl2: unavailable_software

    CPU % Mem MB PID Process
    0 111 4944 code main
    0 0 4946 zygote
    0 40 5430 gpu-process
    0 0 4947 zygote
    0 24 5429 utility
    0 72 5545 shared-process
    0 223 27484 window (AnimeCom - Visual Studio Code)
    0 207 27517 extensionHost
    0 104 27554 electron_node server.js
    0 183 27701 electron_node bundle.js
    0 223 27518 watcherService
    0 64 27658 searchService
    0 0 27722 /bin/bash
    0 32 27899 python manage.py runserver
    0 32 27901 /home/techcomet/Documents/Projects/MyProjects/Web_Python/AnimeCom/.venv/bin/python manage.py runserver

    Workspace Stats:
    | Window (AnimeCom - Visual Studio Code)
    | Folder (AnimeCom): 8184 files
    | File types: mo(1182) po(1182) py(1090) pyc(1088) html(123) js(90)
    | whl(27) svg(26) txt(25) css(15)
    | Conf files:

  17. drupalshift commented on Feb 21, 2021

    @drupalshift
    Operating System: Manjaro Linux
    KDE Plasma Version: 5.20.5
    KDE Frameworks Version: 5.78.0
    Qt Version: 5.15.2
    Kernel Version: 5.9.16-1-MANJARO
    OS Type: 64-bit
    Processors: 16 × AMD Ryzen 7 3800X 8-Core Processor
    Memory: 63.4 GiB of RAM
    Graphics Processor: GeForce RTX 2060 SUPER/PCIe/SSE2
    

    Having the same issue, It's really annoying hope gets resolved

  18. bpasero commented on Feb 28, 2021

    @bpasero
    Contributor

    /duplicate #71243

  19. added
    *duplicate
    on Feb 28, 2021
  20. vscode-triage-bot commented on Feb 28, 2021

    @vscode-triage-bot

    Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

    Happy Coding!

  21. locked and limited conversation to collaborators on Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateelectronfile-iofixed-in-electron-18freeze-slow-crash-leaklinuxupstream-issue-fixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions