Blank / Black PyCharm UI when MacOS wakes from sleep

PyCharm 2022.2.3 (Build #PY-222.4345.23)

macOS Monterey 12.6.1

Whenever macOS wakes from sleep, the PyCharm UI is broken.  The main application window and any floating project windows are blacked-out completely.  The only way to fix this is to either close and reopen the project, or sometimes manipulating the window in some way (minimizing, then maximizing etc.) will fix it also.  Often when I open the Project window, I have to hit the keyboard shortcut 3 times to see anything (once to open it and realize it's broken, once to minimize, once more to open again with everything visible.)

Interestingly, this issue does not seem to occur with other floating windows like Version ControlRunPython Console.

I wouldn't call this a show-stopper as there are work-arounds, but man is it annoying.!

 

2
6 comments
Please update to 2022.3 from https://www.jetbrains.com/pycharm/download/ and check if the issue persists.
0

I had the same pain each time. Happy to share a cool quick workaround. Just go to Pycharm on the top left and click About PyCharm. The screen comes to life. No need to re-open the app.

0

I have a Pycharm version from 2023.

0

Same on 2025.1.2, M4 Pro

2

Please try adding -Dsun.java2d.metal=false to the Help | VM options, restart IDE

In case the issue persists, create a new issue on YouTrack with the IDE logs from Help | Collect Logs and Diagnostic Data

0

Please sign in to leave a comment.