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

Crash when deleting plugins #8

Open
pierreguillot opened this issue Dec 11, 2020 · 0 comments
Open

Crash when deleting plugins #8

pierreguillot opened this issue Dec 11, 2020 · 0 comments

Comments

@pierreguillot
Copy link

I encounter a crash sometimes when deleting plugins, here is the stack (with one of the BBC plugins but it also happens with the Vamp example plugins):

Thread 0 Crashed:: JUCE Message Thread  Dispatch queue: com.apple.main-thread
0   libstdc++.6.dylib             	0x00007fffbff23209 std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&) + 433
1   bbc-vamp-plugins.dylib        	0x0000000105c9d8d9 std::_Rb_tree<void const*, std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*>, std::_Select1st<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> >, std::less<void const*>, std::allocator<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> > >::erase(std::_Rb_tree_iterator<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> >, std::_Rb_tree_iterator<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> >) + 89
2   bbc-vamp-plugins.dylib        	0x0000000105c9d97f std::_Rb_tree<void const*, std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*>, std::_Select1st<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> >, std::less<void const*>, std::allocator<std::pair<void const* const, _VampPlugin::Vamp::PluginAdapterBase::Impl*> > >::erase(void const* const&) + 79
3   bbc-vamp-plugins.dylib        	0x0000000105c9cb45 _VampPlugin::Vamp::PluginAdapterBase::Impl::~Impl() + 309
4   bbc-vamp-plugins.dylib        	0x0000000105c9cf14 _VampPlugin::Vamp::PluginAdapterBase::~PluginAdapterBase() + 36

This seems related to the m_pluginLibraryHandleMap. I load and delete plugins it in a multithread context, do you think that could be the cause?

Tested on Mac OS X 10.12.4, 10.14.6 & 10.15.6

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