CLion cannot start. Stuck loading project.

Answered

If I leave it running over night, it runs out of memory despite havinc XmX30g !

Its probably lots of .h files. There is no way for removing default project open, so I have no way to start. All the docs on the internet, say to go to settings and disable autoload last project. I cannot do it because UI does't work. It is stuck loading. Cancel doesnt work as well.

I couldn't find default project setting in the xml config files so I would be able to remove it.

1
10 comments

The message says "Loading components for 'project'. Progress bar stuck in the middle. Cancel is clickable, but does not do anything.

0

Hi!

The project which will be opened when CLion is launched is specified in the recentProjectDirectories.xml file under <option name="openPaths">. The file is located in:

  • ~/Library/Preferences/.<PRODUCT><VERSION>/options on macOS;
  • ~/.<PRODUCT><VERSION>/config/option on Linux;
  • <User home>\.<PRODUCT><VERSION>\config\options on Windows.

 

0

I have the same problem, and I need to `$ rm ~/Library/Preferences/.<PRODUCT><VERSION>/options/recentProjectDirectories.xml` every time I start CLion. This is quite annoying.

0

Hi Areg! You can go to File | Settings | Appearance & Behavior | System Settings and disable the Reopen last project on startup option.

0

I have the same problem with a larger Rust project.

Killing the Clion process, then starting Clion a second time succeeds (even when it is configured to re-open the same project on startup).

0

This issue is rather tedious, since this has to be done every day, if you do not want to deactivate the re-open lst project on startup feature altogether.
Is there a way I can diagnose it further?

0

Hi David!

>I have the same problem with a larger Rust project.

Do you mean that UI froze? If yes, please send automatically generated thread dumps from the logs folder (`Help | Show Log in …`) to clion-support at jetbrains.com. Please also add the link to this thread in the email. Thank you in advance.

0

> Do you mean that UI froze? If yes, please send automatically generated thread dumps from the logs folder (`Help | Show Log in …`) to clion-support at jetbrains.com. Please also add the link to this thread in the email. Thank you in advance.

A month ago Clion started to freeze up in the middle of loading a large Rust project (parity-ethereum), but *only* the first time after a re-boot of Ubuntu.

Killing the "java" process of Clion and re-starting Clion then successfully loaded the project. It was annoying, but did not keep me from working.

In any case, after reporting the issue here I wiped my local Clion install and all its configs and re-installed the snap version of Clion through the Ubuntu Application Manager tool - and this seems to have fixed the issue for me so far.

0

Spoke too soon - the issue is back.
Stuck on loading this large Rust project: https://github.com/paritytech/parity-ethereum
The dialog where it stops is about halfway through the "Loading modules..." step on loading.

Killing the "java" process of clion and starting it again loads the project fine for the rest of the session, only happens the first time after a Ubuntu OS boot.

0

Please sign in to leave a comment.