{"record":{"id":"cb4c94c4c4742ffb","repo":"mudler/LocalAI","slug":"no-results-n","errorCode":null,"errorMessage":"NO results\\n","messagePattern":"NO results\\\\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/go/stablediffusion-ggml/cpp/gosd.cpp","lineNumber":1014,"sourceCode":"        }\n    } else {\n        fprintf(stderr, \"No LoRAs specified for this generation\\n\");\n    }\n\n    fprintf(stderr, \"Generating image with params: \\nctx\\n---\\n%s\\ngen\\n---\\n%s\\n\",\n            sd_ctx_params_to_str(&ctx_params),\n            sd_img_gen_params_to_str(p));\n\n    bool gen_ok = generate_image(sd_c, p, &results, &num_results_out);\n\n    std::free(p);\n\n    if (!gen_ok || num_results_out == 0) {\n        results = NULL;\n    }\n\n    if (results == NULL) {\n        fprintf (stderr, \"NO results\\n\");\n        if (input_image_buffer) free(input_image_buffer);\n        if (mask_image_buffer) free(mask_image_buffer);\n        for (auto buffer : ref_image_buffers) {\n            if (buffer) free(buffer);\n        }\n        return 1;\n    }\n\n    if (results[0].data == NULL) {\n        fprintf (stderr, \"Results with no data\\n\");\n        if (input_image_buffer) free(input_image_buffer);\n        if (mask_image_buffer) free(mask_image_buffer);\n        for (auto buffer : ref_image_buffers) {\n            if (buffer) free(buffer);\n        }\n        return 1;\n    }\n","sourceCodeStart":996,"sourceCodeEnd":1032,"githubUrl":"https://github.com/mudler/LocalAI/blob/44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26/backend/go/stablediffusion-ggml/cpp/gosd.cpp#L996-L1032","documentation":"The diffusion run returned zero result images. Guard: check the result count after generation and report an internal error to the gRPC caller rather than writing empty output.","triggerScenarios":"Thrown at backend/go/stablediffusion-ggml/cpp/gosd.cpp:1014 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the generation; the diffusion run produced no results.","Check model files and sampler settings; verify earlier log lines for a failed sampling step.","Verify enough VRAM/RAM is available to complete the generation."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"44413a9d06bf5bc52ce088ba8ca74e5a2e8bee26","analyzedAt":"2026-08-15T10:13:50.291Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}