Skip to content

Using "Brightness/Contrast Classic" crashes #3206

@LukeAbby

Description

@LukeAbby

Steps To Reproduce
Describe precisely how the crash occurred, step by step, starting with a new editor window.

  1. Open the Graphite editor at https://editor.graphite.rs
  2. Create a new document
  3. Open the node graph
  4. Create "Brightness/Contract Classic"

Additional Details

Browser and OS
Firefox 143, Windows 10 or 11

Stack Trace

panicked at editor/src/messages/portfolio/document/node_graph/node_properties.rs:1090:55:
index out of bounds: the len is 3 but the index is 3

createPanicManager/<@http://localhost:8080/src/io-managers/panic.ts:9:24
callCallback@http://localhost:8080/src/subscription-router.ts:28:17
handleJsMessage@http://localhost:8080/src/subscription-router.ts:36:5
createEditor/handle<@http://localhost:8080/src/editor.ts:22:19
__wbg_get_imports/imports.wbg.__wbg_call_833bed5770ea2041/<@http://localhost:8080/wasm/pkg/graphite_wasm.js:1385:26
handleError@http://localhost:8080/wasm/pkg/graphite_wasm.js:27:18
__wbg_get_imports/imports.wbg.__wbg_call_833bed5770ea2041@http://localhost:8080/wasm/pkg/graphite_wasm.js:1384:67
graphite_wasm.wasm.__wbg_call_833bed5770ea2041 externref shim@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[36402]:0x1510ff2
graphite_wasm.wasm.js_sys::Function::call2::hff084442be6c2796@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[29610]:0x14a5560
graphite_wasm.wasm.graphite_wasm::editor_api::EditorHandle::send_frontend_message_to_js::h451f3c7244c0a1a1@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[901]:0x5c27f1
graphite_wasm.wasm.std::thread::local::LocalKey<T>::with::h1cdcaad7764e15fa@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[22976]:0x13ae66e
graphite_wasm.wasm.graphite_wasm::panic_hook::h2c3e3b7f2b1bd7a2@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[2126]:0x91f925
graphite_wasm.wasm.core::ops::function::Fn::call::hb035a645e753284f@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[44755]:0x15421f7
graphite_wasm.wasm.std::panicking::rust_panic_with_hook::hc276d0501ad5b954@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[20689]:0x1331cc1
graphite_wasm.wasm.std::panicking::begin_panic_handler::{{closure}}::h23ff416a921468b4@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[24605]:0x13fa5cd
graphite_wasm.wasm.std::sys::backtrace::__rust_end_short_backtrace::h16ab72765b32282d@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[44657]:0x1541e45
graphite_wasm.wasm.__rustc[4794b31dd7191200]::rust_begin_unwind@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[34843]:0x1500ad0
graphite_wasm.wasm.core::panicking::panic_fmt::h41cfed79b2ddbf13@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[34844]:0x1500afd
graphite_wasm.wasm.core::panicking::panic_bounds_check::h7a037824b9c6d60f@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[27976]:0x1478d41
graphite_wasm.wasm.graphite_editor::messages::portfolio::document::node_graph::node_properties::brightness_contrast_properties::h736111e40afa476a@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[2296]:0x96dfba
graphite_wasm.wasm.core::ops::function::Fn::call::h340c140f58af22b1@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[43098]:0x153cddf
graphite_wasm.wasm.graphite_editor::messages::portfolio::document::node_graph::node_properties::generate_node_properties::hddde008dbcd1a9c9@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[739]:0x4f9432
graphite_wasm.wasm.<alloc::vec::Vec<T> as alloc::vec::spec_from_iter_nested::SpecFromIterNested<T,I>>::from_iter::h094952c42e21d447@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[11407]:0x104d6b2
graphite_wasm.wasm.graphite_editor::messages::portfolio::document::node_graph::node_graph_message_handler::NodeGraphMessageHandler::collate_properties::hea53a08f45e847a1@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[599]:0x411836
graphite_wasm.wasm.<graphite_editor::messages::portfolio::document::properties_panel::properties_panel_message_handler::PropertiesPanelMessageHandler as graphite_editor::utility_traits::MessageHandler<graphite_editor::messages::portfolio::document::properties_panel::properties_panel_message::PropertiesPanelMessage,graphite_editor::messages::portfolio::document::properties_panel::properties_panel_message_handler::PropertiesPanelMessageContext>>::process_message::h29140a39c663fa52@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[9266]:0xf6587a
graphite_wasm.wasm.<graphite_editor::messages::portfolio::document::document_message_handler::DocumentMessageHandler as graphite_editor::utility_traits::MessageHandler<graphite_editor::messages::portfolio::document::document_message::DocumentMessage,graphite_editor::messages::portfolio::document::document_message_handler::DocumentMessageContext>>::process_message::h50a34012915fab91@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[431]:0x1e1019
graphite_wasm.wasm.<graphite_editor::messages::portfolio::portfolio_message_handler::PortfolioMessageHandler as graphite_editor::utility_traits::MessageHandler<graphite_editor::messages::portfolio::portfolio_message::PortfolioMessage,graphite_editor::messages::portfolio::portfolio_message_handler::PortfolioMessageContext>>::process_message::h50cc6ea1d3dc379f@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[433]:0x1f134e
graphite_wasm.wasm.graphite_editor::dispatcher::Dispatcher::handle_message::hd6c64f3da602c238@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[1139]:0x6a1ad3
graphite_wasm.wasm.std::thread::local::LocalKey<T>::with::h26b57dc15ecdae86@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[7118]:0xe3de09
graphite_wasm.wasm.graphite_wasm::editor_api::EditorHandle::dispatch::h34375939c2547b3c@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[9033]:0xf49308
graphite_wasm.wasm.editorhandle_onMouseDown@http://localhost:8080/wasm/pkg/graphite_wasm_bg.wasm:wasm-function[9629]:0xf9116d
onMouseDown@http://localhost:8080/wasm/pkg/graphite_wasm.js:772:14
onPointerDown@http://localhost:8080/src/io-managers/input.ts:129:21
action@http://localhost:8080/src/io-managers/input.ts:36:77

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions