Skip to content
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

stb/20180214@conan/stable is locked by another concurrent conan process, wait... #8

Open
kershnerd opened this issue Mar 21, 2020 · 1 comment

Comments

@kershnerd
Copy link

I am on a fresh install of ubuntu with CMake and conan installed.

I get the error:

stb/20180214@conan/stable is locked by another concurrent conan process, wait...

No matter what I do when CLion loads the project. I have tried doing:

conan remove --locks

and even:

conan remove "*" -f

restarting CLion and even rebooting my computer, but I always get the error:

stb/20180214@conan/stable is locked by another concurrent conan process, wait...

This has been driving me crazy! Any idea how to fix this?

@ddalcino
Copy link
Contributor

ddalcino commented Mar 23, 2020

Do you have multiple CMake profiles for this project? On my machine, I usually have several CMake profiles for each project (one Debug build, one Release build, one for sanitizers, etc.). Every time I ask CLion to reload the CMake project, CLion concurrently spawns a separate CMake process for each profile, and each CMake process spawns its own conan process. This may explain why you have multiple conan processes running at once. It does not explain why they cannot play nice with each other.

There are two ways to look at your CMake profiles in CLion:

  • Click on 'File > Settings > Build, Execution, Deployment > CMake'. You will see all the CMake profiles under the heading 'Profiles', and you can edit/delete/create new profiles from there.
  • At the bottom of the CLion window, click the 'CMake' tab. This shows the CMake panel, which gives you a tab for each CMake profile you have for this project, and shows the output of each corresponding CMake process.

If you only see one CMake profile, then I have no idea what's happening here.

If I were you, I would try several things:

  • Update to the latest version of conan. Maybe there was a concurrency bug that has already been fixed.
  • Try building the project from the command line, and not CLion.
  • In CLion, get rid of all the CMake profiles except for one, and then try rebuilding the project.

To me, this sounds like your version of conan has a deadlock problem. If you are still having trouble after updating conan, it may be worth looking into at https://github.com/conan-io/conan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants