Far-Beyond-Pulsar/Pulsar-Native

Script editor crash navigating tabs (DLL mode)

Open

#281 opened on Jul 10, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Rust (29 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (348 stars)
PR merge metrics
 (PR metrics pending)

Description

When installed via DLL the script editor crashes navigating tabs when many are open

thread '<unnamed>' (5478342) panicked at /Users/tristanpoland/.cargo/git/checkouts/wgpui-c42402163a03b4ee/98e312e/src/app/entity_map.rs:272:13:
Leases must be ended with EntityMap::end_lease
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread '<unnamed>' (5478342) panicked at /rustc/ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96/library/core/src/panicking.rs:233:5:
panic in a destructor during cleanup
thread caused non-unwinding panic. aborting.
zsh: abort      cargo run --release

To recreate

  • Install the code editor plugin's DLL to a compatible engine version
  • open a handful of scripts in tabs (10 or so)
  • Click around the tabs rapidly and randomly
  • Observe crash

Thoughts

This is likely related to UI state+DLL boundary issues rather than an issue specifically with the code editor

Contributor guide