-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset V2 log path not reflects custom asset source #9715
Comments
I was wondering why people were hitting this when I never did during development. Its because the ProcessorTransactionLog "imported_assets" path always matched the configured "imported_assets" path for the AssetWriter (which creates this folder automatically). The @mockersf it is worth ensuring we create the path if it doesn't exist in the ProcessorTransactionLog, but there is a bigger problem here (a mismatch in configured paths for the We'll want a way to ensure these line up appropriately. I intentionally didn't use the I'll give this some thought. I think the solution is either to couple processor logging to AssetWriter (to ensure things are synced up there), or to have a higher level path interface that feeds into both AssetWriter and some ProcessorTransactionLogWriter interface (or just ProcessorTransactionLog directly in the short term). The former is simpler but increases the scope of AssetWriter beyond assets. The latter adds more abstraction. |
# Objective - Related to #9715 - Example `asset_processing` logs the following error: ``` thread 'IO Task Pool (1)' panicked at 'Failed to initialize asset processor log. This cannot be recovered. Try restarting. If that doesn't work, try deleting processed asset folder. No such file or directory (os error 2)', crates/bevy_asset/src/processor/mod.rs:867:25 ``` ## Solution - Create the log directory if needed --------- Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Yup, that's why I didn't mark #9716 as fixing this bug. That seemed a much larger fix needed... |
# Objective - Related to bevyengine#9715 - Example `asset_processing` logs the following error: ``` thread 'IO Task Pool (1)' panicked at 'Failed to initialize asset processor log. This cannot be recovered. Try restarting. If that doesn't work, try deleting processed asset folder. No such file or directory (os error 2)', crates/bevy_asset/src/processor/mod.rs:867:25 ``` ## Solution - Create the log directory if needed --------- Co-authored-by: Carter Anderson <mcanders1@gmail.com>
Bevy version
5eb292d
What you did
Run
cargo run --features="filesystem_watcher" --example asset_processing
What went wrong
I must manually create
imported_assets
dir in project root then example works.The text was updated successfully, but these errors were encountered: