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

Make Box/AssetVideo/ViewCoordinates/Asset3D eager serialized in Rust #8785

Merged
merged 8 commits into from
Jan 23, 2025

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 23, 2025

Related

What

View coordinates comes with some slight api breakage since we can no longer offer constants for the different orientations.

After this, the only archetypes that haven't migrated are:

  • Image
  • Mesh3D
  • Pinhole

  • passes full check

Copy link

github-actions bot commented Jan 23, 2025

Latest documentation preview deployed successfully.

Result Commit Link
ef4459d https://landing-cwqdx1ibq-rerun.vercel.app/docs

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

Copy link

github-actions bot commented Jan 23, 2025

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

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

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

@teh-cmc
Copy link
Member

teh-cmc commented Jan 23, 2025

@rerun-bot full-check

Copy link

Started a full build: https://github.com/rerun-io/rerun/actions/runs/12927429189

Copy link
Member

@teh-cmc teh-cmc left a comment

Choose a reason for hiding this comment

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

neat

Comment on lines +61 to +62
.downcast_ref::<arrow::array::ListArray>()
.expect("Video blob data is not a ListArray");
Copy link
Member

Choose a reason for hiding this comment

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

Bit unfortunate to risk a panic in a method that already returns a result anyhow?

Copy link
Member Author

Choose a reason for hiding this comment

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

agreed, but the problem is that re_video::VideoLoadError ofc knows nothing about any kind of arrow shenanigans we might be dealing with, which means I'd need to change the error type here or leak things into video load error

Copy link
Member

Choose a reason for hiding this comment

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

You can always have an escape hatch like:

    #[error(transparent)]
    Other(#[from] anyhow::Error),

🤷‍♂️

crates/viewer/re_view_spatial/src/mesh_loader.rs Outdated Show resolved Hide resolved
docs/content/reference/migration/migration-0-22.md Outdated Show resolved Hide resolved
@Wumpf Wumpf merged commit cf16d20 into main Jan 23, 2025
31 checks passed
@Wumpf Wumpf deleted the andreas/rust/more-eager-1 branch January 23, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants