Severe UI Freezing/Hanging in Android Studio on macOS (32GB RAM) Despite Sufficient Memory Allocation
I am experiencing constant freezing and hanging of the Android Studio IDE. The interface becomes completely unresponsive during normal tasks like typing, scrolling, or switching between files. The hardware is highly capable, and no other heavy software is lagging.
Environment Details:
- Operating System: macOS Apple M1 Pro
- Mac Model: MacBook Tashoe
- System RAM: 32 GB
- Android Studio Version: Panda
- Architecture: aarch64 (Apple Silicon) OR x86_64
Steps to Reproduce:
- Open any Android project in Android Studio.
- Perform standard IDE operations (navigating code, typing, switching tabs).
- Observe the IDE performance after a few minutes of usage.
Expected Behavior: The IDE should run smoothly without any UI freezes, especially given the 32GB system RAM and the high memory allocation provided in the settings.
Actual Behavior: The IDE frequently hangs and becomes unresponsive. The UI completely freezes, disrupting the workflow, even though background Gradle builds seem to complete normally.
Troubleshooting Steps Already Taken (Without Success):
-
IDE Memory Increased: Modified Custom VM Options and set
-Xmx8g. -
Gradle Memory Increased: Modified
gradle.propertiesand setorg.gradle.jvmargs=-Xmx4608m. -
Invalidated Caches: Executed
File > Invalidate Caches / Restartwith all boxes checked.
Upload id: 2026_03_04_scYaZJFL5eQ71KTGs9tPES (file: threadDump-20260304-144743-1772615863993.txt)
请先登录再写评论。
Thanks for the detailed report. To investigate this further:
1. First, collect a full set of logs:
• When the IDE freezes, wait 10 seconds, this will generate thread dumps.
• Restart IDE and use Help > Collect Logs and Diagnostic Data and upload the logs to our secure server and attach ID.
2. Then, disable Metal rendering and test again:
• Go to Help > Edit Custom VM Options…
• Add this line on a new line:
-Dsun.java2d.metal=false
• Save and restart Android Studio, then see if the freezes still occur.
This will help us have full context and investigate the issue. Thank you!
Disable the Junie plugin