[Crash Report] When entering a custom node, going back, and clicking "Preview"

Offen
#4,883 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@HarshithJeevan-pixel arbeitet bereits daran.

Seit 01.11.2026.

  • #4899 von @HarshithJeevan-pixel — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
rust, wasm
Bereich
backend

Rechercherichtung

The panic is at node-graph/graph-craft/src/document.rs:1340, inside NodeNetwork::flatten_with_fns and its merge_ids call, where an index into an empty list fails. Reproduce with the listed steps (custom node, enter, go back, click the Preview breadcrumb) and check the index against the network being flattened. Done means that path no longer panics. Pull request #4899 is already open against this issue, so review it before starting.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the Crash
I was testing out Graphite, created a custom node, entered to check it, went back, and clicked the "preview" button that was at the top.

Steps To Reproduce

  1. Open the Graphite editor at https://dev.graphite.art
  2. Create a new document
  3. Access the node editor
  4. Create a new custom node
  5. Enter the new custom node
  6. Go back to the document through the breadcumbs
  7. Click the "preview" breadcrumb that has appeared

Additional Details

https://github.com/user-attachments/assets/46636c34-38eb-4703-8c77-6fb21ad1731a

Browser and OS
Firefox 158, Linux (Fedora KDE Plasma)

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

panicked at node-graph/graph-craft/src/document.rs:1340:69:
index out of bounds: the len is 0 but the index is 0

gT/<@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:893
cE/n/<@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:8718
l@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:9148
handleFrontendMessage@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:9328
SD/</<@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:71094
fE/__wbg_call_0f2a9af232c18fd2/<@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:27505
nD@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:67114
__wbg_call_0f2a9af232c18fd2@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:27475
graphite_wasm_wrapper.wasm._RNvMsce_CsfjzxnYWWzTW_6js_sysNtB6_8Function5call2Csh0huLRyoJlN_21graphite_wasm_wrapper@:wasm-function[22959]:0x1aa7168
graphite_wasm_wrapper.wasm._RNvCsh0huLRyoJlN_21graphite_wasm_wrapper30send_panic_dialog_via_callback@:wasm-function[13751]:0x17a889f
graphite_wasm_wrapper.wasm._RNSNvYNvCsh0huLRyoJlN_21graphite_wasm_wrapper10panic_hookINtNtNtCs4NIexwV1FGX_4core3ops8function6FnOnceTRNtNtCsiuSwmoQr08c_3std5panic13PanicHookInfoEE9call_once6vtableB6_.llvm.12063721726012553636@:wasm-function[39885]:0x1c88e99
graphite_wasm_wrapper.wasm._RNvNtCsiuSwmoQr08c_3std9panicking15panic_with_hook@:wasm-function[14578]:0x17ed92e
graphite_wasm_wrapper.wasm._RNvNtCs4NIexwV1FGX_4core9panicking9panic_fmt@:wasm-function[27418]:0x1b6a4b4
graphite_wasm_wrapper.wasm._RNvNtCs4NIexwV1FGX_4core9panicking18panic_bounds_check@:wasm-function[24988]:0x1b16047
graphite_wasm_wrapper.wasm._RINvMsf_NtCsaZzBlwpO8Oo_11graph_craft8documentNtB6_11NodeNetwork16flatten_with_fnsNvB6_9merge_idsNvMNtCskNGY3HVocXf_10core_types4uuidNtB1A_6NodeId3newEB8_@:wasm-function[802]:0x4d4c64
graphite_wasm_wrapper.wasm._RNCNvNtCsh0huLRyoJlN_21graphite_wasm_wrapper7helpers16run_node_runtime0B5_.llvm.12571194261365031093@:wasm-function[563]:0x2e504d
graphite_wasm_wrapper.wasm._RNvMNtNtCsfjzxnYWWzTW_6js_sys7futures5queueNtB2_10QueueState7run_all@:wasm-function[13926]:0x17baf3d
graphite_wasm_wrapper.wasm._RNCNvMs0_NtNtCsfjzxnYWWzTW_6js_sys7futures5queueNtB7_5Queue3new0Bb_.llvm.11709802697471517237@:wasm-function[32196]:0x1c0e54b
graphite_wasm_wrapper.wasm._RINvNvNtNtCseso8yOsBrFB_12wasm_bindgen7convert8closuress2_1__6invokeNtB8_7JsValueINtNtCs4NIexwV1FGX_4core6result6ResultuNtB8_7JsErrorEKb1_ECsfjzxnYWWzTW_6js_sys@:wasm-function[24184]:0x1af72bf
mE@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:63658
i@https://dev.graphite.art/assets/index-C2O7cxFU.js:2704:67292
Vorherrschende Sprache
Rust
Sterne
27.8k
Forks
1.3k
Ø Merge
10 Std. 53 Min.
Gemergte PRs (30 T.)
195

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus GraphiteEditor/Graphite

Alle Issues in GraphiteEditor/Graphite

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.