Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Crash when opening box.bjk after stylised_sword.bjk #91

Open
krumelmonster opened this issue Jul 10, 2023 · 0 comments
Open

Crash when opening box.bjk after stylised_sword.bjk #91

krumelmonster opened this issue Jul 10, 2023 · 0 comments

Comments

@krumelmonster
Copy link

krumelmonster commented Jul 10, 2023

Opening box.bjk when stylised_sword.bjk or tp_cutter.bjk is open reproducibly results in a crash. Also when opening tp_cutter.bjk while stylised_sword.bjk is open. This is not the case with other combinations or when done the other way around.

This is with an updated mlua #90

$ RUST_BACKTRACE=full cargo run --bin blackjack_ui
    Finished dev [unoptimized + debuginfo] target(s) in 0.25s
     Running `target/debug/blackjack_ui`
MESA-INTEL: warning: Ivy Bridge Vulkan support is incomplete
[Engine] Loading new node definition for MakeIcosahedron
[Engine] Loading new node definition for MakeCatenary
[Engine] Loading new node definition for MakeGrid
[Engine] Loading new node definition for MakeLine
[Engine] Loading new node definition for MakeCylinder
[Engine] Loading new node definition for MakeComment
[Engine] Loading new node definition for MakeLineFromPoints
[Engine] Loading new node definition for MakeCode
[Engine] Loading new node definition for MakeCone
[Engine] Loading new node definition for MakeCircle
[Engine] Loading new node definition for MakeBox
[Engine] Loading new node definition for MakeUVSphere
[Engine] Loading new node definition for MakeTerrain
[Engine] Loading new node definition for MakePolygon
[Engine] Loading new node definition for MakeQuad
[Engine] Loading new node definition for CollapseEdge
[Engine] Loading new node definition for Transform
[Engine] Loading new node definition for BridgeLoops
[Engine] Loading new node definition for MakeQuadFace
[Engine] Loading new node definition for SetMaterial
[Engine] Loading new node definition for SubdivideEdge
[Engine] Loading new node definition for Subdivide
[Engine] Loading new node definition for PointCloud
[Engine] Loading new node definition for ExtrudeFaces
[Engine] Loading new node definition for ChamferVertices
[Engine] Loading new node definition for ExtrudeAlongCurve
[Engine] Loading new node definition for MergeMeshes
[Engine] Loading new node definition for EditGeometry
[Engine] Loading new node definition for RandomizeSize
[Engine] Loading new node definition for ResampleCurve
[Engine] Loading new node definition for CopyToPoints
[Engine] Loading new node definition for EditChannels
[Engine] Loading new node definition for MakeGroup
[Engine] Loading new node definition for SetNormals
[Engine] Loading new node definition for VertexAttribTransfer
[Engine] Loading new node definition for SetFullRangeUVs
[Engine] Loading new node definition for BevelEdges
[Engine] Loading new node definition for CutFace
[Engine] Loading new node definition for ScalarMath
[Engine] Loading new node definition for MakeScalar
[Engine] Loading new node definition for MakeVector
[Engine] Loading new node definition for VectorMath
[Engine] Loading new node definition for ImportObj
[Engine] Loading new node definition for ExportObj
[Engine] Loading new node definition for Point
[Engine] Loading new node definition for Turntable
Error validating WebGPU: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(7, 221, Vulkan)>`
    In a set_scissor_rect command
    Scissor Rect { x: 1904, y: 215, w: 1, h: 16 } is not contained in the render target Extent3d { width: 1904, height: 556, depth_or_array_layers: 1 }
.
thread 'main' panicked at 'invalid SecondaryMap key used', blackjack_ui/src/application/gizmo_ui.rs:153:27
stack backtrace:
   0:     0x55810fdbfcba - std::backtrace_rs::backtrace::libunwind::trace::hb8898e3505dc8f1f
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5
   1:     0x55810fdbfcba - std::backtrace_rs::backtrace::trace_unsynchronized::h243457aa160ba9bf
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
   2:     0x55810fdbfcba - std::sys_common::backtrace::_print_fmt::hc6dface9538a1157
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:65:5
   3:     0x55810fdbfcba - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hc206efb5e9809583
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:44:22
   4:     0x55810fde999f - core::fmt::write::hd8947e10fafbf06f
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/core/src/fmt/mod.rs:1254:17
   5:     0x55810fdbbaf5 - std::io::Write::write_fmt::ha5672c0ddfe75ddf
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/io/mod.rs:1698:15
   6:     0x55810fdbfa85 - std::sys_common::backtrace::_print::h4aec0eb0d7c5e839
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:47:5
   7:     0x55810fdbfa85 - std::sys_common::backtrace::print::h7f32d4a37c5abf06
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:34:9
   8:     0x55810fdc112e - std::panicking::default_hook::{{closure}}::h5086172d4324aebb
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:269:22
   9:     0x55810fdc0ed5 - std::panicking::default_hook::h3a4e4a92cb67fdca
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:288:9
  10:     0x55810fdc168e - std::panicking::rust_panic_with_hook::h3624791a230b2318
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:691:13
  11:     0x55810f19633a - std::panicking::begin_panic::{{closure}}::ha2b2ef5f781a7436
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:611:9
  12:     0x55810f49b9dd - std::sys_common::backtrace::__rust_end_short_backtrace::h057ce7c27d75fe01
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:150:18
  13:     0x55810f196277 - std::panicking::begin_panic::h3c74f35bca3282dc
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:610:12
  14:     0x55810ec24772 - <slotmap::secondary::SecondaryMap<K,V> as core::ops::index::Index<K>>::index::hd8dcf51deb40aecd
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/slotmap-1.0.6/src/secondary.rs:865:21
  15:     0x55810edc7746 - <blackjack_ui::graph::graph_interop::NodeMapping as core::ops::index::Index<egui_node_graph::id_type::NodeId>>::index::h634e5be7798c62e8
                               at /home/jo/repos/blackjack/blackjack_ui/src/graph/graph_interop.rs:41:10
  16:     0x55810eb8d8d7 - blackjack_ui::application::gizmo_ui::UiNodeGizmoStates::to_bjk_data::hd48e6c4fc6d56407
                               at /home/jo/repos/blackjack/blackjack_ui/src/application/gizmo_ui.rs:153:27
  17:     0x55810ebe64d9 - blackjack_ui::application::application_context::ApplicationContext::run_active_node::hf26687f952acb53d
                               at /home/jo/repos/blackjack/blackjack_ui/src/application/application_context.rs:252:26
  18:     0x55810ebe4412 - blackjack_ui::application::application_context::ApplicationContext::update::hca728508ff83f903
                               at /home/jo/repos/blackjack/blackjack_ui/src/application/application_context.rs:86:27
  19:     0x55810ecd07a7 - blackjack_ui::application::RootViewport::update::hb92cf6112bf729b1
                               at /home/jo/repos/blackjack/blackjack_ui/src/application.rs:266:24
  20:     0x55810ec0ffc7 - blackjack_ui::app_window::AppWindow::on_main_events_cleared::hc2348ff7230887af
                               at /home/jo/repos/blackjack/blackjack_ui/src/app_window.rs:66:9
  21:     0x55810ec19170 - blackjack_ui::app_window::AppWindow::run_app::{{closure}}::hbe81fef579e57cbc
                               at /home/jo/repos/blackjack/blackjack_ui/src/app_window.rs:102:45
  22:     0x55810ebf6bf1 - winit::platform_impl::platform::sticky_exit_callback::h65c6bbe20f9a38c1
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/platform_impl/linux/mod.rs:849:9
  23:     0x55810ed33b3e - winit::platform_impl::platform::x11::EventLoop<T>::run_return::single_iteration::h06b681d886d3d67c
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/platform_impl/linux/x11/mod.rs:363:17
  24:     0x55810ed3479a - winit::platform_impl::platform::x11::EventLoop<T>::run_return::hacce8c1ffc37977e
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/platform_impl/linux/x11/mod.rs:488:27
  25:     0x55810ed36eed - winit::platform_impl::platform::x11::EventLoop<T>::run::hf08a2b31b2770721
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/platform_impl/linux/x11/mod.rs:503:25
  26:     0x55810ebf6a4c - winit::platform_impl::platform::EventLoop<T>::run::he3103f7932894a0b
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/platform_impl/linux/mod.rs:755:56
  27:     0x55810ec0f9d7 - winit::event_loop::EventLoop<T>::run::h73287fe3b075faef
                               at /home/jo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.27.3/src/event_loop.rs:278:9
  28:     0x55810ec101a4 - blackjack_ui::app_window::AppWindow::run_app::h31e139ac08511839
                               at /home/jo/repos/blackjack/blackjack_ui/src/app_window.rs:83:9
  29:     0x55810ec81024 - blackjack_ui::main::h6bf83a8a2cd2b8e3
                               at /home/jo/repos/blackjack/blackjack_ui/src/main.rs:53:5
  30:     0x55810eb1323b - core::ops::function::FnOnce::call_once::he3c7dbe827abbf3b
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/core/src/ops/function.rs:250:5
  31:     0x55810ebfe0be - std::sys_common::backtrace::__rust_begin_short_backtrace::hb785f6a3afb66116
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/sys_common/backtrace.rs:134:18
  32:     0x55810ec0ef71 - std::rt::lang_start::{{closure}}::heb21c2615d4ee59d
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/rt.rs:166:18
  33:     0x55810fdb617e - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::h6ea70aac89bcbfc2
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/core/src/ops/function.rs:287:13
  34:     0x55810fdb617e - std::panicking::try::do_call::h6b8e1cc0665d44a1
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:485:40
  35:     0x55810fdb617e - std::panicking::try::he26d924cdd279f41
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:449:19
  36:     0x55810fdb617e - std::panic::catch_unwind::he843f41d28b96510
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panic.rs:140:14
  37:     0x55810fdb617e - std::rt::lang_start_internal::{{closure}}::hca84819b21d2f715
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/rt.rs:148:48
  38:     0x55810fdb617e - std::panicking::try::do_call::h8969cfbf8175ea1b
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:485:40
  39:     0x55810fdb617e - std::panicking::try::h39a32be9f6785bb6
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panicking.rs:449:19
  40:     0x55810fdb617e - std::panic::catch_unwind::h4490a7101c4a8db6
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/panic.rs:140:14
  41:     0x55810fdb617e - std::rt::lang_start_internal::ha1b36c6d32c2fec0
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/rt.rs:148:20
  42:     0x55810ec0ef4a - std::rt::lang_start::h844716d34156200b
                               at /rustc/16ec1c0a8092cf54bc59d0ea9b10d8b50aed42be/library/std/src/rt.rs:165:17
  43:     0x55810ec810ce - main
  44:     0x7f53b92fd850 - <unknown>
  45:     0x7f53b92fd90a - __libc_start_main
  46:     0x55810eae1945 - _start
  47:                0x0 - <unknown>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant