Has anyone else seen really slow gradle syncs with...
# multiplatform
s
Has anyone else seen really slow gradle syncs with 1.5.30? I have a fairly large size 4 module MP project and full syncs used to take about 5 minutes give or take. But now with 1.5.30 I'm seeing syncs take 25+ minutes! 99% of that 25+ minutes is spent in the :*runCommonizer* gradle task, and the task is using no CPU the entire time, like maybe its hanging on some network accesses or something. If anyone has suggestions I can try to diagnose this. I'd sure appreciate it :-)
s
This sounds very interesting. Would you be open for jumping into a Google Meet with me to investigate what is going on?
You might also click into the build window. The ‘runCommonizer’ task is a special task that is just acting as umbrella task for multiple things that have to be done (including downloading/resolving native dependencies (like platform libraries))
s
Sure, when is good for you? I no longer think that whatever is happening is specific to 1.5.30, I backed down to 1.5.21 to see if the issue resolves and so far no luck. An update for the kotlin plugin in Android Studio just popped about an hour ago, so upgraded and restarted. The resulting sync on restart took 17 + minutes, and the build window shows it worked, but event log showed this:
6:08 AM	Gradle sync failed: Sync failed: reason unknown (17 m 18 s 406 ms)
The idea.log shows an NPE in the sync KotlinGradleLibraryDataService.postProcess. I've seen that off and on before, there are a couple of issues on it (KTIJ-19330 and KTIJ-19319). Anyway while looking at the log I noticed that I've accumulated a number of threadDumps-freeze-... files, don't know if those are related or not. The slowness is uneven and I definitely don't understand the pattern yet. I'm still trying stuff...
Oops, in case this is a show-stopper I don't have a web-cam or microphone on my workstation...
Lol looks like a fix for KTIJ-19319 was merged earlier today. Hopefully it will be available soon...
s
👍 Please ping me once you feel lost and need support on that. As mentioned several times here already: I would strongly prefer a call over slack communication. YouTrack tickets are also fine, but certainly much slower!
r
hello, @Skolson5903 did you manage to resolve it? In my case the build takes now over 1h...
the gradlew build task executes fairly quick but if i run gradle sync (IDE) it takes forever
s
Sorry just now seeing your question. Mine did resolve, it seemed to be coincident. On the initial upgrade it happened to be late at night my time, and in retrospect I think it was having communication issues with the maven repositories. I have since done lots of builds, and also upgraded to 1.5.31, then 1.6.0, then 1.6.10 on the same project and the long wait never recurred. Sorry I can't be much help...