Loading components when Loading a project for a long time(2min+)

Answered

show "loading components" for a long time when loading a project.
the log show it like this:
2018-04-17 23:37:40,624 [ 20352] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.actions.GotoClassPresentationUpdater@908ddd9
2018-04-17 23:39:39,193 [ 138921] INFO - ellij.project.impl.ProjectImpl - 159 project components initialized in 123502 ms

 

IDEA: 2018.1.1

15 comments
Comment actions Permalink

Our team is having the same issue. Project loading hangs up for 5 or even more minutes on this progress bar. It loads after all but it really sucks to wait... we usually have to restart the Application.

0
Comment actions Permalink

Please provide the thread dumps via jstack, see https://intellij-support.jetbrains.com/hc/articles/206544899. Also provide the logs: Help | Compress Logs and Show in ...

Report the issue at https://youtrack.jetbrains.com/issues/IDEA with all the files attached.

0
Comment actions Permalink

I see there is an issue of such case already.
https://youtrack.jetbrains.com/issue/WI-48214

Even more I see such case appeared on IntelliJ IDEA board ( https://youtrack.jetbrains.com/issue/IDEA-220475 ) and is fixed with latest 2019.3 release. Hope same will be fixed with new PhpStorm.

0
Comment actions Permalink

In my case, removing venv directory solved the problem

0
Comment actions Permalink

Seems in some cases those 'components' need to do something via the network. I forgot to log in my VPN and was stuck loading for multiple minutes (usually it's 3 seconds or smth). Restored connectivity, got past it.

0
Comment actions Permalink

I am stuck on that screen too. Meanwhile in the terminal (started IntelliJ from command line) I can see:

2020-03-30 05:25:46,904 [ 11704] WARN - reporter.KotlinReportSubmitter - connect timed out 
java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
at java.base/java.net.Socket.connect(Socket.java:609)
at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:285)
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.<init>(HttpsClient.java:265)
at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:372)
at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1227)
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:177)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515)
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:607)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:56)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:376)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:385)
at org.jetbrains.kotlin.idea.KotlinPluginUpdater$Companion$fetchPluginReleaseDate$pluginDTOs$1.process(KotlinPluginUpdater.kt:348)
at org.jetbrains.kotlin.idea.KotlinPluginUpdater$Companion$fetchPluginReleaseDate$pluginDTOs$1.process(KotlinPluginUpdater.kt:320)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:518)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:500)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:56)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:350)
at org.jetbrains.kotlin.idea.KotlinPluginUpdater$Companion.fetchPluginReleaseDate(KotlinPluginUpdater.kt:347)
at org.jetbrains.kotlin.idea.reporter.KotlinReportSubmitter$Companion$setupReportingFromRelease$1.run(KotlinReportSubmitter.kt:93)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:238)
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.lang.Thread.run(Thread.java:834)

...which is interesting because I have "Send usage statistics" turned off. I am behind a proxy, but environment variables are set.

I am using 2019.3 (aka. 193.6911.18).

Deleting the .idea folder helps, but only for one restart, the next time (when .idea is re-generated) the UI get stuck on the same point. I can see the exception even on the successful run (after deleting .idea).

Thanks

0
Comment actions Permalink

The exception means that the IDE fails to check for updates of a Kotlin plugin b/c the connection to server times out. It is not related to usage statistics.

Please share the thread dumps via jstack: https://intellij-support.jetbrains.com/hc/articles/206544899 when it hangs.

0
Comment actions Permalink

Please, fix this issue. Every time when I open the second project it hangs on the Loading Components. If I load one project, then everything loads quickly.

0
Comment actions Permalink

Shaposhnyk There might be different reasons that cause this problem. Can you please raise a new issue at https://youtrack.jetbrains.com/issues/IDEA, and capture a thread dump via jstack to check your case? (https://intellij-support.jetbrains.com/hc/en-us/articles/206544899)

0
Comment actions Permalink

Egor Klepikov I don't understand that instruction which you sent to me. please get me an easy decision on my issue. fixed that troubles, please. Thank you.

0
Comment actions Permalink

We would like to help you, but without diagnostic data, it is hard to say why you encountered this problem. Here is a short instruction on how to collect the needed information:

  • Disable all third-party plug-ins.
  • Quit the IDE.
  • Launch the IDE and reproduce the problem.
  • Find the PID of IntelliJ IDEA process via jps or system task manager.
  • Open the system command line and execute jstack -l <PID> > dump.txt . (JAVA_HOME must be configured)
  • Collect diagnostic data. (Help | Collect Logs and Diagnostic Data)
  • Raise a new issue at https://youtrack.jetbrains.com/issues/IDEA, and attach the command line output and collected diagnostic data.

This way we can analyze how the internal subsystems work when the problem occurred.

Also, try using the latest version from https://www.jetbrains.com/idea/download/#section=windows .

0
Comment actions Permalink

Thank you.

But I didn't find any "IntelliJ" process on my mac. 

jstack isn't found too.

#jstack

No Java runtime present, requesting install

I would like to repeat it again. if I run one project, everything loads quickly, but when I load several projects, phpstorm is not responding to "Loading modules"... but it does not always do it .

thank you.

0
Comment actions Permalink

> I would like to repeat it again. if I run one project, everything loads quickly, but when I load several projects, phpstorm is not responding to "Loading modules"... but it does not always do it .

Probably it is related to https://youtrack.jetbrains.com/issue/IDEA-250779 . Please try using the 2020.3 EAP build from https://www.jetbrains.com/phpstorm/nextversion .

0
Comment actions Permalink

2020.3 EAP Worked for me! Thanks

0

Please sign in to leave a comment.