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 not handling empty line strips in the viewer #8653

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 10, 2025

Related

What

Adds a regression test for this so this doesn't happen again (this is vaguely familiar, I think this happened before) - which we can finally do now because we very recently ensured that we always have a (software) graphics device on ci \o/
Testing this directly in re_renderer required a little bit of new test framework, but it's fairly compact and unifies a bit of code we already had in the viewer.

@Wumpf Wumpf added 🪳 bug Something isn't working 📺 re_viewer affects re_viewer itself include in changelog labels Jan 10, 2025
Copy link

github-actions bot commented Jan 10, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
18fe4cb https://rerun.io/viewer/pr/8653 +nightly +main

Note: This comment is updated whenever you push a commit.

@@ -343,7 +343,7 @@ impl LineDrawData {

let line_renderer = ctx.renderer::<LineRenderer>();

if strips_buffer.is_empty() {
if strips_buffer.is_empty() || vertices_buffer.is_empty() {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is the actual fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working include in changelog 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Viewer fails rendering scenes with zero length linestrips
1 participant