-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Update to Hilt 2.48 and use the KSP version #933
Conversation
Thanks so much @danysantiago! Why can't |
@tunjid the rationale is in the release notes |
Please fix the spotless issues by running:
|
dec6a65
to
cdfeb23
Compare
😢 The current version of Hilt KSP (still experimental) triggers a lot of OOMs on CI...
During my tests (compilation + unit tests):
It seems like the current default is set by Gradle to 384m. |
Oh noes! 😢 It seems the project is already configured with 1g: https://github.com/android/nowinandroid/blob/main/gradle.properties#L11. Is this config not the same as the one in CI? |
Oops, you're right, I was thinking of another project configuration.
|
OOF... I confirm that ksp* tasks are responsible for these spikes in metaspace usage. This Kotlin compiler setting was introduced in the first PR of this project #1, but I'm not sure why. |
Looks like Google is aware of this issue and mentioned in the release note:
Shall we report an issue to them? |
@manuelvicnt did you get these results with |
@SimonMarquis Yeah, using the current state of this PR |
c24c59c
to
bd322c0
Compare
I've commented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
holding until we investigate
I'd like to look into this, what is the tool being used in this comment? #933 (comment) |
@SimonMarquis which tool are you using in this comment? |
This is VisualVM |
FWIW:
|
@SimonMarquis Thanks for sharing that thread on KotlinLang. Seems like we shouldn't be using Full context on why using
|
I'm still having issues with hilt 1.1.0 and ksp due to OOM |
* Moved protobuf to separate module to avoid having to wire KSP's Plugin with the Protobuf Plugin. * `@Binds` function cannot be an extension function. * Commented `kotlin.compiler.execution.strategy=in-process` in CI to circumvent OOMs due to increased metaspace usage.
@ffgiraldez Please could you share more details of your project and reproduction steps for the OOM by filing a new issue here: https://github.com/google/dagger/issues |
@Binds
function cannot be an extension function.