Skip to content

Rust SDK silently drops data in some situations #2627

@emilk

Description

@emilk

Minimal reproduce:

use rerun::{
    components::{ColorRGBA, Point3D},
    time::{TimeType, Timeline},
    MsgSender, RecordingStreamBuilder,
};

fn main() -> anyhow::Result<()> {
    rerun::external::re_log::setup_native_logging();

    let (rec_stream, storage) = RecordingStreamBuilder::new("images").memory()?;
    let timeline = Timeline::new("keyframe", TimeType::Sequence);

    let pt = Point3D {
        x: 1.0,
        y: 1.0,
        z: 1.0,
    };

    MsgSender::new("world/pts")
        .with_time(timeline, 1)
        .with_component(&[pt])?
        .with_splat(ColorRGBA::from_rgb(161, 34, 212))?
        .send(&rec_stream)?;

    rerun::native_viewer::show(storage.take())?;

    Ok(())
}

Results in this:

image

Seems like data is lost somehow. Some flushing that is not being done?

Metadata

Metadata

Assignees

No one assigned

    Labels

    sdk-rustRust logging API🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions