Closed sagaceilo closed 7 years ago
Changing line 769 to:
if (tree && tree->getNodes())
Fixed problem.
Thank you for the bug report. This is a bug indeed, and your fix is good. I added it to our trunk.
Thank you for quick respone :) I'm glad it helped.
There is similar code here: SqAABBPruner.cpp [ line 521 ]
void AABBPruner::visualize(Cm::RenderOutput& out, PxU32 color) const
{
// ...
if( tree ) // <<<< HERE
{
struct Local
{
static void _Draw(const AABBTreeRuntimeNode* root, const AABBTreeRuntimeNode* node, Cm::RenderOutput& out_)
{
// ...
}
};
//...
Local::_Draw(tree->getNodes(), tree->getNodes(), out);
}
// ...
}
It can be changed to similar check I proposed earlier. Seems like potential bug also. I've never got crash at this code path, but You never know...
Yes, I saw it and fixed both places :)
Thats cool, thanks again ;)
Hello,
I'm getting crash when building visualization buffer. It happens when some object moves (there is a few frames of working debug visualizer, when nothing moves). I'm doing gathering of debugBuffer after fetch with lockRead/unlockRead just to be sure, there is no race.
I'm using newset PhysX 3.4 code.
Callstack:
SqExtendedBucketPruner.cpp [775]
mMainTree seems to be empty : http://i.imgur.com/yZ1DYFS.png