-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Quitting Vim sometimes takes forever in C++ mode #218
Comments
I'm not sure if the third thread has anything to do with it; this also happens without that thread:
In this case, the main thread is blocking on a boost::thread again:
And the second thread is waiting for a lock:
|
I think I've encountered this a couple of times now too. It's pretty rare and not really repeatable so I haven't yet had the opportunity to debug it. Seems like it's caused by a race condition somewhere. You can swap out the libclang.so that's placed in your YouCompleteMe/python directory with a custom libclang.so and YCM will use that. |
I think I fixed this, but I'm not sure. Please reopen the issue if you encounter it again. Thanks for the wealth of debugging information you provided. I would not have been able to track down the error without it. |
This exact same issue is happening to me. It occurs fairly frequently (probably ~75% of the time I close vim). I'm using a fairly recent ycm (4374da6) which should have the fix above. I snagged this stack trace in case it's helpful. Let me know if there's any additional information you need in tracking down the problem...I've put as verbose a dump as possible since I'm not sure what might help. This plugin is otherwise awesome and has been completely life-changing for me, so thanks. I'm trying to switch my vim usage to avoid closing/reopening files too often but old habits die hard :)
Possibly other useful threads?
|
Just to confirm -- #358 will fix hanging when quitting for C++ files as well (that thread seems to discuss only python issues)? The file I was editing/closing was C++. I do have jedi installed for when I edit python, but I didn't have any python files open at the time. |
@ixarka Yes, when YCM is split into a Vim client and separate daemon process, the daemon shutdown will be independent of Vim shutdown (separate OS processes). |
…oric [Windows support] Add backslash trigger to complete path on Windows With this PR, paths can be completed using the `\` separator on Windows. I also simplified and refactored the regular expression used to match a path. Fix 5 tests (5 failures) on Windows (listed in the commit message).
The C++ code completion works beautifully, it's awesome! However, sometimes when I quit Vim after I edited a C++ file, quitting takes forever. Here's what I gathered:
This is vim 7.3.861, commit b4837c8. I can do further debugging, but can't make any modifications to the libclang used since it seems YCM's
install.sh
downloads a binary version of it?The text was updated successfully, but these errors were encountered: