Hi, I am using Intellij Ultimate for android devel...
# intellij
j
Hi, I am using Intellij Ultimate for android development, does anyone else have the issue that Intellij from time to time freezes with job “Refreshing all Previews” (Compose previews) and it requires force quit on Mac?
j
yes i am on 2024.2 because on previous version it didn’t work at all
w
In previous versions you needed
-Djava.security.manager=allow
for some time
I'm curious, do you have anything in your previews that might be using Main dispatcher?
j
In some yes, but in most not - unless it is somewhere under the hood of some effects or modifier
w
Yeah in my case I suspect Coil as I saw UI dispatcher somewhere in its internals, and the issue was much worse when I was explicitly using a UI dispatcher myself. I was just curious 🙂
j
did you found any information that Jetbrains works on the issue? Or is there some working workaround
disabling “Refresh all previews” would be good starting point 😄 it wouldnt cause the issue so often as not all screens have dispatcher
w
Nope, I know as much as is in the ticket, but it might be helpful if you vote for the issue/comment with more details. The UI dispatcher is just my hunch and I don't really know it's culprit either
For me the issue is not only with refreshing the previews either, I could hang the IDE by clicking around the interactive preview. Basically I can't use 2024.2 and I'm still on 2024.1 because of that issue 😕
j
I think I will get back to 2024.1 then as well. Where should I add this “-Djava.security.manager=allow” to fix the issue on .1?
w
Help -> edit custom vm options
j
thanks!