PhpStorm freezes on MacOS 14.6.1

Hi, I am running the latest version of PhpStorm and I am having a lot of freezes on MacOS 14.6.1 and I am not sure why. This is an M1 Max with 64G of RAM and I have assigned a monstrosity to PhpStorm : 16G. I have shared logs, the ID for the uploaded file is: 2024_08_20_24E9VoDD42tHzMkCP1ocdn

What is wrong with PhpStorm? This was not happening on the previous version with the very same plugins installed/enabled

PhpStorm 2024.2
Build #PS-242.20224.361, built on August 10, 2024
Runtime version: 21.0.3+13-b509.4 aarch64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.lwawt.macosx.LWCToolkit
macOS 14.6.1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 16384M
Cores: 10
Metal Rendering is ON
Registry:
 run.processes.with.pty=TRUE
 ide.experimental.ui=true
Non-Bundled Plugins:
 String Manipulation (9.14.1)
 ru.adelf.idea.dotenv (2024.2.1)
 mobi.hsz.idea.gitignore (4.5.3)
2
15 comments

Hi Reynier,

Please try the following things to mitigate the problem:

  • Temporarily disable all of the downloaded plugins and restart: Preferences | Plugins | ⚙ | Disable all downloaded plugins
  • Go to Help | Edit Custom VM Options, add -Dsun.java2d.metal=false there and restart the IDE
0

Hi Arina Efremova I have followed your instructions and it does not seem to be working. I must add that this freezing does not happen while I am working it happens if I step away from keyboard and the MacBook enter in Screen Saver mode. I have to add here to that it happen if I have one project opened but it also happen with two or more projects opened. I can attach new logs if needed but not sure how to

 

0

I'm experiencing a similar issue. Though in my case, it intermittently freezes while I am typing. I only started experiencing this issue after updating to latest PHPStorm update.

Running a Apple M3 Max on Sonoma 14.6.1

1

Levi Melamed 

  1. Temporarily disable all of the non-bundled plugins: Preferences | Plugins | ⚙ | Disable all downloaded plugins
  2. Restart the IDE
  3. Reproduce the issue and collect a CPU snapshot that captures a few of the freezes: Help | Diagnostic Tools | Start/Stop CPU Usage Profiling
  4. Collect IDE logs for analysis (entire archive): **Help | Collect Logs and Diagnostic Data**. I will search for exceptions and check your system environment settings.
  5. Upload everything to our server and make sure to provide the id of the upload.
0

Reynier Perez 

Do you use the IDE in full-screen mode?

Do you have multiple monitors? If so, when it freezes, does it help to move the IDE window between them to force UI repainting?

Please also take several jstack dump files while the IDE is freezing and upload them to our server (instructions).

0

Arina Efremova 

  1. Yes, I do use the IDE in full-screen mode to avoid extra distractions ;)  
  2. Yes, I do have multiple monitors handled using a KVM. To explain here a little bit, some times I have to use my personal computer for something then the KVM switch all the monitors to it. If I left the IDE open, either with just one project opened or even two (in the same window) and after a while I go back to my work laptop then the IDE freezes and the only way to get it working is to kill the process and restart the IDE sometimes this leads to lose work.
  3. I can't move the window because is on full-screen mode

Here is ID for the jstack dump: 2024_08_21_9A8RbUnZC9NBaTM3ck83Zf

0

Thanks Reynier Perez 

The stack trace points to this issue, which is still unresolved: https://youtrack.jetbrains.com/issue/JBR-5497

As a workaround, can you check if it helps to disable full-screen mode before you put your Mac to sleep?

0

Arina Efremova I have not yet had a chance yet to reproduce the issue, but I can confirm in my case, I'm using multiple monitors, and the IDE is not in full-screen mode.

0

Hi Arina Efremova that did not help either, I left the IDE open yesterday after I finish working in non full-screen mode and of course the laptop screen saver started and the laptop got automatically locked and today after open the laptop surprise PhpStorm is freeze again. Could PhpStorm prioritize this and get a new version soon? 

I do not mind restarting the IDE from time to time but I do mind losing work even with all the good stuff the new release bring to use I am willing to go back until this gets fixed …

0

Hi Reynier Perez - thanks for giving it a shot.

The issue is already prioritized (ticket Priority = Major). There is a number of recent reports for version 2024.2, so our dev team is actively looking into the root cause.

I also added your case to the ticket for everyone's reference. Hopefully, it can help speed up the process of investigation.

Thanks for your patience.

1

I believe this is an issue with PHPSTROM itself, I am using magento2.4.7 and phpstrom, I have tried all the possible ways such as increasing the memory, Disabling all plugins and all but it keep freezing and spiked CPU to 200 - 400%.

 

This must needs to fix from phpstrom side despite just sharing the logs.

I am using mac m3 Max with 64GB RAM, so I believe this is more then sufficient to perform smooth IDE. 

0

The same here.

PhpStorm 2024.2.3
Build #PS-242.23339.16, built on September 25, 2024
macOS 15.0.1 (M1 max)

No external screens.

Enter code editor → freeze → start typing → freeze → try to open folders → freeze → open settings → freeze.

I tried all workarounds from community forums, disabling plugins, changing memory size, changing settings.

There is no special prerequisitions:

  • install the latest PHPStorm
  • open any project, even with a few files
  • PHPStorm is consuming enormous resources when there is nothing to do and constantly freezing.

I'm following freezing problem topics for a long time.

It's hard to imagine why the P0 critical bug is still not fixed for such a long time.

0

krunallakhatariya2212, Sbodak, as the root cause can differ in each case, please submit a request to support via Help | Contact Support and share logs for further investigation.

0

Hi there
I have the same behavior when I screen share using Zoom or Slack. To get out of this freeze faster, just change the size of the PHPSTORM window by a couple of pixels by pulling its edge. This behavior appeared a month or two ago. I'm using the latest version of PHPSTORM Build #PS-242.23726.107, built on October 23, 2024 and a MacBook Apple M2 Pro (MacOS Sequoia 15.1) 32GB RAM

0

Hello Tuktukvlad,

In this case, adding -Dsun.java2d.metal=false in Help | Edit Custom VM Options should help.

If the issue persists, consider submitting a request to Support via Help | Contact Support and share logs from Help | Collect Logs and Diagnostic Data there.

0

Please sign in to leave a comment.