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

Destroying an empty physics world leads to assertion failure (after upgrading to 0.10.0) #377

Closed
superlcr opened this issue Mar 22, 2024 · 2 comments
Assignees
Labels
Milestone

Comments

@superlcr
Copy link

superlcr commented Mar 22, 2024

After upgrading to 0.10.0, destroying a newly created empty world causes an assertion failure:

rp3d::PhysicsCommon common;
auto* world = common.createPhysicsWorld();
common.destroyPhysicsWorld(world);

Assertion failed: (size > 0), function release, file HeapAllocator.cpp, line 220.

#1	0x0000000105429ba4 in reactphysics3d::HeapAllocator::release(void*, unsigned long) at ./reactphysics3d/src/memory/HeapAllocator.cpp:220
#2	0x00000001054236dc in reactphysics3d::Deque<unsigned int>::~Deque() at ./reactphysics3d/include/reactphysics3d/containers/Deque.h:300
#3	0x0000000105423688 in reactphysics3d::Deque<unsigned int>::~Deque() at ./reactphysics3d/include/reactphysics3d/containers/Deque.h:295
#4	0x0000000105423654 in reactphysics3d::EntityManager::~EntityManager() at ./reactphysics3d/include/reactphysics3d/engine/EntityManager.h:42
#5	0x0000000105419fac in reactphysics3d::EntityManager::~EntityManager() at ./reactphysics3d/include/reactphysics3d/engine/EntityManager.h:42
#6	0x000000010541a58c in reactphysics3d::PhysicsWorld::~PhysicsWorld() at ./reactphysics3d/src/engine/PhysicsWorld.cpp:165
#7	0x000000010541b2a4 in reactphysics3d::PhysicsWorld::~PhysicsWorld() at ./reactphysics3d/src/engine/PhysicsWorld.cpp:131
#8	0x00000001054067a4 in reactphysics3d::PhysicsCommon::deletePhysicsWorld(reactphysics3d::PhysicsWorld*) at ./reactphysics3d/src/engine/PhysicsCommon.cpp:260
#9	0x000000010540a730 in reactphysics3d::PhysicsCommon::destroyPhysicsWorld(reactphysics3d::PhysicsWorld*) at ./reactphysics3d/src/engine/PhysicsCommon.cpp:248
@superlcr superlcr changed the title Destroy an empty physics world leads to assertion failed Destroying an empty physics world leads to assertion failed Mar 22, 2024
@superlcr superlcr changed the title Destroying an empty physics world leads to assertion failed Destroying an empty physics world leads to assertion failure Mar 22, 2024
@superlcr superlcr changed the title Destroying an empty physics world leads to assertion failure Destroying an empty physics world leads to assertion failure (after upgrading to 0.10.0) Mar 22, 2024
@DanielChappuis DanielChappuis self-assigned this May 31, 2024
@DanielChappuis DanielChappuis added this to the v0.10.1 milestone May 31, 2024
@DanielChappuis
Copy link
Owner

Thanks a lot for reporting this issue. It has been fixed in the 'develop' branch and this will be released soon.

@DanielChappuis
Copy link
Owner

This issue should now be fixed in release of version v0.10.1. Thanks again for reporting this issue.

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

No branches or pull requests

2 participants