{"record":{"id":"0eebcad3fb810047","repo":"slint-ui/slint","slug":"the-renderer-software-feature-must-be-enabled-in-i","errorCode":null,"errorMessage":"the renderer-software feature must be enabled in i-slint-compiler when embedding textures","messagePattern":"the renderer-software feature must be enabled in i-slint-compiler when embedding textures","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/compiler/lib.rs","lineNumber":224,"sourceCode":"    /// Set automatically when the output format is `SlintSc`.\n    /// The compiler rejects all features not supported by the\n    /// safety-critical subset.\n    #[cfg(feature = \"slint-sc\")]\n    pub(crate) slint_sc: bool,\n\n    /// Set by tools such as `slint-viewer`, the LSP (editor diagnostics/preview), and the\n    /// live-reload runtime to indicate that the `.slint` file is being previewed rather than\n    /// driven by real host application logic.\n    pub is_preview: bool,\n}\n\nimpl CompilerConfiguration {\n    pub fn new(output_format: OutputFormat) -> Self {\n        let embed_resources = if std::env::var_os(\"SLINT_EMBED_TEXTURES\").is_some()\n            || std::env::var_os(\"DEP_MCU_BOARD_SUPPORT_MCU_EMBED_TEXTURES\").is_some()\n        {\n            #[cfg(not(feature = \"renderer-software\"))]\n            panic!(\n                \"the renderer-software feature must be enabled in i-slint-compiler when embedding textures\"\n            );\n            #[cfg(feature = \"renderer-software\")]\n            EmbedResourcesKind::EmbedTextures\n        } else if let Ok(var) = std::env::var(\"SLINT_EMBED_RESOURCES\") {\n            let var = var.parse::<bool>().unwrap_or_else(|_|{\n                panic!(\"SLINT_EMBED_RESOURCES has incorrect value. Must be either unset, 'true' or 'false'\")\n            });\n            match var {\n                true => EmbedResourcesKind::EmbedAllResources,\n                false => EmbedResourcesKind::OnlyBuiltinResources,\n            }\n        } else {\n            match output_format {\n                #[cfg(feature = \"rust\")]\n                OutputFormat::Rust => EmbedResourcesKind::EmbedAllResources,\n                OutputFormat::Interpreter => EmbedResourcesKind::Nothing,\n                _ => EmbedResourcesKind::OnlyBuiltinResources,","sourceCodeStart":206,"sourceCodeEnd":242,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/lib.rs#L206-L242","documentation":"Error \"the renderer-software feature must be enabled in i-slint-compiler when embedding textures\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/lib.rs:224 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable the renderer-software feature of i-slint-compiler when using texture embedding.","Unset SLINT_EMBED_RESOURCES or disable texture embedding."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}