-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
The IDE keeps crashing #199960
Comments
Does this reproduce with some steps? Then there is ways to get a crash dump. Unfortunately there is no way to get a crash dump after the crash without running VS Code in a special way. |
Wow. I think you should consider fixing that.
Unfortunately not. Or should I say fortunately not. |
It can be enabled from the command line by passing If there is no repro, then I believe I cannot be of help for the crash at least. |
I can confirm that the it's pretty easy to get VSCode to hang and crash with bad regex's tho @php4fan didn't say VScode hung for any exteneded period of time before crashing what language were you coding? |
@RedCMD on what platform did you see that "Reopen" does not work? |
Windows 11 x64 .zip installation |
Please see if you can find any logged output that could help us find the source of the issue:
Thanks! |
I just used the same type of regex from #30874 |
I can reproduce, but only when 1 window is opened:
I suspect that when you click "Reopen" with only 1 window open, we first close that window and then probably assume that we need to quit the application. |
In my case it didn't hang before crashing (or if it did it was for a very short time, no more than a couple of seconds). When the popup showed up, I'm almost sure the crashed windows had already vanished. Also, (again I'm almost sure) I had two windows opened when it crashed. I wasn't using Find. |
Thanks, I will try in both cases of having 1 or 2 windows open. As for the part that you lost data: was the file saved or dirty? We keep track of saved states from the "Timeline" view in the explorer, but that requires the file to be saved. |
Now it would be great if you fixed the issue that actually makes VCS crash several times a day. |
Would love to, but it requires help from you: 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! |
The thing that I absolutely hate about that is that I need to run VSCode with a command line option. Either I need to run it from a terminal, which is annoying and I'll forget to half of the times, or I need to google how to add the command line option to whatever .desktop file I have somewhere, and find out where it is etc., i.e. a waste of time. That option should be enabled by default. The very first time that the program crashes without me having foreseen anything, I should be able to find information about the crash (which is what I wanted to do the first time I encountered one of these crashes). I hope that at the very least, crash reports are being generated and uploaded anyway by default, is that so? Either way I'll try to do the above because I do want to know what progress is being made. |
Finally two things coincided: that it crashed (that happens a lot) and that I had remembered to launch it from a terminal with the Here's the contents of the Hope this contains enough information. The frequency of the crashes is absolutely pathetic. |
I've edited the title. I suggest to reopen this issue and use it to track the actual crashes, given that the "reopen" button not working is already tracked in another issue. |
Note that I'm observing the crashes on Manjaro Linux, not Windows. |
Side note: crash dumps are also persisted to the application user data directory, so you can always find them even when running without the |
The attached crash report indicates a crash due to OOM in the workbench, @php4fan please follow the steps below to get additional trace data,
|
I don't know of any particular operations that will lead to the crash. It happens randomly as far as I know.
But are they generated if the crash happens when running without the flag? |
It would be better if you can get a reliable repro or pattern to when the crash happens, you can leave the sampler running but it needs to be stopped before the crash since the debugger will auto disconnect when that happens.
Yes they are generated only when running without the flag, the flag will change the directory for storage so the two are exclusive. |
Oh I see, so what did @bpasero mean by:
?
Yeah, unfortunately there doesn't seem to be any easily discernible pattern; I don't think I'll be able to find a reliable repro anytime soon. The instructions for collecting the memory profile are confusing.
How am I supposed to save the trace after Code has crashed?
Oh, before it crashes? Anyway, without being able to trigger the crash at will or predict when it will occur, that is not viable. |
The crashes continue to happen. If the crash dumps are not enough to investigate the issue, please let me know what else I can provide that is actually doable, as opposed to what requested in #199960 (comment) which I will not realistically be able to provide during my lifetime. Please remember that there are no known reproduction steps that I know of and I cannot reproduce the crashes at will, other than using the IDE while doing my job and waiting for a crash to happen. |
Please check if the crashes happen with our insiders version https://code.visualstudio.com/insiders, use a new profile via |
Hey, I've been experiencing these crashes since last week. I tested with the insider' version, and it also happens. 😢
|
@javierdebug can you share the crash dumps following the steps in #199960 (comment) |
@deepak1556 I hope this helps to resolve the issue. I don't know how to visualize these files, but I obtained them from that folder. I attached the files from different times the app crashed: |
@javierdebug thanks for the crash logs, they are different from the current issue. Your scenario is same as #202255, as a next step can you try #202255 (comment) |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
I was editing a file and the IDE just crashed.
A popup window showed up saying "Sorry for the inconvenience bla bla bla" and that I could "restart from where I left" or something like that, I don't remember the exact wording.
There was a button that I don't remember whether it was "reopen" or "restore", and I clicked it, but it did NOT relaunch the IDE. I had to relaunch it manually.
Fortunately, most of the unsaved changes I had made to the current file (which got reopened when I manually launched the IDE again) were there, but not exactly everything. The last dozen or so keystrokes were lost.
I wasn't offered any option to upload a crash log or something like that.
What I would expect:
If there is some log that I can fetch, let me know so I upload it if it's not too late.
version 1.84.2 on Manjaro Linux
The text was updated successfully, but these errors were encountered: