rerun-io / rerun

Visualize streams of multimodal data. Fast, easy to use, and simple to integrate. Built in Rust using egui.
https://rerun.io/
Apache License 2.0
6.13k stars 280 forks source link

The viewer is querying `ClassId` wrongly, leading to warning in `face_tracking` example #3168

Open emilk opened 12 months ago

emilk commented 12 months ago

Try running just py-build && ./examples/python/face_tracking/main.py, then hover the face points in the 2D or 3D view and you'll see:

WARN re_log_types::data_cell] Expected only one rerun.components.ClassId, got 478

This is because fn annotation_info in crates/re_data_ui/src/annotation_context.rs calls query_latest_component which should only be used for mono-components, which ClassId is not.

emilk commented 3 months ago

More details can be found in the duplicate issue:

emilk commented 3 weeks ago

In https://github.com/rerun-io/rerun/pull/6359 this was changed to no longer spam a warning, but the underlying code is still wrong (I believe)