Skip to content

[Crash Report] Crash on canvas click after editing String node with a pinned Number node #4057

@KedroBoss

Description

@KedroBoss

Describe the Crash
The editor crashes when clicked away from an active text input field on a "String Value" (or "Text") node while a "Number Value" node is actively pinned.

Steps To Reproduce

  1. Open the Graphite editor at https://editor.graphite.art
  2. Create new document
  3. Navigate to graph editor
  4. Add the "Number Value" node
  5. Press on the "Pin this node so it's shown here when nothing is selected" button
  6. Add the "String Value" node (Can be the "Text" node as well)
  7. Click on the text editor right to the "String" label
  8. Click anywhere on the node graph

Additional Details
None

Browser and OS
Chrome 147, Unix / Brave Browser, Linux

Stack Trace
Copied from the crash dialog in the Graphite editor:

panicked at editor/src/messages/layout/layout_message_handler.rs:353:30:
Invalid string found when updating `NumberInput`

Error
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:988:1384
    at w (https://editor.graphite.art/assets/index-BPxHMP7l.js:970:73924)
    at Object.handleJsMessage (https://editor.graphite.art/assets/index-BPxHMP7l.js:970:74072)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:970:74496
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:970:14904
    at Ke (https://editor.graphite.art/assets/index-BPxHMP7l.js:969:6188)
    at o.wbg.__wbg_call_833bed5770ea2041 (https://editor.graphite.art/assets/index-BPxHMP7l.js:970:14874)
    at graphite_wasm.wasm._ZN13graphite_wasm10editor_api12EditorHandle27send_frontend_message_to_js17hb921190d4deab3e4E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[807]:0x44c00d)
    at graphite_wasm.wasm._ZN4core3ops8function2Fn4call17hce3f3ec565af54aaE (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[19280]:0xe83259)
    at graphite_wasm.wasm._ZN3std9panicking20rust_panic_with_hook17he3dc6abfb01fb415E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[10755]:0xd5f456)
    at graphite_wasm.wasm._ZN4core9panicking9panic_fmt17h808dbde205a89691E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[15108]:0xdfde2c)
    at graphite_wasm.wasm._ZN15graphite_editor8messages6layout22layout_message_handler20LayoutMessageHandler22handle_widget_callback17h30dac69a81e497d7E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[550]:0x2bae01)
    at graphite_wasm.wasm._ZN301_$LT$graphite_editor..messages..layout..layout_message_handler..LayoutMessageHandler$u20$as$u20$graphite_editor..utility_traits..MessageHandler$LT$graphite_editor..messages..layout..layout_message..LayoutMessage$C$graphite_editor..messages..layout..layout_message_handler..LayoutMessageContext$GT$$GT$15process_message17hf4dcaba4ec9e4f8aE (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[855]:0x4c7e16)
    at graphite_wasm.wasm._ZN3std6thread5local17LocalKey$LT$T$GT$4with17h2ff9d597868cd633E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[4879]:0xaf5517)
    at graphite_wasm.wasm._ZN13graphite_wasm10editor_api12EditorHandle19widget_value_update17h05622066a71b4373E (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[3019]:0x96a615)
    at graphite_wasm.wasm.editorhandle_widgetValueCommitAndUpdate externref shim multivalue shim (https://editor.graphite.art/assets/graphite_wasm_bg-BjpNRPYb.wasm:wasm-function[15111]:0xdfe11c)
    at Q2.widgetValueCommitAndUpdate (https://editor.graphite.art/assets/index-BPxHMP7l.js:970:6185)
    at m (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:59935)
    at Array.P (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:60528)
    at F5.r (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:51922)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:17:966
    at Array.forEach (<anonymous>)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:17:952
    at Dr.f (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:39528)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:17:966
    at Array.forEach (<anonymous>)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:17:952
    at HTMLTextAreaElement.ze (https://editor.graphite.art/assets/index-BPxHMP7l.js:1012:42488)
    at y (https://editor.graphite.art/assets/index-BPxHMP7l.js:14:15645)
    at Object.d (https://editor.graphite.art/assets/index-BPxHMP7l.js:1012:12529)
    at S (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:4710)
    at Object.d (https://editor.graphite.art/assets/index-BPxHMP7l.js:1012:41365)
    at S (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:4710)
    at Object.d (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:39365)
    at S (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:4710)
    at Object.d (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:52211)
    at https://editor.graphite.art/assets/index-BPxHMP7l.js:17:2375
    at sc (https://editor.graphite.art/assets/index-BPxHMP7l.js:14:13570)
    at Array.forEach (<anonymous>)
    at Ct (https://editor.graphite.art/assets/index-BPxHMP7l.js:14:13632)
    at de (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:2214)
    at Object.p (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:57324)
    at Object.p (https://editor.graphite.art/assets/index-BPxHMP7l.js:1015:58930)
    at vu (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:1843)
    at Zt (https://editor.graphite.art/assets/index-BPxHMP7l.js:17:1477)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions