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

Fix re_renderer file watcher watching the same file several times #1463

Merged
merged 1 commit into from Mar 1, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Mar 1, 2023

Bad in general (we do suprisingly often include the same file several times for good reasons) and application killing if something creates a renderpipeline every frame (which due to pooling should be cheap!).

Via Slack discussion: It could be that this is only an issue on some platforms. On my Mac this was game over but it could be that on Linux where these were tested more intensively this is fine.

Checklist

@Wumpf Wumpf added 🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself labels Mar 1, 2023
@@ -25,7 +25,7 @@ impl FileWriter {

re_log::debug!("Saving file to {path:?}…");

let file = std::fs::File::create(&path).with_context(|| format!("Path: {:?}", path))?;
let file = std::fs::File::create(&path).with_context(|| format!("Path: {path:?}"))?;
Copy link
Member

Choose a reason for hiding this comment

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

oh boy... here we go 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

for some reason clippy started complaining here suddenly

Copy link
Member

Choose a reason for hiding this comment

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

Well yes it's the famous "oh god I don't want to fix this one otherwise I'll have to justify why it passes the CI" lol #1447

@Wumpf Wumpf merged commit c31fae6 into main Mar 1, 2023
@Wumpf Wumpf deleted the andreas/re_renderer/fix-multi-watch branch March 1, 2023 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants