IntelliJ freezes a lot. mostly on project load

已回答

Recently I am encountering an issue where my IntelliJ is Freezing a lot!

I noticed it mostly happens when I open a recent project (not, new, but one which I previously used), but not only. 
sometimes it just happens in middle of work.
when it happens, it is simply frozen, and I can wait for hours ant it will not be unfrozen.
when it happens, I have to kill the process and reopen, but then, 9 times out of 10 it will be loaded and get stuck mid indexing.
The only WA I found (after a lot of frustration) is to use the dontReopenProjects and then open the projects one by one.

I am working with relatively large projects, it happens if I open a single folder with multiple projects or if I open each folder with multiple separately.

I tried disabling all external plugins and the issue still occurs.

this is making it really hard to work, please let me know what might help.

 

Upload id: 2025_02_05_24RrMBwVjVVTFvVxzijavD (file: log.zip)

 

0
Hi,

Thanks for reporting this issue.
From your logs, I can see some 10-second freezes compared to the hours-long freezes you mentioned.
If you see this issue again, please refer to the jstack section here https://intellij-support.jetbrains.com/hc/en-us/articles/206544899-Getting-a-thread-dump-when-IDE-hangs-and-doesn-t-respond to capture 2-3 thread dump files of the IDE process at that time, and share it so we could investigate it further.
0

Thanks Lejia. I have just reencountered the issue, but I do not have such Thread dumps from today at all. 

it is as if the freeze is so savvier that it won't even write the thread dumps. 

I do see an open-telemetry logs (json and a csv) but not sure if it will help. 
 

Please let me know if you need those files or anything else I can do.

0

> it is as if the freeze is so savvier that it won't even write the thread dumps. 

Yehuda Huri The Intellij may failed to write freeze dumps due to several reasons like the freeze is shorter than 10 sec 2. there is a soft freeze (UI is not frozen but the user UI is blocking, e.g. there is a modal dialog showing waiting something and stuck there, but you can still move the modal dialog)

I suspect that your issue might be related to https://youtrack.jetbrains.com/issue/IJPL-177838

Try to disable all options in `File | Settings | Appearance & Behavior | System Settings | Data Sharing` and restart the IDE to see if it helps.

If it doesn't, please refer to the jstack section here: https://intellij-support.jetbrains.com/hc/en-us/articles/206544899-How-to-get-a-thread-dump-when-IDE-hangs-and-doesn-t-respond to use the jps command to capture two thread dumps of the IntelliJ and share them.

0

Thanks, but it's most definitely not a modal dialog or anything like that. 

I have exported the jstack logs (after about 1.5 hour of freeze). please let me know if that helps

Upload id: 2025_03_09_btzxbZ4eW5S6cYqLcTesvP (file: dump.txt)

0

P.S - windows “Analyze wait chain” gives this if this helps.

 

0

Thanks for the dump file. Your issue should be the same as https://youtrack.jetbrains.com/issue/WEB-71849 (this issue was reported by a user and only visible to the JetBrains team so I am asking if the user could make it public to let you view it) We are working on a fix for the future 2024.3.5 version.

As a workaround, you could use the 2024.2.x version here https://www.jetbrains.com/idea/download/other.html

0

Thanks for the info.

Is it possible to downgrade without uninstalling and loosing all settings & data?

 

0

I recommend that you download a zip version of the 2024.2.5 - Windows x64 ZIP Archive (zip) here: https://www.jetbrains.com/idea/download/other.html

And open the bin/idea64.exe to use it before we release 2024.3.5 or 2025.1. 

To import the latest settings from 2024.3 in 2024.2.x, you could use the IDE main menu “File | Manage IDE Settings |  Import Settings", and choose C:\Users\yoursystemusername\AppData\Roaming\JetBrains\IntelliJIdea2024.3 to import it.

 

0

请先登录再写评论。