{"record":{"id":"b9c863db2209831c","repo":"bevyengine/bevy","slug":"transaction-log-is-already-in-use-so-setting-the-f","errorCode":null,"errorMessage":"Transaction log is already in use so setting the factory does nothing","messagePattern":"Transaction log is already in use so setting the factory does nothing","errorType":"exception","errorClass":"SetTransactionLogFactoryError","httpStatus":null,"severity":"error","filePath":"crates/bevy_asset/src/processor/mod.rs","lineNumber":1835,"sourceCode":"    Finished,\n}\n\n/// An error that occurs when initializing the [`AssetProcessor`].\n#[derive(Error, Debug)]\npub enum InitializeError {\n    #[error(transparent)]\n    FailedToReadSourcePaths(AssetReaderError),\n    #[error(transparent)]\n    FailedToReadDestinationPaths(AssetReaderError),\n    #[error(\"Failed to validate asset log: {0}\")]\n    ValidateLogError(#[from] ValidateLogError),\n}\n\n/// An error when attempting to set the transaction log factory.\n#[derive(Error, Debug)]\npub enum SetTransactionLogFactoryError {\n    /// The transaction log is already in use, so setting the factory does nothing.\n    #[error(\"Transaction log is already in use so setting the factory does nothing\")]\n    AlreadyInUse,\n}\n\n/// An error when retrieving an asset processor.\n#[derive(Error, Debug, PartialEq, Eq)]\npub enum GetProcessorError {\n    /// The processor of that name does not exist.\n    #[error(\"The processor '{0}' does not exist\")]\n    Missing(String),\n    /// The given short name is ambiguous between several processors.\n    #[error(\"The processor '{processor_short_name}' is ambiguous between several processors: {ambiguous_processor_names:?}\")]\n    Ambiguous {\n        /// The given string for the processor name.\n        processor_short_name: String,\n        /// The list of processors that might match it.\n        ambiguous_processor_names: Vec<&'static str>,\n    },\n}","sourceCodeStart":1817,"sourceCodeEnd":1853,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_asset/src/processor/mod.rs#L1817-L1853","documentation":"SetTransactionLogFactoryError::AlreadyInUse: returned when calling set_transaction_log_factory after the processor has already created/opened its transaction log, because the factory can only influence log creation before the log is initialized; the call is a no-op and this error informs the caller.","triggerScenarios":"Thrown at crates/bevy_asset/src/processor/mod.rs:1835 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Move the set_transaction_log_factory call earlier, before the processor is initialized","Use a custom processor build where the factory is configured prior to log creation"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"396ca727080776bd313bb892423b7d94e03b81b4","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}