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

Assert in DynamicAABBTree.h #57

Closed
andreasdr opened this issue May 30, 2018 · 6 comments
Closed

Assert in DynamicAABBTree.h #57

andreasdr opened this issue May 30, 2018 · 6 comments
Assignees

Comments

@andreasdr
Copy link

andreasdr commented May 30, 2018

Hi,

i have a new assert which popped up today.

  • Assertion failed: (mNodes[nodeID].isLeaf()), function getNodeDataPointer, file ext/reactphysics3d/src/collision/broadphase/DynamicAABBTree.h, line 285.

I guess it happens after adding/removing a body.

The full backtrace looks like:

(gdb) bt
#0  0x000000080274384a in thr_kill () from /lib/libc.so.7
#1  0x0000000802743814 in raise () from /lib/libc.so.7
#2  0x0000000802743789 in abort () from /lib/libc.so.7
#3  0x00000008027bee61 in __assert () from /lib/libc.so.7
#4  0x0000000000aa69b3 in reactphysics3d::DynamicAABBTree::getNodeDataPointer (this=0x8062ba5b8, nodeID=1141) at DynamicAABBTree.h:285
#5  0x0000000000aa5e7f in reactphysics3d::BroadPhaseAlgorithm::computeOverlappingPairs (this=0x8062ba5b8, memoryManager=@0x8062ba008)
    at ext/reactphysics3d/src/collision/broadphase/BroadPhaseAlgorithm.cpp:285
#6  0x0000000000ac2afa in reactphysics3d::CollisionDetection::computeBroadPhase (this=0x8062ba4b0) at ext/reactphysics3d/src/collision/CollisionDetection.cpp:100
#7  0x0000000000ac2a99 in reactphysics3d::CollisionDetection::computeCollisionDetection (this=0x8062ba4b0) at ext/reactphysics3d/src/collision/CollisionDetection.cpp:77
#8  0x0000000000acf2c6 in reactphysics3d::DynamicsWorld::update (this=0x8062ba000, timeStep=0.0329999998) at ext/reactphysics3d/src/engine/DynamicsWorld.cpp:126
#9  0x00000000005cb043 in tdme::engine::physics::World::update (this=0x8062ba000, deltaTime=0.0329999998) at src/tdme/engine/physics/World.cpp:179
#10 0x0000000000447729 in asw::ASWServerGameLogicThread::run (this=0x80651d070) at src/asw/ASWServerGameLogicThread.cpp:436
#11 0x0000000000831a94 in tdme::os::threading::Thread::pThreadRun (thread=0x80651d070) at src/tdme/os/threading/Thread.cpp:55
#12 0x000000080245abc5 in pthread_create () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()

However if disabling assertions everything works as expected.

Best regards
Andreas

@andreasdr andreasdr changed the title Assert in Assert in DynamicAABBTree.h May 30, 2018
@DanielChappuis
Copy link
Owner

Thanks for reporting this.

I am not able to reproduce this. Do you have some code that I can run with this issue ?

@DanielChappuis DanielChappuis self-assigned this Jun 3, 2018
@andreasdr
Copy link
Author

Hi,

Will try to set some code up. It will take some time though.

Best regards
Andreas

@andreasdr
Copy link
Author

Hi,

is it possible that this dissappeared with fix of #60 or another one? I was not able to reproduce it today.

Many thanx and

Best regards
Andreas

@DanielChappuis
Copy link
Owner

Hi,

Yes, it might be related. Do you have a test where this bug can be reproduced in your code so that I can check if it has been fixed by the patch for bug #60 ?

@andreasdr
Copy link
Author

Hi,

did not come up with a test until now. Wanted to create one today after #60 has been fixed.
Tested with our game. It disappeared. :)

So I guess its gone.

Many thanx and

Best regards
Andreas

@DanielChappuis
Copy link
Owner

Ok thanks. I am closing this issue.

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

2 participants