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

Aberta
#4,883 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@HarshithJeevan-pixel já está trabalhando nisso.

Desde 1/11/2026.

  • #4899 de @HarshithJeevan-pixel — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
rust, wasm
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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
Linguagem predominante
Rust
Estrelas
27.8k
Forks
1.3k
Merge médio
10h 53min
PRs com merge (30d)
195

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de GraphiteEditor/Graphite

Todas as issues de GraphiteEditor/Graphite

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.