{"record":{"id":"b3e3fe0d5c6a4b27","repo":"gradle/gradle","slug":"this-daemon-is-broken-and-will-stop","errorCode":null,"errorMessage":"This daemon is broken and will stop.","messagePattern":"This daemon is broken and will stop\\.","errorType":"exception","errorClass":"DaemonUnavailableException","httpStatus":null,"severity":"error","filePath":"platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java","lineNumber":355,"sourceCode":"                try {\n                    condition.await();\n                } catch (InterruptedException e) {\n                    throw UncheckedException.throwAsUncheckedException(e);\n                }\n            }\n            LOGGER.debug(\"Command execution: finished waiting for {}. Result {} with state {}\", currentCommandExecution, result, state);\n            if (result instanceof Throwable) {\n                throw UncheckedException.throwAsUncheckedException((Throwable) result);\n            }\n            if (result != null) {\n                return;\n            }\n            switch (state) {\n                case Stopped:\n                case ForceStopped:\n                    throw new DaemonStoppedException(stopReason);\n                case Broken:\n                    throw new DaemonUnavailableException(\"This daemon is broken and will stop.\");\n                default:\n                    throw new IllegalStateException(\"Daemon is in unexpected state: \" + state);\n            }\n        } finally {\n            lock.unlock();\n        }\n    }\n\n    private void onCommandFailed(Throwable failure) {\n        lock.lock();\n        try {\n            result = failure;\n            condition.signalAll();\n        } finally {\n            lock.unlock();\n        }\n    }\n","sourceCodeStart":337,"sourceCodeEnd":373,"githubUrl":"https://github.com/gradle/gradle/blob/534f27719b66953f95cc907aae7f2c1b12f5482d/platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java#L337-L373","documentation":"Error \"This daemon is broken and will stop.\" thrown in gradle/gradle.","triggerScenarios":"The daemon detects an unrecoverable internal failure and transitions to a broken state before stopping.","commonSituations":"Out-of-memory errors, internal invariant violations, or failed assumptions inside daemon execution.","solutions":["Check the daemon log for the failure that marked the daemon broken.","Stop all daemons with 'gradle --stop' and retry; a fresh daemon will be started.","If the problem persists, run with --no-daemon and investigate memory or plugin issues crashing the daemon."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"534f27719b66953f95cc907aae7f2c1b12f5482d","analyzedAt":"2026-08-22T08:09:12.375Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}