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

VSCode.CPP.Extension crashes after some time of coding - no clear reason #654

Closed
thiagoh opened this issue Apr 21, 2017 · 10 comments
Closed

Comments

@thiagoh
Copy link

thiagoh commented Apr 21, 2017

This has happened so many times but yet I can't understand why. I mean, sometimes I'm not even coding, it just happens.

screen shot 2017-04-20 at 4 39 17 pm

@sean-mcmanus asked for the crash files, here they are:

Microsoft.VSCode.CPP.Extension.darwin.crash.zip

@sean-mcmanus
Copy link
Contributor

sean-mcmanus commented Apr 21, 2017

Thanks a lot for the call stacks. One of the crashes was already fixed in our working branch (reported by another user), but one of them was new. Both bugs should be fixed in our pending update. The issues are caused by not handling unexpected UTF-8 data correctly. However, we don't actually have a repro for the bugs, so there might be other issues caused by the unexpected data. If you could provide a repro file that would be good or if it still crashes after the next update let us know the new call stack. I assume the file has some unusual data or is not a proper UTF-8 encoded file.

@bobbrow
Copy link
Member

bobbrow commented Apr 25, 2017

We made some fixes in this area in v.0.11.0. Can you let us know if you are still getting crashes in the latest version?

@thiagoh
Copy link
Author

thiagoh commented Apr 25, 2017

@bobbrow thank you. Sure, I'm gonna work in a cpp project today, should anything wrong happen I tell you right away.

@zhushh
Copy link

zhushh commented Apr 28, 2017

I also meet this problem when I am coding the cpp code, and autocomplete do not appear.

VSCode Version: 1.11.2
OS: 4.8.0-46-generic # 49~16.04.1-Ubuntu x86_64

I think it is very bad if the autocomplete do not work.(ps: I has installed the extensions)

@sean-mcmanus
Copy link
Contributor

@zhushh What is your extension version? 0.11.0? Does autocomplete work when you use Ctrl+Space? What file encoding are you using? Can you provide any crash dumps or a small sample file the repros the problem? We fixed the crashes with the particular call stacks, but we were not able to obtain a repro.

@zhushh
Copy link

zhushh commented Apr 29, 2017

@sean-mcmanus Sorry, I uninstalled the extensions and I do not know how to provide the file your need. However, I reinstalled the extensions and configured llvm+clang, then the problem do not appear.
Here is the extension I reinstalled:

  1. C/C++ 0.11.0
  2. C/C++ Clang Command Adapter 0.2.2
  3. C++ Intellisense 0.2.1
  4. Include Autocomplete 0.0.3

1

But now the problem is that the autocomplete do not appear and Ctrl+space do not work because I use it to switch input method.

@sean-mcmanus
Copy link
Contributor

@zhushh You can change the Ctrl+Space keybinding to something else for "Trigger Suggest" to trigger autocomplete. If you have multiple autocomplete providers, we can't tell which extension is causing the problem unless you disable the other autocomplete providers or disable the cpptools extension (or change the C_Cpp.autocomplete to "Disabled").

@zhushh
Copy link

zhushh commented May 5, 2017

@sean-mcmanus OK,thx.

@bobbrow
Copy link
Member

bobbrow commented May 9, 2017

Closing this issue. If you are still experiencing crashes and can provide crash dumps for us, please open a new issue.

@bobbrow bobbrow closed this as completed May 9, 2017
@thiagoh
Copy link
Author

thiagoh commented May 9, 2017

@bobbrow I've been using all week and the issue hasn't raised no longer.. thank you

@github-actions github-actions bot locked and limited conversation to collaborators Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants