yew: Panic error message: already borrowed: BorrowMutError
After update to 0day version i’ve startedto recieve this error. Its happening here:
fn create_bridge(&mut self, callback: Option<Callback<AGN::Output>>) -> PublicBridge<AGN> {
let respondable = callback.is_some();
let id: usize = self.slab.borrow_mut().insert(callback);
Stack trace:
at __rust_start_panic (wasm-function[1577]:1)
at rust_panic (wasm-function[1571]:31)
at _ZN3std9panicking20rust_panic_with_hook17ha5670d736e99ae94E (wasm-function[1566]:302)
at _ZN3std9panicking18continue_panic_fmt17h0074a0c70d16fab2E (wasm-function[1565]:118)
at rust_begin_unwind (wasm-function[1564]:3)
at _ZN4core9panicking9panic_fmt17h3193bda3e8bc74e4E (wasm-function[1615]:67)
at _ZN4core6result13unwrap_failed17h9c05c57d02ddc984E (wasm-function[1660]:127)
at _ZN3yew5agent22RemoteAgent$LT$AGN$GT$13create_bridge17hf8193481f19ad7f8E (wasm-function[818]:712)
at _ZN3std6thread5local17LocalKey$LT$T$GT$4with17hfd8aaa3058f91029E (wasm-function[769]:1154)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (13 by maintainers)
Commits related to this issue
- Can now reproduce yewstack/yew#679 — committed to alex-caelus/yew_web_worker_borrowmut_panic by alex-caelus 7 years ago
- Merge pull request #1 from alex-caelus/reproduce-error Can now reproduce yewstack/yew#679 — committed to hgzimmerman/yew_web_worker_borrowmut_panic by hgzimmerman 7 years ago
It’s in a webworker context. Not many messages, but perhaps there has been a short (e.g. 1) queue of messages anyway because the webworker do some cpu intensive tasks which keeps it busy. Don’t really know, but here is my stack trace from the main browser thread where the error appears.