-
Notifications
You must be signed in to change notification settings - Fork 305
Build stuck on kspDebugKotlin when using KSP on large project (dagger ksp) 8000 #1720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I experience similar issue. There are 125 modules in the project. YourKit points to a potential deadlock in this thread with comment: "It seems that the following threads have not changed their stack for more than 10 seconds". Potential deadlock threads
The stacktrace doesn't mention any ksp work, but this problem happens only when ksp is enabled in the project. Is there any other data that would be helpful? Unfortunately, I can't share the project as it's closed-source. |
When I run build with Gradle logs ( Logs repeatedly printed to the console
|
I experienced the same and it turned out there is a freezed Kotlin deamon process. I killed the process and get unstuck. So the problem is probably not ksp but Kotlin daemon. |
We also just started seeing this problem for our local developers. We only started having it when updating from |
We kept having people encounter this issue and waste a lot of time on it, so in our build I have added something to try to auto detect and fix the issue to mitigate it for now. I added a timeout setting on the KSP task
And then in a build listener I check for the ksp timeout and can kill the kotlin daemon and print an error message explaining what happened
|
KSP 2.0.20-1.0.25 is just released and may have fixed this issue. Would you mind to give it a try? |
I am also facing the same issue but in my case it never completes
ksp - 2.1.21-2.0.1 ksp.useKSP2=true Edit: |
Uh oh!
There was an error while loading. Please reload this page.
We recently moved to ksp from kapt for dagger and we're facing some build getting stuck. Gradle is stuck on
kspDebugKotlin
on random module using dagger ksp.We're using :
We have ~300 modules.
I was able to get some thread stacks using YourKit :
I can't really confirm but it seems it only happen when I have Android Studio open.
Originally reported here : google/dagger#4233
The text was updated successfully, but these errors were encountered: