Skip to content
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

create imported asset directory if needed #9716

Merged

Conversation

mockersf
Copy link
Member

@mockersf mockersf commented Sep 7, 2023

Objective

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

@mockersf mockersf added the A-Assets Load files from disk to use for things like images, models, and sounds label Sep 7, 2023
@alice-i-cecile alice-i-cecile added this to the 0.12 milestone Sep 7, 2023
@alice-i-cecile alice-i-cecile added the C-Bug An unexpected or incorrect behavior label Sep 7, 2023
Copy link
Member

@cart cart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I swapped out DirBuilder for create_dir_all, which does the same thing with less complexity (we use that elsewhere in bevy_asset).

As I called out in #9715 theres a larger issue here that needs to be solved, but I see no reason not to fix this first.

@cart cart enabled auto-merge September 7, 2023 20:32
@cart cart added this pull request to the merge queue Sep 7, 2023
Merged via the queue into bevyengine:main with commit c8f61c3 Sep 7, 2023
21 checks passed
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants