Inteliji idea crashes on Optimize Imports or Reformat code

已回答

After last update IntelliJ IDEA 2025.2 Ultimate crashes when performing “Optimize Imports” action or “Reformat code” action on groovy code 

It crashes only when I performe action on whole file, when I selecting some subset of code and perform reformat code, everything is ok

My machine is Mac Os with m2 processor 
I'm using java correto arm 21.0.6
 

0

Hi, Sebastian!

Thank you for reaching out to us!

Could you please send us your application logs? You can do so by following these steps: 
1. Go to Help | Collect Logs and Diagnostic Data
2. Please upload the file shown here (make sure to share the UploadID with us);

Let me know if you have any questions on the way.

0

Hi,
I'v uploaded error (after crash) and diagnostic logs
Upload id: 2025_09_18_qjRQxPMGDUbXrTKLQPydTD (files: error.json, idea-logs-20250918-0913082895229334016802667.zip)

0
Hi Sebastian,

Here is a couple of things we could try:
1. Try to set JBR version to the latest: https://www.jetbrains.com/help/idea/switching-boot-jdk.html
2. For investigation purposes and testing (so we could pinpoint the issue), try disabling AI Assistant (Settings | Plugins) and reproducing the issue, if issue persists try bulk disabling all 3rd party plugins:https://youtrack.jetbrains.com/articles/SUPPORT-A-20
3. Lastly if the issue persists Add this VM option via Help > Edit Custom VM Options…:
-Dsun.java2d.metal=false

Please let me know of your findings.

Best regards,
Uros Glogovac
IntelliJ Support
0

请先登录再写评论。