Starting a Gradle Daemon, x busy Daemons could not be reused, use --status for details, recursion until RAM floods
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the issue with the shown build.gradle tasks.whenTaskAdded block and flutter build apk, then inspect the output of Gradle's --status command. Trace why each task addition causes another daemon to start; done means the APK build completes without recursively creating daemons or exhausting RAM.
Written by the indexing model from the issue text.
Description
When I added
tasks.whenTaskAdded { task ->
if ((task.name == 'javaPreCompileDebug' || task.name == 'javaPreCompileRelease')) {
task.dependsOn 'cargoBuild'
}
}
to my flutter project's build.gradle and when I do flutter build apk I get things like
Starting a Gradle Daemon, 18 busy Daemons could not be reused, use --status for details
Starting a Gradle Daemon, 19 busy Daemons could not be reused, use --status for details
...
and then it keeps starting a new one until my RAM floods and the computer crashes. If I comment that code, it builds, but of course without gradle.
Is there a way to debug more to see what is hapening? Looking at the system monitor, it's starting lots of java gradle daemons
- Dominant language
- Kotlin
- Stars
- 1.3k
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mozilla/rust-android-gradle
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mozilla/rust-android-gradle#174 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mozilla/rust-android-gradle#166 · 1 comment · 3 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
mozilla/rust-android-gradle#163 · 2 comments · 2 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
mozilla/rust-android-gradle#158 · 7 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
mozilla/rust-android-gradle#152 · 1 comment ·
All issues in mozilla/rust-android-gradle
Similar issues
-
go 🏃 testing 🧪
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
valkey-io/valkey-glide#7239 ·
Maintainers usually reply within 2 days
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ethereum-lists/chains#8788 ·
Maintainers usually reply within 1 day
-
unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
thunderbird/thunderbird-android#11654 · 2 comments ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tauri-apps/tauri#16173 ·
Maintainers usually reply within 2 days
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 1 day