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
intellisense updating forever issue has resurfaced. (red flame) #1474
Comments
one more thing when i was trying to screen record it was happening for longer time and also when one window of visual studio code is open there is not much problem but when two are open this problem comes always. Is this a processor issue. Does this mean i can only open one window at a time? I have a Processor Intel(R) Celeron(R) CPU N2820 @ 2.13GHz, 2129 Mhz, 2 Core(s), 2 Logical Processor(s) |
What version of cpptools do you have? The version of VS Code itself usually doesn't matter. Yeah, having only 2 logical processor might be an issue, particularly if both windows are using multiple threads at once (we usually test with more processors). You might want to wait until the database icon is finished parsing, which will get reduce the processing. |
@sean-mcmanus the version of cpp tools is 0.14.6 .But even when no other active processes are going on . Its just one chrome tab and one window of vscode running still the updating intellisense is indefinite and its there since i opened vscode(5 seconds into opening vscode) |
Did you see this for how to set things up correctly? https://github.com/Microsoft/vscode-cpptools/blob/ddcc97ddaa02b7a9d057dc8b0e64b4fc85f866d5/Documentation/LanguageServer/Windows%20Subsystem%20for%20Linux.md Do you see any errors in the C/C++ output window? Is the Microsoft.VSCode.Cpp.IntelliSense.Msvc.exe process using CPU or does it appear to be deadlocked? What about the Microsoft.VSCode.Cpp.Extension.exe? What does the database icon in the bottom right say when you hover? Does it repro when you remove the system header #include references? The libraries you're referencing could be breaking stuff. Does 0.14.4 or 0.14.5 work? We didn't mess with IntelliSense much recently so I wouldn't expect this to regress. If you can attach a debugger and get a call stacks for the processes or dmp's that would help. @bobbrow Do you have any other ideas how to diagnose this or see how widespread it is? |
We need to add timeout logic to the IntelliSense requests and kill the runaway process (after capturing and logging the offending stack) |
I've encountered the same issue since a few days; there are no errors in the C/C++ output window, no CPU usage. The process "Microsoft.VSCode.CPP.Extension.Linux" has a Zombie child process called "Microsoft.VSCod" (that's exactly how it's called). Using version 0.14.6 of the cpptools, resetting the IntelliSense Database doesn't seem to do anything. Steps to reproduce:
|
I've also this issue, but do not think I have any empty folder or files unless they exits in mbed/platformIO library. When it get stuck, indent, peak, goto etc. stops working. If I compile the project all files get complied even unchanged files. |
@philippludwig I'm not able to repro the stuck red flame with your repro steps. However, I've seen dangling processes sometimes on my Linux machine (attempting to attach a debugger failed). I don't know of a repro yet. We'll try to come up with some way to make the IntelliSense process more robust/responsive. |
@sean-mcmanus Thank you for taking your time to reply here. I've also investigated the problem further and setup VSCode on another machine, and there everything works as expected. Therefore I guess it is a problem with my setup. |
@philippludwig We have the C_Cpp.loggingLevel setting, but we might not log enough info about the IntelliSense process, unless there's connection failure/crash. If you can get a debugger attached or a core dump and a call stack, that could help. We've fixed some crashes for our pending 0.15.0, but normally when there's a crash the process should exit instead of zombie. |
I will report back tomorrow with as much information as I can, thanks. |
I've encountered the same issue. It's gone if I remove ccpcheck extension. |
Allright, so here is a call stack of the sleeping "Microsoft.VSCode.CPP.Extension.Linux" process:
Obviously, I can't attach to the Zombie directly.
Before that, strace prints out a lot of lines like this:
Let me know if I can provide any more information. |
@philippludwig Another IntelliSense thread is blocking the shutdown request. We'll try to just kill the IntelliSense process. |
@philippludwig How did you get that call stack for Microsoft.VSCode.CPP.Extension.Linux? When VS Code is closed, it's supposed to kill that process in 5 seconds. Did you do something to prevent that? Is that process dangling for you too? |
This process is indeed dangling, it is the parent process of the zombie process. After some time I have several of those; when I close VSCode, these processes continue to run. Therefore I can just gdb attach to them, without doing anything special. |
After renaming the |
@philippludwig Rename the .vscode folder will cause our c_cpp_properties.json to disappear and the default to be used, but it will get recreated after doing an Edit Configurations command. Removing |
We implemented a potential fix in our 0.15.0-insiders build at https://github.com/Microsoft/vscode-cpptools/releases/tag/v0.15.0-insiders (the final release is planned for next week). Let us know if it's still not fixed. |
I've tried the 0.15.0 insiders build, indeed the problem is fixed. Thank you for your work! |
@raghavk92 Has your issue been fixed with 0.15.0? We fixed the issues the other users added to the issue, but I'm not sure if they're the same. |
I'm having this issue on 0.15.0 |
@GreatDanton @fantasist85 We just identified a race condition on Linux/Mac that can cause our main process to deadlock. Disabling logging (i.e. loggingLevel "Error") should reduce the probability of hitting it as a temporary work around. If that doesn't work, then the root cause is a different bug. |
Same issue for me on Ubuntu 18.04, vscode 1.23.1, C/C++ 0.17.3 : Red flame, nothing shown in "Problems". |
Same issue. Ubuntu 16.04, vscode 1.23.1, C/C++ 0.17.3. Red flame, hovering over it tells me "Updating intellisense...". In Ubuntu System Monitor, the process "Microsoft.VSCode.CPP.Extension.linux" is using 100% of a single core. Reloading the windows solves the problem for a couple of minutes, I don't yet see a correlation between actions I'm performing and intellisense failing. loggingLevel is on "Error" |
@antismap, @joostmeulenbeld, are either of you using the new recursive |
I didnt edit the includePath. |
@antismap, if the Microsoft.VSCode.CPP.Extension.linux process is not consuming a full core, then it sounds like a different issue. If that is the case, can you open a new issue and give us as much information as you can about your workspace and configuration? |
@bobbrow I didn't change includePath in my settings; how can I get the stack trace? I'd like to help if it is still relevant. |
We released an update with a fix for the issue, so if you can install 0.17.4 and let us know whether you still see the problem or not, we can go from there. |
I had the same problem with 0.17.4. It keeps updating forever unless restart vs code. I solved the problem by excluding the In c_cpp_properties.json, change "${workspaceFolder}/**", to "${workspaceFolder}/*", to stop globbing recursively so that intellisense won't pasrse the It seems like intellisence cannot handle the build folder with lots of binaries. |
@bobbrow this fixed it for me, thanks ! Before that, the process was also using 100% cpu on a core. |
@bobbrow I haven't seen the issue since the update, so it seems fixed! 👍 |
Version 0.17.4 fixed it for me. Earlier versions would get stuck even after turning logging down to none. I don't have "${workspaceFolder}/**" in my include path so that wasn't a factor in my case. 0.17.4 seems to be much better all around. |
I have opened Android source project folder. I still face this issue in version
|
Sorry, I didn't read #1474 (comment) before. |
@gcjyzdd Excluding my build folder also fixed it for me on OSX. |
I ran into this or a very similar issue on Linux. I was using it to work with the z3-code base (https://github.com/Z3Prover/z3) Z3 also uses CMake. So @gcjyzdd's fix might work. However the build script of z3 also generates some code which ends up in the build folder so I can't exclude it fully. Here is my cpp-config:
I will try without the line: As for a workaround: is there a way to only scan for specific file-types (.hpp, .h, .cpp in my case)? cpptools version: VS Code-Version: |
@powertomato I don't fully understand what bug you're experiencing or how to repro it. Are you hitting #2169 ? The build folder shouldn't cause any issues (there was a previous issue with recursive includes, but it was fixed, and you're not using recursive includes). You can set files.associations to set more files to be parsed as C/C++, but there's no way to stop scanning/parsing of extensionless files that are #included by other C/C++ files. |
@sean-mcmanus It's like @Ankeraout described. After some time, seemingly random, Intellisence just stops working and I get an endless "Loading..." tooltip and the red flame on the bottom right. Sometimes it takes just a few minutes, sometimes it's hours. CPU usage seems normal. From what I can tell it happens more often with the large Z3 code base, than with smaller projects. In fact I couldn't reproduce it with small projects yet, but that could have been by chance, as I didn't work much with other codebases with this setup. Excluding the sources from the build folder didn't help, but after your explaination that's no surprise. Was this issue was solely about the recursive includes? |
@Ankeraout Does IntelliSense still work, i.e. is the bug just with the icon getting stuck? I just saw the bug with the red flame getting stuck, but IntelliSense still works -- we've had that bug for a couple months or so, if I can figure out a way to repro it consistently I can fix it...may switching git branches causes it. We're tracking this with #2077 . @powertomato Is the Microsoft.VSCode.CPP.IntelliSense.Msvc.linux process using CPU when the red flame is stuck? Does killing that process and closing/reopening the file fix the issue? Are you able to attach a debugger to that process and get a call stack? You do not appear to be using recursive includes. Your issue sounds like a new bug -- it's usually better to create a new bug so we don't lose track of it...maybe we'll create a new bug ourselves if you don't want to. |
@sean-mcmanus I'm now able to (semi) reliably reproduce the problem I'm having. It seems it is a symptom of #2077. (Semi because I cannot reproduce #2077 itself reliably) To reproduce it you have to wait for #2077 to occur. Then close and reopen VScode. None of the processes seems to do anything at that point, CPU usage on all of them is 0. There are several "Microsoft.VSCode.CPP.IntelliSense.Msvc.linux" processes even if #2077 has not yet occured and only one VScode instance is running, is that to be expected? |
@powertomato I recall we have a fix for #2077 on Windows, but we're still working on Linux/Mac. |
@sean-mcmanus I also (just on my screen right now) the bug where I don't have the red flame, but the suggestions keep saying "Loading...". Two are /usr/share/code/code with no arguments (10% CPU and 5% CPU) Also I think it is interesting to mention that I have remaining processes this time after closing VSCode : EDIT : Okay, now I have the red flame stuck but Intellisense still works... |
@powertomato @Ankeraout We believe https://github.com/Microsoft/vscode-cpptools/releases/tag/v0.17.7-insiders has fixed the issues caused by dangling/stuck processes (although there could be a race condition scenario that could hit the issue, not sure...I haven't hit that yet). Are you still having issues with that? The red flame getting stuck still repros, but maybe less often (I think we fixed some causes of it, but there are more). |
@sean-mcmanus Thanks, I have installed the pre release. It has been running for several hours without any problems! I will keep it running over the weekend, but it already seems much better now. |
This is still happening in version 0.19.0 |
@LinAGKar, can you open a new issue with additional details on how to reproduce the problem? If you are seeing the Microsoft.VSCode.CPP.IntelliSense.Msvc.exe process running non-stop, it could be an infinite loop and we'd need more details so we can investigate the problem. |
I need tu get mysamsung galaxy s 6 + out of binary mode and updated already flashed device
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Adam Dunsmoor<mailto:notifications@github.com>
Sent: Tuesday, May 26, 2020 9:36 AM
To: microsoft/vscode-cpptools<mailto:vscode-cpptools@noreply.github.com>
Cc: Subscribed<mailto:subscribed@noreply.github.com>
Subject: Re: [microsoft/vscode-cpptools] intellisense updating forever issue has resurfaced. (red flame) (#1474)
Experiencing this in 1.45.1 with Ubuntu 20.04.
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:22.494Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-31-generic
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1474 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AMILMXBNHWWOSKILHL5K4SDRTPOXLANCNFSM4EMTWWNA>.
|
I opened a new window and opened a folder . And i started seeing intellisense updating and it wont stop. ctrl space says loading forever . Then i closed and opened it was ok . Then i saw the c_cpp_properties.json needs to be configured for better intellisense results . So i added WSL paths and saved it. Changed C/C++ configuration on the bottom right of vscode to WSL and again updating intellisense does not stop . cant use intellisense at all.I dont know its because of the above reason but it was present when i was on 1.19.1 version yesterday and also on 1.19.2 version which i updated to today
It started around 30 hours back
I am on 1.19.2 version of vscode. Using wsl as integrated terminal.
The text was updated successfully, but these errors were encountered: