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

Read Access Violation from behaviortree_cppd.dll #869

Open
jerylteo opened this issue Sep 18, 2024 · 0 comments
Open

Read Access Violation from behaviortree_cppd.dll #869

jerylteo opened this issue Sep 18, 2024 · 0 comments

Comments

@jerylteo
Copy link

Running a sample program on VS 2022 v143 C++20 Standard.

"Exception thrown: read access violation." only happens in Debug mode. Release works fine.

Call stack:

behaviortree_cppd.dll!std::_Fnv1a_append_bytes(unsigned __int64 _Val, const unsigned char * const _First, const unsigned __int64 _Count) Line 2301	C++
behaviortree_cppd.dll!std::_Hash_array_representation<char>(const char * const _First, const unsigned __int64 _Count) Line 2335	C++
behaviortree_cppd.dll!std::hash<std::string>::_Do_hash(const std::string & _Keyval) Line 5177	C++
behaviortree_cppd.dll!std::_Conditionally_enabled_hash<std::string,1>::operator()(const std::string & _Keyval) Line 2348	C++
behaviortree_cppd.dll!std::_Uhash_compare<std::string,std::hash<std::string>,std::equal_to<std::string>>::operator()<std::string>(const std::string & _Keyval) Line 146	C++
behaviortree_cppd.dll!std::_Hash<std::_Umap_traits<std::string,std::function<std::unique_ptr<BT::TreeNode,std::default_delete<BT::TreeNode>> __cdecl(std::string const &,BT::NodeConfig const &)>,std::_Uhash_compare<std::string,std::hash<std::string>,std::equal_to<std::string>>,std::allocator<std::pair<std::string const ,std::function<std::unique_ptr<BT::TreeNode,std::default_delete<BT::TreeNode>> __cdecl(std::string const &,BT::NodeConfig const &)>>>,0>>::find<void>(const std::string & _Keyval) Line 1225	C++
behaviortree_cppd.dll!BT::BehaviorTreeFactory::registerBuilder(const BT::TreeNodeManifest & manifest, const std::function<std::unique_ptr<BT::TreeNode,std::default_delete<BT::TreeNode>> __cdecl(std::string const &,BT::NodeConfig const &)> & builder) Line 143	C++
TestBehaviorTree.exe!BT::BehaviorTreeFactory::registerNodeType<SaySomething>(const std::string & ID, const std::unordered_map<std::string,BT::PortInfo,std::hash<std::string>,std::equal_to<std::string>,std::allocator<std::pair<std::string const ,BT::PortInfo>>> & ports) Line 349	C++
TestBehaviorTree.exe!BT::BehaviorTreeFactory::registerNodeType<SaySomething>(const std::string & ID) Line 385	C++
TestBehaviorTree.exe!main() Line 69	C++

Continuation from #868 and #867

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