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
5.69k stars 257 forks source link

Tensor view's `FillKeepAspectRatio` mode is buggy for extremely thin tensors #6695

Open teh-cmc opened 1 week ago

teh-cmc commented 1 week ago

Data disappears and reappears as you hover it or resize the viewer.

https://github.com/rerun-io/rerun/assets/2910679/c708cada-4512-4a6b-bddc-5279780d0c10

Wumpf commented 1 week ago

the description sounds like we're missing a redraw on changing the property, but the capture looks like much more is broken? I can see there's a 1D tensor here, but I don't get that's overdrawn there upon mouse interaction

Not unlikely that aspect ratio is broken in particular for 1D tensor

teh-cmc commented 5 days ago

100% repro:

git checkout main
pixi run -e examples py-build
pixi run -e examples python tests/python/release_checklist/check_1d_tensor_data.py

Go to the tensor view, switch the dimension mapping so that it goes vertical, see that part of the tensor is somehow missing.
The problem gets worse as your window's height grow larger.

image

Wumpf commented 5 days ago

Got a very subtle repro now. Looks like this is the on-hover axis labels not fully showing image