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
Language Server Crash #631
Comments
Do you get any assertions firing? Also can you disable background indexing and see if the crash still happens |
No assertions, turning off Background-indexing did not prevent the crashes. I will report back once I'm done bisecting... This takes roughly 10 minutes per step (about 6 remaining) as for some reason I always get full rebuilds on every step... :( |
Commit 92dd077af1ff89929f5502c6c887358f51d5afc1 introduced the crash. |
If I change GlobalCompilationDatabase.cpp:333 to actually validate that find() did not return end() before dereferencing it, the crash is gone. |
Thanks! The entry is supposed to always be in the map, I think this is a case-sensitivity error. |
Does llvm/llvm-project@74b3ace fix this? |
Yes, the crash is gone, thank you! Btw, who is in charge of the VS-Code-Plugin? There seem to be issues with the CDB-Update-Detection and language server restarting. For one, the indexing-indicator does not seem to be disposed if the current indexing run has not yet completed, leading to an endless indicator. |
That bug is in apparently in vscode and pertains to all language server implementations that use progress bars not being disposed when servers are unexpectedly terminated. |
@decimad That bug has now been fixed and will land next release of the vscode plugin |
@njames93: thanks for the good news! |
Closing this because llvm/llvm-project@74b3ace resolved the crash from the initial report. |
Hello,
after updating to my local build to commit c3acda0798f9b10ac3187ad941bbd8af82fb84a1 I'm experiencing unconditional crashes of the clangd language server. I'm running on windows and building clangd with MSVC++ 16.8.3.
Here's the clangd's error information (debug build):
If you can guide me how to debug this issue further, I will happily try to do so. The crashes happen so quickly that I cannot attach the debugger before it happens (I suppose there is a non-naive way to go about this).
Update bisect is underway
The text was updated successfully, but these errors were encountered: