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

PVD crashes when I add a scene query in the scene #358

Open
echnyee opened this issue Nov 4, 2020 · 0 comments
Open

PVD crashes when I add a scene query in the scene #358

echnyee opened this issue Nov 4, 2020 · 0 comments

Comments

@echnyee
Copy link

echnyee commented Nov 4, 2020

PVD version: 3.2019.04.26214843
Physx version: 3.4
I use below interface to find overlapped instances in the scene. it works fine when there is no pvd connected.
but when I want to check the overlap box with pvd, it crashes at the time when I use this interface, below has the stack trace.

virtual bool PxScene::overlap ( const PxGeometry & geometry,
    const PxTransform & pose,
    PxOverlapCallback & hitCall,
    const PxQueryFilterData & filterData = PxQueryFilterData(),
    PxQueryFilterCallback * filterCall = NULL
  )

Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000000100000000 in ?? ()
#1 0x00007f02bfef9187 in physx::Vd::PvdMetaDataBinding::createInstance (this=0x564c8adee608, inStream=..., inData=..., ownerPhysics=...) at ./../../PhysX/src/PvdMetaDataPvdBinding.cpp:866
#2 0x00007f02bfef96e2 in physx::Vd::PvdMetaDataBinding::registrarPhysicsObjectphysx::PxConvexMeshGeometry (this=0x564c8adee608, inStream=..., geom=..., pvd=0x564c7fdbc700) at ./../../PhysX/src/PvdMetaDataPvdBinding.cpp:965
#3 0x00007f02bfefee23 in physx::Vd::PvdMetaDataBinding::sendSceneQueries (this=0x564c8adee608, inStream=..., inScene=..., pvd=0x564c7fdbc700) at ./../../PhysX/src/PvdMetaDataPvdBinding.cpp:2392
#4 0x00007f02bff81c15 in physx::Vd::ScbScenePvdClient::updateSceneQueries (this=0x564c8adee5d0) at ./../../PhysX/src/buffering/ScbScenePvdClient.cpp:1153
#5 0x00007f02bfebbae3 in physx::NpScene::fetchResultsPostContactCallbacks (this=0x564c8adec360) at ./../../PhysX/src/NpScene.cpp:2263
#6 0x00007f02bfebbef8 in physx::NpScene::fetchResults (this=0x564c8adec360, block=true, errorState=0x0) at ./../../PhysX/src/NpScene.cpp:2334

some var info
(gdb) frame 1
#1 0x00007fa6edb19187 in physx::Vd::PvdMetaDataBinding::createInstance (this=0x55dac7122a18, inStream=..., inData=..., ownerPhysics=...) at ./../../PhysX/src/PvdMetaDataPvdBinding.cpp:866
866 ./../../PhysX/src/PvdMetaDataPvdBinding.cpp: No such file or directory.
(gdb) info locals
mass = 3.07977376e-41
localInertia = {column0 = {x = -116508.875, y = 3.07977376e-41, z = -0.00884279609}, column1 = {x = 3.07977376e-41, y = -0.00884285569, z = 3.07977376e-41}, column2 = {x = -4.85515234e+27, y = 4.57916312e-41, z = -78032}}
localCom = {x = 4.59149455e-41, y = -4.90569318e+27, z = 4.57916312e-41}
maxIndices = 0
(gdb) p inData
$1 = (const physx::PxConvexMesh &) @0x55dac7e38e70: {physx::PxBase = {_vptr.PxBase = 0x55dac7e4a5e0, mConcreteType = 12304, mBaseFlags = {mBits = 48061}}, }
(gdb)

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