-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Comments
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. |
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? |
@bobbrow thank you. Sure, I'm gonna work in a cpp project today, should anything wrong happen I tell you right away. |
I also meet this problem when I am coding the cpp code, and autocomplete do not appear. VSCode Version: 1.11.2 I think it is very bad if the autocomplete do not work.(ps: I has installed the extensions) |
@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. |
@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.
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. |
@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"). |
@sean-mcmanus OK,thx. |
Closing this issue. If you are still experiencing crashes and can provide crash dumps for us, please open a new issue. |
@bobbrow I've been using all week and the issue hasn't raised no longer.. thank you |
This has happened so many times but yet I can't understand why. I mean, sometimes I'm not even coding, it just happens.
@sean-mcmanus asked for the crash files, here they are:
Microsoft.VSCode.CPP.Extension.darwin.crash.zip
The text was updated successfully, but these errors were encountered: