critical failure illegal state exception while trying to install Clion 30 day trial

Answered

I'm trying to install the 30 day trial of CLion 2024.1.3 on CentOS 7 AMD. I get the following popup (same for 2024.1.1 and 2024.1.2). I already have licensed copies of IntilliJ and GoLand installed. Any suggestions?

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.lang.IllegalStateException: You cannot get com.intellij.ide.util.AppPropertyService@a7d3289 before component store is initialized
   at com.intellij.serviceContainer.ComponentManagerImpl.initializeService$intellij_platform_serviceContainer(ComponentManagerImpl.kt:654)
   at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance$suspendImpl(ServiceInstanceInitializer.kt:70)
   at com.intellij.serviceContainer.ServiceInstanceInitializer.createInstance(ServiceInstanceInitializer.kt)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invokeSuspend(LazyInstanceHolder.kt:162)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1$1.invoke(LazyInstanceHolder.kt)
   at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
   at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
   at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invokeSuspend(LazyInstanceHolder.kt:160)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder$initialize$1.invoke(LazyInstanceHolder.kt)
   at kotlinx.coroutines.intrinsics.UndispatchedKt.startCoroutineUndispatched(Undispatched.kt:44)
   at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:112)
   at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
   at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
   at kotlinx.coroutines.BuildersKt.launch(Unknown Source)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.initialize(LazyInstanceHolder.kt:145)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.access$initialize(LazyInstanceHolder.kt:13)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.tryInitialize(LazyInstanceHolder.kt:135)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt:95)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance$suspendImpl(LazyInstanceHolder.kt:83)
   at com.intellij.platform.instanceContainer.internal.LazyInstanceHolder.getInstance(LazyInstanceHolder.kt)
   at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.instance(InstanceContainerImpl.kt:68)
   at com.intellij.serviceContainer.ComponentManagerImpl.getServiceAsync(ComponentManagerImpl.kt:702)
   at com.intellij.platform.ide.bootstrap.AppServicePreloadingKt$preloadCriticalServices$1.invokeSuspend(appServicePreloading.kt:180)
   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

-----
Your JRE: 17.0.11+1-b1207.24 amd64 (JetBrains s.r.o.)
/home/ron/.local/share/JetBrains/Toolbox/apps/clion/jbr

0
4 comments

Hello!

Most probably, you have CLion Nova enabled in your CLion. Unfortunately, the ReSharper engine doesn't work on RHEL 7/CentOS 7 because of RIDER-105478. Sorry for the inconvenience.

Please go to ~/.config/JetBrains/CLion2024.1. Do you have the clion64.vmoptions file there? If you do, please add -Didea.suppressed.plugins.set.selector=classic to this file and try launching CLion.

If you don't have clion64.vmoptions, you need to edit <CLion installation directory>\bin\clion.sh. There should be the following code in this script:

exec "$JAVA_BIN" \
  -classpath "$CLASS_PATH" \
...

You need to add -Didea.suppressed.plugins.set.selector=classic like this:

exec "$JAVA_BIN" \
  -classpath "$CLASS_PATH" \
  -Didea.suppressed.plugins.set.selector=classic \
...
0

Thanks for the quick response. I added the -D… line and CLion starts and works now.

0

I just want to say that this fixed my problem as well! Thanks!

0

If you still want to have Resharper engine, if the logs show that the problem is some versions of GLIBCXX is not found in libstdc++.so, you can install a newer libstdc++ version and fix the problem with that without disabling Resharper engine. I fixed it yesterday for myself.

0

Please sign in to leave a comment.