Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'already mutably borrowed: BorrowError': src/plugin/host.rs:359 #21

Open
SamWindell opened this issue Jan 26, 2025 · 0 comments
Open

'already mutably borrowed: BorrowError': src/plugin/host.rs:359 #21

SamWindell opened this issue Jan 26, 2025 · 0 comments

Comments

@SamWindell
Copy link

I'm sporadically getting some panics firing. I'm seeing this on any OS.

Error: 1 [ERROR] thread 'main' panicked at 'already mutably borrowed: BorrowError': src/plugin/host.rs:359
Error: 1 [ERROR] thread 'main' panicked at 'already borrowed: BorrowMutError': src/plugin/host.rs:309
Error: 1 [ERROR] thread 'main' panicked at 'panic in a destructor during cleanup': core/src/panicking.rs:229

Looking at the first error message, it's related to code for checking if there were main thread callbacks requested:

let instances = self.instances.borrow();

A recent change in my plugin is more frequent use of request_callback().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant