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

Đang mở
#4,883 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@HarshithJeevan-pixel đang làm issue này rồi.

Từ ngày 1/11/2026.

  • #4899 của @HarshithJeevan-pixel — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust, wasm
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
27.8k
Fork
1.3k
Merge trung bình
10 giờ 53 phút
Pull request đã merge (30 ngày)
195

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GraphiteEditor/Graphite

Tất cả issue của GraphiteEditor/Graphite

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.