Skip to content

Crashes when quickly press ctrl+` twice #74181

Closed

Description

@ColinTree
  • Version: 1.34.0 (user setup)
  • Commit: a622c65
  • Date: 2019-05-15T21:59:37.030Z
  • Electron: 3.1.8
  • Chrome: 66.0.3359.181
  • Node.js: 10.2.0
  • V8: 6.6.346.32
  • OS: Windows_NT x64 10.0.17763

Steps to Reproduce:

  1. When there is no terminal opened, quickly press ctrl+` twice
  2. Window pop up(maybe at the back of the vs code window). Whatever which button I choose, vs code window would tell me there was a crash and need to restart window
    image

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

Activity

  1. added
    freeze-slow-crash-leak
    on May 23, 2019
  2. Tyriar commented on May 23, 2019

    @Tyriar
    Contributor

    Does this happen consistently for you? I can't reproduce it.

    This check is meant to prevent this exception from occurring:

    https://github.com/microsoft/node-pty/blob/5924d76d6765ac4da3996f49e1282eaafd591452/src/windowsTerminal.ts#L140-L142

    Unless the process crashes or something? 😕

  3. added
    terminal
    info-needed
    on May 23, 2019
  4. ColinTree commented on May 23, 2019

    @ColinTree
    Author

    Daniel Imms (@Tyriar) Yes It crashes every time on my computer. Maybe you didn't press keyboard quick enough? XD
    I looks like terminal cannot initialize if the intergrated terminal is not visible.
    I think I can send a screen record later

  5. ColinTree commented on May 24, 2019

    @ColinTree
    Author

    I had failed to record a meaningful capture.... Just simply press the keyboard as quick as possible

  6. wsmelton commented on May 30, 2019

    @wsmelton

    Video of making it crash with extensions enabled or disabled: VSCODE_Crash.zip

    Logs from these sessions: logs.zip

    Version: 1.35.0-insider (user setup)
    Commit: e9c50663154c369a06355ce752b447af5b580dc3
    Date: 2019-05-30T05:19:53.372Z
    Electron: 3.1.8
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Windows_NT x64 10.0.17763
    
  7. wsmelton commented on May 30, 2019

    @wsmelton
    Version: 1.35.0-insider (system setup)
    Commit: e9c50663154c369a06355ce752b447af5b580dc3
    Date: 2019-05-30T05:19:53.372Z
    Electron: 3.1.8
    Chrome: 66.0.3359.181
    Node.js: 10.2.0
    V8: 6.6.346.32
    OS: Windows_NT x64 10.0.17763
    

    Daniel Imms (@Tyriar) I can confirm this is with user setup version only on my machine. I installed the system installer and removed the user setup. I cannot duplicate this issue anymore.

  8. Tyriar commented on May 31, 2019

    @Tyriar
    Contributor

    Shawn Melton (@wsmelton) thanks for the video 👍

  9. Tyriar commented on May 31, 2019

    @Tyriar
    Contributor

    Shawn Melton (@wsmelton) could you enable trace logging (F1 > "log level" > "trace"), then repro the issue again and check the logs if there is a IPty.resize entry at the end? These will be located in your user data directory, something like this: %APPDATA%\Code - Insiders\logs\<latestdatetime>\renderer1.log

    You might also be able to see the log if you open dev tools (via help menu) and open the console there, which would be easier if it gets there before the crash happens.

  10. Tyriar commented on May 31, 2019

    @Tyriar
    Contributor

    Related #71789

  11. wsmelton commented on May 31, 2019

    @wsmelton

    Did the trace and find this entry and the end of the render1.log:

    [2019-05-31 06:49:55.367] [renderer1] [debug] Terminal process ready (shellProcessId: 12116)
    [2019-05-31 06:49:55.370] [renderer1] [trace] IPty#resize NaN NaN
    

    20190531T064046.zip

  12. Tyriar commented on May 31, 2019

    @Tyriar
    Contributor

    Shawn Melton (@wsmelton) perfect! You found the bug 😃

  13. added
    bug
    candidate
    and removed
    info-needed
    on May 31, 2019
  14. added this to the May 2019 milestone on May 31, 2019
  15. added a commit that references this issue on May 31, 2019
    e698d0d
  16. Tyriar commented on May 31, 2019

    @Tyriar
    Contributor

    Can add an extra defensive check in microsoft/node-pty#316 too

  17. alexr00 commented on Jun 3, 2019

    @alexr00
    Member

    I can't reproduce the original issue using 1.34 user install so I'm not sure how to verify. Any repro/verification steps?

  18. added
    verification-steps-needed
    on Jun 3, 2019
  19. Tyriar commented on Jun 3, 2019

    @Tyriar
    Contributor

    Verify via code review, I could not reproduce the issue either.

  20. removed
    verification-steps-needed
    on Jun 3, 2019
  21. added
    verified
    on Jun 4, 2019
  22. locked and limited conversation to collaborators on Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcandidatefreeze-slow-crash-leakterminalverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions