We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The program throws a segmentation fault on default exit.
To Reproduce Paste the reproduction code snippet below:
#include "co_ecs.hpp" struct s1 { uint32_t i1; uint64_t i2; }; struct s2 { float f1; int i1; }; struct s3 { char c, e; }; void test_create(ecs::registry& reg) { auto a = reg.create<s1, s3>({1, 2}, {92, 93}); auto b = reg.create<s1, s3>({7, 3}, {75, 76}); auto c = reg.create<s2>({}); } int main() { ecs::registry reg; test_create(reg); return 0; }
Observed behavior The segfault is caused by the destructor call inside the destructor of the chunk class. Specifically this line:
block.meta.type->destruct(_buffer + block.offset + i * block.meta.type->size);
Environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The program throws a segmentation fault on default exit.
To Reproduce
Paste the reproduction code snippet below:
Observed behavior
The segfault is caused by the destructor call inside the destructor of the chunk class. Specifically this line:
block.meta.type->destruct(_buffer + block.offset + i * block.meta.type->size);
Environment
The text was updated successfully, but these errors were encountered: