DioxusLabs / dioxus

Fullstack GUI library for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
18.5k stars 704 forks source link

`cannot reclaim ElementId(384)` in `dioxus-core-0.5.1/src/arena.rs:57:32` when redrawing #2343

Open Niedzwiedzw opened 2 weeks ago

Niedzwiedzw commented 2 weeks ago

panicked at /home/niedzwiedz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dioxus-core-0.5.1/src/arena.rs:57:32: cannot reclaim ElementId(384)

again, unable to reproduce in a separate repo despite really trying. I'm porting an app from 0.3.1 to 0.5.0 and it was all working nicely.

Niedzwiedzw commented 2 weeks ago

after commenting out some code randomly in my project I think it happens with component that accepts both inline T prop and a MappedSignal<U> - so mixing signal and non-signal properties

Niedzwiedzw commented 2 weeks ago

another clue - it happens when a pretty large subtree gets ditched - sidebar with bunch of controls gets destroyed