Intellij 2024.3.2 getting stuck on "Executing pre-compile tasks"

已回答

Since updating to IntelliJ 2024.3 my Java builds frequently get stuck like this:

Aborting and restarting the build does not help, invalidating caches helps, but after a few builds it happens again.

The project is a larger project containing a Maven-based Quarkus module, which is where the build problems occur.

The only non-bundled plugins I use are the “Quarkus Tools” plugin and its dependencies “LSP4IJ” and “Telemetry by Red Hat”.

The project is located on a WSL2 environment with IntelliJ being started from Windows 10.

I have so far sadly not been able to reproduce the problem in a smaller project.

Is there some known way to solve this or at least to find out more about which pre-compile tasks the build is getting stuck on? I can't see anything relevant in the IntelliJ logs and the Debug Log Settings menu would require me to know relevant internal IntelliJ packages, which I don't.

2

Hello!

Thank you for reporting this!

Could you please try enabling extended logging for IDEA's Build System by uncommenting the following lines:

#org.jetbrains.jps.level=FINER
#\#org.jetbrains.jps.level=FINER

from the file build-log-jul.properties found at IDEA's System Directory/logs/build-log, so it looks like this:

org.jetbrains.jps.level=FINER
\#org.jetbrains.jps.level=FINER

Reproduce the issue and share the logs (Upload ID) along with the time / date when the issue has occurred.

0

Upload id: 2025_02_05_YALQrMuqeRShGafLtzkc5r (file: idea.log)

The issue occured some minutes before the end of the log file, from looking at the log file myself I would guess around 15:12 or 15:13.

The nature of the issue makes it hard to tell the exact time since I usually don't immediately notice.

0

Jan,

Thank you for sharing the log, it does contain some info that seems relevant to the issue, however, most of the build-specific logging is written to the build.log file found at System Directory/log/build-log. Could you please share it too?

Or, if possible, share the full logs with Help → Collect Logs and Diagnostic Data.

0

Upload id: 2025_02_12_NNY59x7yJd94DXvPqV6god (file: idea-logs-20250212-1403123364137470790699310.zip)

The issue again occured shortly before the end of the logs.

0

Thank you for sharing the logs!

Since Plugins can register tasks to be executed during the "Executing pre-compile tasks" phase, I would suggest to temporarily disable the downloaded Plugins:

  1. Backup the disabled_plugins.txt, so you can rollback
  2. Settings → Plugins → Cogwheel icon → Disable All Downloaded Plugins

If the issue persists, once the build process hangs again, could you capture a few thread dumps of the IDEA process with jstack.

3-5 dumps with 15-30 seconds interval should be sufficient.

 

0

Upload id: 2025_02_13_YD7mM2gU5KaDKkcYRQrdEu (file: jstack.zip)

The issue just occured again while all downloaded plugins were disabled.

Since I wasn't quite sure which process to capture, I captured both idea64.exe and the idea process running inside WSL

0

Any updates on this?

0

Apologies for the delay in communication!

I have the R&D Team engaged in the investigation, I'll get back to you as soon as I hear back from them.

0

Same problem here, it works just fine for a while, but then get stuck on the Build process.

The workaround for me:
- Maven clean/install
- Run the application
- Stop the Build process

The application will run and will use the compiled file from the first step.

---
Environment:
- Windows 11.0
- WSL2 (Ubuntu 24.04)
- IntelliJ IDEA 2024.3.4.1 (Community Edition)
- Java 21.0.6
- Maven 3.9.9

0

I have the same problem, it picked up in frequency lately and happens consistently after a single successful build now…

My workaround so far has been to close IntelliJ and shut down wsl using ‘wsl --shutdown’, then restarting both. This has worked with varying success.

---
Environment:
- Windows 10 Enterprise
- WSL2 (Ubuntu 22.04)
- Corretto 17, Kotlin 2.1
- Gradle 7.6

IntelliJ IDEA 2024.3.5 (Ultimate Edition) Build #IU-243.26053.27
Runtime version: 21.0.6+8-b631.39 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 20
Registry: ide.experimental.ui=true
Non-Bundled Plugins:
 org.intellij.plugins.hcl (243.25659.42)
 com.majera.intellij.codereview.bitbucket (2025.2.0.243)
Kotlin: 243.26053.27-IJ

0

Could you please check if the issue persists for you on the IDEA 2025.1 EAP?

0

I just upgraded after having the issue pop up again and have run multiple successful build since. It seems like the issue is fixed. I'll keep an eye on it and will report back if it reappears.

Thanks for the quick resolve!

0

请先登录再写评论。