{"record":{"id":"144b7f61a39a85f4","repo":"bevyengine/bevy","slug":"encountered-an-invalid-log-line-0","errorCode":null,"errorMessage":"Encountered an invalid log line: '{0}'","messagePattern":"Encountered an invalid log line: '(.+?)'","errorType":"exception","errorClass":"ReadLogError","httpStatus":null,"severity":"error","filePath":"crates/bevy_asset/src/processor/log.rs","lineNumber":241,"sourceCode":"    }\n\n    fn end_processing<'a>(\n        &'a mut self,\n        asset: &'a AssetPath<'_>,\n    ) -> BoxedFuture<'a, Result<(), BevyError>> {\n        Box::pin(async move { self.write(&format!(\"{ENTRY_END}{asset}\\n\")).await })\n    }\n\n    fn unrecoverable(&mut self) -> BoxedFuture<'_, Result<(), BevyError>> {\n        Box::pin(async move { self.write(UNRECOVERABLE_ERROR).await })\n    }\n}\n\n/// An error that occurs when reading from the [`ProcessorTransactionLog`] fails.\n#[derive(Error, Debug)]\npub enum ReadLogError {\n    /// An invalid log line was encountered, consisting of the contained string.\n    #[error(\"Encountered an invalid log line: '{0}'\")]\n    InvalidLine(String),\n    /// A file-system-based error occurred while reading the log file.\n    #[error(\"Failed to read log file: {0}\")]\n    Io(#[from] futures_io::Error),\n}\n\n/// An error that occurs when writing to the [`ProcessorTransactionLog`] fails.\n#[derive(Error, Debug)]\n#[error(\n    \"Failed to write {log_entry:?} to the asset processor log. This is not recoverable. {error}\"\n)]\npub(crate) struct WriteLogError {\n    pub(crate) log_entry: LogEntry,\n    pub(crate) error: BevyError,\n}\n\n/// An error that occurs when validating the [`ProcessorTransactionLog`] fails.\n#[derive(Error, Debug)]","sourceCodeStart":223,"sourceCodeEnd":259,"githubUrl":"https://github.com/bevyengine/bevy/blob/396ca727080776bd313bb892423b7d94e03b81b4/crates/bevy_asset/src/processor/log.rs#L223-L259","documentation":"ReadLogError::InvalidLogLine: while replaying the ProcessorTransactionLog, a line was encountered that does not match any known entry format (begin/end markers, unrecoverable marker). The offending raw line is carried in the error; the log is likely corrupted or from an incompatible version.","triggerScenarios":"Thrown at crates/bevy_asset/src/processor/log.rs:241 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete the transaction log so it is recreated from scratch (all assets will be reprocessed)","Ensure the same bevy/processor version wrote and reads the log","Avoid manually editing the processor log files"],"exampleFix":null,"handlingStrategy":"fallback","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"}