-
Notifications
You must be signed in to change notification settings - Fork 585
Open
Labels
🔨 testingtesting and benchmarkstesting and benchmarks🪳 bugSomething isn't workingSomething isn't working
Description
Describe the bug
cargo test of re_view_spatial fails for main branch at commit f101cbd
To Reproduce
cargo test -p re_view_spatial --all-targets --all-features
Expected behavior
The cargo test of re_view_spatial crate should pass
Screenshots
test test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects ... FAILED
test test_differing_image_sizes ... FAILED
test test_stacking_color_and_seg ... FAILED
test test_mixed_images ... FAILED
test test_not_stacking_color_images ... FAILED
failures:
---- test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: crates/viewer/re_view_spatial/tests/snapshots/spawn_heuristics__detect_and_track_objects_like_scene_2d_view_heuristic.snap
Snapshot: detect_and_track_objects_like_scene_2d_view_heuristic
Source: crates/viewer/re_view_spatial/tests/spawn_heuristics.rs:113
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: recommended_views
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────
1 1 │ ViewSpawnHeuristics {
2 2 │ recommended_views: [
3 3 │ RecommendedView {
4 │+ origin: /3D/camera,
5 │+ query_filter: [
6 │+ "+ $origin/**",
7 │+ ],
8 │+ },
9 │+ RecommendedView {
4 10 │ origin: /segmentation,
5 11 │ query_filter: [
6 12 │ "+ $origin/**",
7 13 │ ],
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects' panicked at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.2/src/runtime.rs:694:13:
snapshot assertion for 'detect_and_track_objects_like_scene_2d_view_heuristic' failed in line 113
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: insta::runtime::assert_snapshot
3: spawn_heuristics::run_heuristics_snapshot_test::{{closure}}
at ./tests/spawn_heuristics.rs:113:9
4: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:580:21
5: re_test_context::TestContext::run
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:539:9
6: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:579:17
7: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
9: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1131:13
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
12: egui::containers::frame::Frame::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:427:19
13: egui::containers::frame::Frame::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:417:9
14: egui::containers::panel::CentralPanel::show_inside_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1129:15
15: egui::containers::panel::CentralPanel::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1161:30
16: egui::containers::panel::CentralPanel::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1141:9
17: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:576:13
18: egui::__run_test_ctx::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:696:9
19: egui::context::Context::run
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/context.rs:819:13
20: egui::__run_test_ctx
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:695:13
21: re_test_context::TestContext::run_in_egui_central_panel
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:575:9
22: spawn_heuristics::run_heuristics_snapshot_test
at ./tests/spawn_heuristics.rs:108:5
23: spawn_heuristics::test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects
at ./tests/spawn_heuristics.rs:135:5
24: spawn_heuristics::test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects::{{closure}}
at ./tests/spawn_heuristics.rs:118:73
25: core::ops::function::FnOnce::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
26: core::ops::function::FnOnce::call_once
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- test_differing_image_sizes stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: crates/viewer/re_view_spatial/tests/snapshots/spawn_heuristics__should_be_two_separate_views_because_differing_sizes.snap
Snapshot: should_be_two_separate_views_because_differing_sizes
Source: crates/viewer/re_view_spatial/tests/spawn_heuristics.rs:113
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: recommended_views
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────
1 1 │ ViewSpawnHeuristics {
2 2 │ recommended_views: [
3 3 │ RecommendedView {
4 │+ origin: /3D/camera,
5 │+ query_filter: [
6 │+ "+ $origin/**",
7 │+ ],
8 │+ },
9 │+ RecommendedView {
4 10 │ origin: /image,
5 11 │ query_filter: [
6 12 │ "+ $origin",
7 13 │ ],
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_differing_image_sizes' panicked at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.2/src/runtime.rs:694:13:
snapshot assertion for 'should_be_two_separate_views_because_differing_sizes' failed in line 113
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: insta::runtime::assert_snapshot
3: spawn_heuristics::run_heuristics_snapshot_test::{{closure}}
at ./tests/spawn_heuristics.rs:113:9
4: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:580:21
5: re_test_context::TestContext::run
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:539:9
6: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:579:17
7: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
9: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1131:13
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
12: egui::containers::frame::Frame::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:427:19
13: egui::containers::frame::Frame::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:417:9
14: egui::containers::panel::CentralPanel::show_inside_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1129:15
15: egui::containers::panel::CentralPanel::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1161:30
16: egui::containers::panel::CentralPanel::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1141:9
17: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:576:13
18: egui::__run_test_ctx::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:696:9
19: egui::context::Context::run
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/context.rs:819:13
20: egui::__run_test_ctx
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:695:13
21: re_test_context::TestContext::run_in_egui_central_panel
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:575:9
22: spawn_heuristics::run_heuristics_snapshot_test
at ./tests/spawn_heuristics.rs:108:5
23: spawn_heuristics::test_differing_image_sizes
at ./tests/spawn_heuristics.rs:153:5
24: spawn_heuristics::test_differing_image_sizes::{{closure}}
at ./tests/spawn_heuristics.rs:142:32
25: core::ops::function::FnOnce::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
26: core::ops::function::FnOnce::call_once
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- test_stacking_color_and_seg stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: crates/viewer/re_view_spatial/tests/snapshots/spawn_heuristics__should_be_a_single_view.snap
Snapshot: should_be_a_single_view
Source: crates/viewer/re_view_spatial/tests/spawn_heuristics.rs:113
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: recommended_views
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────
1 1 │ ViewSpawnHeuristics {
2 2 │ recommended_views: [
3 3 │ RecommendedView {
4 │+ origin: /3D/camera,
5 │+ query_filter: [
6 │+ "+ $origin/**",
7 │+ ],
8 │+ },
9 │+ RecommendedView {
4 10 │ origin: /image,
5 11 │ query_filter: [
12 │+ "+ $origin",
13 │+ ],
14 │+ },
15 │+ RecommendedView {
16 │+ origin: /image/color,
17 │+ query_filter: [
18 │+ "+ $origin/**",
19 │+ ],
20 │+ },
21 │+ RecommendedView {
22 │+ origin: /image/seg,
23 │+ query_filter: [
6 24 │ "+ $origin/**",
7 25 │ ],
8 26 │ },
9 27 │ ],
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_stacking_color_and_seg' panicked at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.2/src/runtime.rs:694:13:
snapshot assertion for 'should_be_a_single_view' failed in line 113
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: insta::runtime::assert_snapshot
3: spawn_heuristics::run_heuristics_snapshot_test::{{closure}}
at ./tests/spawn_heuristics.rs:113:9
4: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:580:21
5: re_test_context::TestContext::run
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:539:9
6: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:579:17
7: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
9: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1131:13
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
12: egui::containers::frame::Frame::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:427:19
13: egui::containers::frame::Frame::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:417:9
14: egui::containers::panel::CentralPanel::show_inside_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1129:15
15: egui::containers::panel::CentralPanel::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1161:30
16: egui::containers::panel::CentralPanel::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1141:9
17: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:576:13
18: egui::__run_test_ctx::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:696:9
19: egui::context::Context::run
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/context.rs:819:13
20: egui::__run_test_ctx
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:695:13
21: re_test_context::TestContext::run_in_egui_central_panel
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:575:9
22: spawn_heuristics::run_heuristics_snapshot_test
at ./tests/spawn_heuristics.rs:108:5
23: spawn_heuristics::test_stacking_color_and_seg
at ./tests/spawn_heuristics.rs:184:5
24: spawn_heuristics::test_stacking_color_and_seg::{{closure}}
at ./tests/spawn_heuristics.rs:175:33
25: core::ops::function::FnOnce::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
26: core::ops::function::FnOnce::call_once
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- test_mixed_images stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: crates/viewer/re_view_spatial/tests/snapshots/spawn_heuristics__four_color_views_and_one_segmentation.snap
Snapshot: four_color_views_and_one_segmentation
Source: crates/viewer/re_view_spatial/tests/spawn_heuristics.rs:113
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: recommended_views
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────
1 1 │ ViewSpawnHeuristics {
2 2 │ recommended_views: [
3 3 │ RecommendedView {
4 │+ origin: /3D/camera,
5 │+ query_filter: [
6 │+ "+ $origin/**",
7 │+ ],
8 │+ },
9 │+ RecommendedView {
4 10 │ origin: /image1,
5 11 │ query_filter: [
6 12 │ "+ $origin/**",
7 13 │ ],
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_mixed_images' panicked at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.2/src/runtime.rs:694:13:
snapshot assertion for 'four_color_views_and_one_segmentation' failed in line 113
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: insta::runtime::assert_snapshot
3: spawn_heuristics::run_heuristics_snapshot_test::{{closure}}
at ./tests/spawn_heuristics.rs:113:9
4: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:580:21
5: re_test_context::TestContext::run
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:539:9
6: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:579:17
7: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
9: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1131:13
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
12: egui::containers::frame::Frame::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:427:19
13: egui::containers::frame::Frame::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:417:9
14: egui::containers::panel::CentralPanel::show_inside_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1129:15
15: egui::containers::panel::CentralPanel::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1161:30
16: egui::containers::panel::CentralPanel::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1141:9
17: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:576:13
18: egui::__run_test_ctx::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:696:9
19: egui::context::Context::run
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/context.rs:819:13
20: egui::__run_test_ctx
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:695:13
21: re_test_context::TestContext::run_in_egui_central_panel
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:575:9
22: spawn_heuristics::run_heuristics_snapshot_test
at ./tests/spawn_heuristics.rs:108:5
23: spawn_heuristics::test_mixed_images
at ./tests/spawn_heuristics.rs:216:5
24: spawn_heuristics::test_mixed_images::{{closure}}
at ./tests/spawn_heuristics.rs:204:23
25: core::ops::function::FnOnce::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
26: core::ops::function::FnOnce::call_once
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
---- test_not_stacking_color_images stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot file: crates/viewer/re_view_spatial/tests/snapshots/spawn_heuristics__should_be_two_separate_views_because_we_cant_stack_color_images.snap
Snapshot: should_be_two_separate_views_because_we_cant_stack_color_images
Source: crates/viewer/re_view_spatial/tests/spawn_heuristics.rs:113
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: recommended_views
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────
1 1 │ ViewSpawnHeuristics {
2 2 │ recommended_views: [
3 3 │ RecommendedView {
4 │+ origin: /3D/camera,
5 │+ query_filter: [
6 │+ "+ $origin/**",
7 │+ ],
8 │+ },
9 │+ RecommendedView {
10 │+ origin: /image,
11 │+ query_filter: [
12 │+ "+ $origin",
13 │+ ],
14 │+ },
15 │+ RecommendedView {
4 16 │ origin: /image/a,
5 17 │ query_filter: [
6 18 │ "+ $origin/**",
7 19 │ ],
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'test_not_stacking_color_images' panicked at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.43.2/src/runtime.rs:694:13:
snapshot assertion for 'should_be_two_separate_views_because_we_cant_stack_color_images' failed in line 113
stack backtrace:
0: __rustc::rust_begin_unwind
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5
1: core::panicking::panic_fmt
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14
2: insta::runtime::assert_snapshot
3: spawn_heuristics::run_heuristics_snapshot_test::{{closure}}
at ./tests/spawn_heuristics.rs:113:9
4: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:580:21
5: re_test_context::TestContext::run
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:539:9
6: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:579:17
7: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
8: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
9: egui::containers::panel::CentralPanel::show_inside_dyn::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1131:13
10: core::ops::function::FnOnce::call_once{{vtable.shim}}
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
11: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/alloc/src/boxed.rs:1966:9
12: egui::containers::frame::Frame::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:427:19
13: egui::containers::frame::Frame::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/frame.rs:417:9
14: egui::containers::panel::CentralPanel::show_inside_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1129:15
15: egui::containers::panel::CentralPanel::show_dyn
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1161:30
16: egui::containers::panel::CentralPanel::show
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/containers/panel.rs:1141:9
17: re_test_context::TestContext::run_in_egui_central_panel::{{closure}}
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:576:13
18: egui::__run_test_ctx::{{closure}}
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:696:9
19: egui::context::Context::run
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/context.rs:819:13
20: egui::__run_test_ctx
at /Users/yang/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/egui-0.33.2/src/lib.rs:695:13
21: re_test_context::TestContext::run_in_egui_central_panel
at /Users/yang/dev/rerun/crates/viewer/re_test_context/src/lib.rs:575:9
22: spawn_heuristics::run_heuristics_snapshot_test
at ./tests/spawn_heuristics.rs:108:5
23: spawn_heuristics::test_not_stacking_color_images
at ./tests/spawn_heuristics.rs:168:5
24: spawn_heuristics::test_not_stacking_color_images::{{closure}}
at ./tests/spawn_heuristics.rs:160:36
25: core::ops::function::FnOnce::call_once
at /Users/yang/.rustup/toolchains/1.88.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/function.rs:250:5
26: core::ops::function::FnOnce::call_once
at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
test_differing_image_sizes
test_mixed_images
test_not_stacking_color_images
test_spatial_view_2d_spawn_heuristics_like_detect_and_track_objects
test_stacking_color_and_seg
test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.49s
error: test failed, to rerun pass `-p re_view_spatial --test spawn_heuristics`
Desktop (please complete the following information):
- OS: macOS Tahoe 26.1
Rerun version
- main branch
Wumpf
Metadata
Metadata
Assignees
Labels
🔨 testingtesting and benchmarkstesting and benchmarks🪳 bugSomething isn't workingSomething isn't working