rerun-io / rerun

Visualize streams of multimodal data. Free, fast, easy to use, and simple to integrate. Built in Rust.
https://rerun.io/
Apache License 2.0
6.57k stars 334 forks source link

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

Open teh-cmc opened 4 months ago

teh-cmc commented 4 months 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 4 months 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 4 months 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 4 months ago

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