cpp_weekly_game_project icon indicating copy to clipboard operation
cpp_weekly_game_project copied to clipboard

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

Open kershnerd opened this issue 4 years ago • 1 comments

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?

kershnerd avatar Mar 21 '20 03:03 kershnerd

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.

ddalcino avatar Mar 23 '20 16:03 ddalcino