Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
When typing out "R.drawable." in the IDE, it'll cause Android Studio to become unresponsive, if I copy/paste something more specific e.g. "R.drawable.ic_right" the list of available drawables matching that name pattern will appear.
My assumption here is that when you simply type "R.drawable." it is fetching every single drawable in my project to preview and running out of memory.
Steps to reproduce:
1. Have a sizeable number of icons/drawables in your project
2. In a applicable context, e.g. Icon(... painter = painterResource(id = ...) type out "R.drawable.". Ensure that your resources are already imported
Note the issue does not occur every time and sometimes the list does load without issue after some delay, whereas other times Android Studio needs to be force quit.
```
Build: AI-231.9225.16.2311.10647019, 202308111802
AI-231.9225.16.2311.10647019, JRE 17.0.7+0-17.0.7b1000.6-10550314x64 JetBrains s.r.o., OS Mac OS X(x86_64) v13.4.1, screens 1920.0x1080.0, 1920.0x1080.0
AS: Hedgehog | 2023.1.1 Canary 16
Kotlin plugin: 231-1.8.21-release-380-AS9225.16.2311.10647019
Android Gradle Plugin: 8.1.0
Gradle: 8.0
Gradle JDK: JetBrains Runtime version 17.0.7
NDK: from local.properties: (not specified), latest from SDK: 25.2.9519653
CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
Source: send_feedback_icon```