title: CLion 2021.3 hangs, with "Exception 'java.lang.reflect.InvocationTargetException' was reported NN times"
body: <p>I'm running CLion on a certain machine for the first time. After entering my activation code and selection a folder with a project, CLion is stack while &quot;Loading CMake project...&quot;, and the console shows the following lines:</p>
  <pre><code>...snip...
  2022-01-25 15:20:06,190 [  38903]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 10 times
  2022-01-25 15:20:08,497 [  41210]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 30 times
  2022-01-25 15:20:09,219 [  41932]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 20 times
  2022-01-25 15:20:10,323 [  43036]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 10 times
  2022-01-25 15:20:11,430 [  44143]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 40 times
  </code></pre>
  <p>with this continuing indefinitely.</p>
  <p>What could cause this?</p>
  <hr />
  <p><strong>Note:</strong> More of the log:</p>
  <pre><code>2022-01-25 15:19:29,898 [   2611]   WARN - arketplace.MarketplaceRequests - Error reading Marketplace file: java.net.UnknownHostException: plugins.jetbrains.com (file=/home/lh156516/.cache/JetBrains/CLion2021.3/plugins/brokenPlugins.json URL=https://plugins.jetbrains.com/files/brokenPlugins.json)
  2022-01-25 15:19:29,898 [   2611]   WARN - arketplace.MarketplaceRequests - Can not get broken plugins file from Marketplace: plugins.jetbrains.com
  Info  | RdCoroutineScope          | 88:JobScheduler FJ pool 56/95 | RdCoroutineHost overridden
  2022-01-25 15:19:52,626 [  25339]   WARN - l.NotificationGroupManagerImpl - Notification group CodeWithMe is already registered (group=com.intellij.notification.NotificationGroup@44e55c9e). Plugin descriptor: PluginDescriptor(name=Code With Me, id=com.jetbrains.codeWithMe, descriptorPath=plugin.xml, path=/opt/clion/2021.3.2/plugins/cwm-plugin, version=213.6461.75, package=null, isBundled=true)
  2022-01-25 15:19:53,502 [  26215]   WARN - arketplace.MarketplaceRequests - Can not get features from Marketplace: plugins.jetbrains.com
  2022-01-25 15:19:53,504 [  26217]   WARN - arketplace.MarketplaceRequests - Can not get features from Marketplace: plugins.jetbrains.com
  2022-01-25 15:19:53,507 [  26220]  ERROR - tartup.impl.StartupManagerImpl - plugins.jetbrains.com
  java.net.UnknownHostException: plugins.jetbrains.com
          at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220)
          at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
          at java.base/java.net.Socket.connect(Socket.java:609)
          at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:299)
          at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177)
          at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474)
          at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569)
          at java.base/sun.net.www.protocol.https.HttpsClient.&lt;init&gt;(HttpsClient.java:266)
          at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373)
          at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203)
          at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1232)
          at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081)
          at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189)
          at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592)
          at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
          at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
          at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
          at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:608)
          at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:359)
          at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:367)
          at com.intellij.ide.plugins.marketplace.MarketplaceRequests$searchPlugins$marketplaceSearchPluginData$1.process(MarketplaceRequests.kt:296)
          at com.intellij.ide.plugins.marketplace.MarketplaceRequests$searchPlugins$marketplaceSearchPluginData$1.process(MarketplaceRequests.kt:48)
          at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:516)
          at com.intellij.util.io.HttpRequests.process(HttpRequests.java:498)
          at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:333)
          at com.intellij.ide.plugins.marketplace.MarketplaceRequests.searchPlugins(MarketplaceRequests.kt:294)
          at com.intellij.ide.plugins.LanguagePluginDetectionStartupActivity$Companion.findLanguagePluginToInstall(LanguagePluginDetectionStartupActivity.kt:71)
          at com.intellij.ide.plugins.LanguagePluginDetectionStartupActivity$Companion.access$findLanguagePluginToInstall(LanguagePluginDetectionStartupActivity.kt:53)
          at com.intellij.ide.plugins.LanguagePluginDetectionStartupActivity.runActivity(LanguagePluginDetectionStartupActivity.kt:34)
          at com.intellij.ide.startup.impl.StartupManagerImpl.runStartupActivity(StartupManagerImpl.kt:312)
          at com.intellij.ide.startup.impl.StartupManagerImpl.runActivityAndMeasureDuration(StartupManagerImpl.kt:293)
          at com.intellij.ide.startup.impl.StartupManagerImpl.executeActivityFromExtensionPoint(StartupManagerImpl.kt:222)
          at com.intellij.ide.startup.impl.StartupManagerImpl.access$executeActivityFromExtensionPoint(StartupManagerImpl.kt:62)
          at com.intellij.ide.startup.impl.StartupManagerImpl$projectOpened$$inlined$runActivity$lambda$1.accept(StartupManagerImpl.kt:172)
          at com.intellij.ide.startup.impl.StartupManagerImpl$projectOpened$$inlined$runActivity$lambda$1.accept(StartupManagerImpl.kt:62)
          at com.intellij.openapi.extensions.impl.ExtensionPointImpl.processImplementations(ExtensionPointImpl.java:314)
          at com.intellij.ide.startup.impl.StartupManagerImpl.projectOpened(StartupManagerImpl.kt:171)
          at com.intellij.openapi.project.impl.ProjectManagerExImplKt.openProject(ProjectManagerExImpl.kt:496)
          at com.intellij.openapi.project.impl.ProjectManagerExImplKt.access$openProject(ProjectManagerExImpl.kt:1)
          at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:143)
          at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:58)
          at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:94)
          at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:71)
          at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:244)
          at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
          at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:624)
          at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:698)
          at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:646)
          at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:623)
          at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
          at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
          at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:244)
          at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
          at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
          at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
          at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
          at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
          at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
          at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
  2022-01-25 15:19:53,515 [  26228]  ERROR - tartup.impl.StartupManagerImpl - CLion 2021.3.2  Build #CL-213.6461.75
  2022-01-25 15:19:53,515 [  26228]  ERROR - tartup.impl.StartupManagerImpl - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
  2022-01-25 15:19:53,516 [  26229]  ERROR - tartup.impl.StartupManagerImpl - OS: Linux
  2022-01-25 15:19:53,517 [  26230]  ERROR - tartup.impl.StartupManagerImpl - Last Action: WelcomeScreen.OpenDirectoryProject
  2022-01-25 15:19:53,887 [  26600]   WARN - ctionSystem.impl.ActionUpdater - 307 ms to grab EDT for OpenFileAction#update (com.intellij.ide.actions.OpenFileAction)
  2022-01-25 15:19:56,652 [  29365]   WARN - com.intellij.util.xmlb.Binding - no accessors for org.jetbrains.idea.perforce.perforce.ConnectionId
  java.lang.OutOfMemoryError: Java heap space
  Dumping heap to /home/lh156516/java_error_in_clion_.hprof ...
  Unable to create /home/lh156516/java_error_in_clion_.hprof: File exists
  2022-01-25 15:20:01,774 [  34487]  ERROR - ecution.process.ProcessHandler - null
  java.lang.reflect.InvocationTargetException
          at jdk.internal.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
          at com.sun.proxy.$Proxy37.onTextAvailable(Unknown Source)
          at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:221)
          at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:155)
          at com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:205)
          at com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:189)
          at com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:136)
          at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:74)
          at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:155)
          at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
          at com.intellij.util.io.BaseDataReader.lambda$start$0(BaseDataReader.java:50)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
          at java.base/java.lang.Thread.run(Thread.java:829)
  Caused by: java.lang.OutOfMemoryError: Java heap space
          at java.base/java.util.Arrays.copyOf(Arrays.java:3745)
          at java.base/java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:172)
          at java.base/java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:538)
          at java.base/java.lang.StringBuilder.append(StringBuilder.java:174)
          at com.intellij.execution.process.ProcessOutput.appendStderr(ProcessOutput.java:38)
          at com.intellij.execution.process.CapturingProcessAdapter.addToOutput(CapturingProcessAdapter.java:28)
          at com.intellij.execution.process.CapturingProcessAdapter.onTextAvailable(CapturingProcessAdapter.java:20)
          at jdk.internal.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
          at com.sun.proxy.$Proxy37.onTextAvailable(Unknown Source)
          at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:221)
          at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:155)
          at com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:205)
          at com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:189)
          at com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:136)
          at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:74)
          at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:155)
          at com.intellij.util.io.BaseDataReader$$Lambda$1209/0x0000000100cec840.run(Unknown Source)
          at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
          at com.intellij.util.io.BaseDataReader.lambda$start$0(BaseDataReader.java:50)
          at com.intellij.util.io.BaseDataReader$$Lambda$1207/0x0000000100cee440.run(Unknown Source)
          ... 9 more
  2022-01-25 15:20:02,921 [  35634]  ERROR - ecution.process.ProcessHandler - null
  java.lang.reflect.InvocationTargetException
          at jdk.internal.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:566)
          at com.intellij.execution.process.ProcessHandler$2.invoke(ProcessHandler.java:247)
          at com.sun.proxy.$Proxy37.onTextAvailable(Unknown Source)
          at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:221)
          at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:155)
          at com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:205)
          at com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:194)
          at com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:136)
          at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:74)
          at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:155)
          at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:213)
          at com.intellij.util.io.BaseDataReader.lambda$start$0(BaseDataReader.java:50)
          at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
          at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
          at java.base/java.lang.Thread.run(Thread.java:829)
  Caused by: java.lang.OutOfMemoryError: Java heap space
  2022-01-25 15:20:02,925 [  35638]  ERROR - ecution.process.ProcessHandler - CLion 2021.3.2  Build #CL-213.6461.75
  2022-01-25 15:20:02,926 [  35639]  ERROR - ecution.process.ProcessHandler - CLion 2021.3.2  Build #CL-213.6461.75
  2022-01-25 15:20:02,926 [  35639]  ERROR - ecution.process.ProcessHandler - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
  2022-01-25 15:20:02,926 [  35639]  ERROR - ecution.process.ProcessHandler - JDK: 11.0.13; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
  2022-01-25 15:20:02,926 [  35639]  ERROR - ecution.process.ProcessHandler - OS: Linux
  2022-01-25 15:20:02,926 [  35639]  ERROR - ecution.process.ProcessHandler - OS: Linux
  2022-01-25 15:20:06,190 [  38903]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 10 times
  2022-01-25 15:20:08,497 [  41210]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 30 times
  2022-01-25 15:20:09,219 [  41932]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 20 times
  2022-01-25 15:20:10,323 [  43036]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 10 times
  2022-01-25 15:20:11,430 [  44143]  ERROR - ecution.process.ProcessHandler - Exception 'java.lang.reflect.InvocationTargetException' was reported 40 times
  </code></pre>