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

Rendering error when logging empty LineStrip #6959

Open
02alexander opened this issue Jul 22, 2024 · 0 comments
Open

Rendering error when logging empty LineStrip #6959

02alexander opened this issue Jul 22, 2024 · 0 comments
Labels
🪳 bug Something isn't working 🏎️ Quick Issue Can be fixed in a few hours or less 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself

Comments

@02alexander
Copy link
Collaborator

Describe the bug

When logging an empty LineStrip (either 2D or 3D), the viewer throws an error as shown below. If I try logging something after I've logged the LineStrip it keeps printing this error and doesn't do anything else.

[2024-07-22T08:30:51Z ERROR wgpu_core::device::global] Texture::create_view(Id(29,2,vk)) error: Parent texture is invalid or destroyed
[2024-07-22T08:30:51Z WARN  re_renderer::error_handling::wgpu_core_error] unknown error cause cause=InvalidDimension(Zero(Y))
[2024-07-22T08:30:51Z ERROR re_renderer::error_handling::error_tracker] Wgpu validation error 1: Validation Error
    
    Caused by:
        In Device::create_texture
        Dimension Y is zero
    
[2024-07-22T08:30:51Z ERROR re_renderer::error_handling::error_tracker] Wgpu validation error 2: Validation Error
    
    Caused by:
        In Device::create_bind_group
        Texture view Id(5,26,vk) is invalid
          note: texture view = `<Invalid-TextureView label=>`
    
[2024-07-22T08:30:51Z ERROR re_renderer::error_handling::error_tracker] Wgpu validation error 3: Validation Error
    
    Caused by:
        In a RenderPass
          note: encoder = `<CommandBuffer-(11, 1, Vulkan)>`
        In a set_bind_group command
          note: bind group = `<Invalid-BindGroup label=>`
        Bind group Id(35,1,vk) is invalid
    
[2024-07-22T08:30:51Z ERROR re_renderer::error_handling::error_tracker] Wgpu validation error 4: Validation Error
    
    Caused by:
        In Device::create_bind_group
        Texture view Id(5,26,vk) is invalid
          note: texture view = `<Invalid-TextureView label=>`
    
[2024-07-22T08:30:51Z ERROR re_renderer::error_handling::error_tracker] Wgpu validation error 8: Validation Error
    
    Caused by:
        In a RenderPass
          note: encoder = `<CommandBuffer-(26, 1, Vulkan)>`
        In a set_bind_group command
          note: bind group = `<Invalid-BindGroup label=>`
        Bind group Id(35,3,vk) is invalid

// Keeps going forever
...

To Reproduce
Run this code.

use rerun::LineStrip2D;

fn main() {
    let rec = rerun::RecordingStreamBuilder::new("strip-issue").spawn().unwrap();
    let empty_strip: LineStrip2D = Vec::<rerun::Vec2D>::new().into();
    rec.log("strip", &rerun::LineStrips2D::new([empty_strip])).unwrap();
    rec.log("points", &rerun::Points2D::new(&[[0.0, 0.0]])).unwrap();
}

Rerun version
rerun-cli 0.17.0 [rustc 1.76.0 (07dca489a 2024-02-04), LLVM 17.0.6] x86_64-unknown-linux-gnu release-0.17.0 d65ca50, built 2024-07-08T13:47:55Z

@02alexander 02alexander added 🪳 bug Something isn't working 👀 needs triage This issue needs to be triaged by the Rerun team labels Jul 22, 2024
@Wumpf Wumpf added 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself 🏎️ Quick Issue Can be fixed in a few hours or less and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🏎️ Quick Issue Can be fixed in a few hours or less 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

No branches or pull requests

2 participants