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

PhysX GPU SharedMemory Exception #129

Closed
syslot opened this issue May 29, 2019 · 6 comments
Closed

PhysX GPU SharedMemory Exception #129

syslot opened this issue May 29, 2019 · 6 comments

Comments

@syslot
Copy link

syslot commented May 29, 2019

Hi,

Based on the bullet3's source, I load urdf in PhysX. Referring to the snippethellogrb, I load urdf into PhysX. When I call PxScene::simulate, libPhysXGpu.so throws an exception "allocAligned out of sharedMemory" with GPU, while source works well when only use CPU.

Can anyone tell me what causes this problem?

@syslot
Copy link
Author

syslot commented May 29, 2019

Here is the stack.

#0  0x00007ffff0e3ea23 in physx::PxgCudaSolverCore::syncDmaBack(unsigned int&) () from /home/syslot/physx_gpu/libPhysXGpu_64.so
#1  0x00007ffff0e2739e in physx::PxgDynamicsContext::doPostSolveTask(physx::PxBaseTask*) () from /home/syslot/physx_gpu/libPhysXGpu_64.so
#2  0x0000555555e06585 in physx::Cm::Task::run (this=0x555557652e70) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:66
#3  0x0000555555e70964 in physx::Ext::DefaultCpuDispatcher::runTask (this=0x555556a1dca0, task=warning: RTTI symbol not found for class 'physx::PxgPostSolveTask'
...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.h:97
#4  0x0000555555f389d8 in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=warning: RTTI symbol not found for class 'physx::PxgPostSolveTask'
...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:129
#5  0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=warning: RTTI symbol not found for class 'physx::PxgPostSolveTask'
...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#6  0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555557652e70) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#7  0x00005555562ee0bc in physx::Sc::Scene::updateSimulationController (this=0x555556f01820, continuation=0x555556f02d40)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/simulationcontroller/src/ScScene.cpp:2862
#8  0x000055555629c385 in physx::Cm::DelegateTask<physx::Sc::Scene, &physx::Sc::Scene::updateSimulationController>::runInternal (this=0x555556f02de8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:100
#9  0x0000555555e06585 in physx::Cm::Task::run (this=0x555556f02de8) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:66
#10 0x0000555555e70964 in physx::Ext::DefaultCpuDispatcher::runTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.h:97
#11 0x0000555555f389d8 in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:129
#12 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#13 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f02de8) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#14 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f02e20) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#15 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#16 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#17 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f02e20) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#18 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f02db0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#19 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#20 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#21 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f02db0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#22 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f02d78) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#23 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#24 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#25 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f02d78) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#26 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f03050) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#27 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#28 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#29 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f03050) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#30 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f03088) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#31 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#32 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#33 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f03088) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#34 0x000055555623ffc4 in physx::Cm::FanoutTask::release (this=0x555556f02ad0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:228
#35 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#36 0x000055555623fd26 in physx::Cm::FanoutTask::removeReference (this=0x555556f02ad0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:149
#37 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f02a98) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#38 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#39 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#40 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f02a98) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#41 0x00005555562ebef5 in physx::Sc::Scene::advanceStep (this=0x555556f01820, continuation=0x555556f03cc8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/simulationcontroller/src/ScScene.cpp:1918
#42 0x000055555629bc95 in physx::Cm::DelegateTask<physx::Sc::Scene, &physx::Sc::Scene::advanceStep>::runInternal (this=0x555556f034b8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:100
#43 0x0000555555e06585 in physx::Cm::Task::run (this=0x555556f034b8) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:66
#44 0x0000555555e70964 in physx::Ext::DefaultCpuDispatcher::runTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.h:97
#45 0x0000555555f389d8 in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:129
#46 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#47 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f034b8) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#48 0x0000555555e00fb0 in physx::PxLightCpuTask::release (this=0x555556f034f0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:304
#49 0x0000555555f389ef in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:130
#50 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#51 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f034f0) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#52 0x00005555562eabe8 in physx::Sc::Scene::simulate (this=0x555556f01820, timeStep=0.00416666688, continuation=0x555556f03cc8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/simulationcontroller/src/ScScene.cpp:1519
#53 0x0000555556242ab9 in physx::Scb::Scene::simulate (this=0x555556f01810, timeStep=0.00416666688, continuation=0x555556f03cc8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physx/src/buffering/ScbScene.h:251
#54 0x000055555622e5d7 in physx::NpScene::executeScene (this=0x555556f01800, continuation=0x555556f03cc8)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physx/src/NpScene.cpp:2338
#55 0x000055555629a2c9 in physx::Cm::DelegateTask<physx::NpScene, &physx::NpScene::executeScene>::runInternal (this=0x555556f03d58)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:100
#56 0x0000555555e06585 in physx::Cm::Task::run (this=0x555556f03d58) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/common/src/CmTask.h:66
#57 0x0000555555e70964 in physx::Ext::DefaultCpuDispatcher::runTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.h:97
#58 0x0000555555f389d8 in physx::Ext::DefaultCpuDispatcher::submitTask (this=0x555556a1dca0, task=...)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physxextensions/src/ExtDefaultCpuDispatcher.cpp:129
#59 0x00005555560c6776 in physx::PxTaskMgr::decrReference (this=0x555556f11420, lighttask=...) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/task/src/TaskManager.cpp:174
#60 0x0000555555e00f2a in physx::PxLightCpuTask::removeReference (this=0x555556f03d58) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/include/task/PxTask.h:277
#61 0x000055555622d782 in physx::NpScene::simulateOrCollide (this=0x555556f01800, elapsedTime=0.00416666688, completionTask=0x0, scratchBlock=0x0, scratchBlockSize=0,
    controlSimulation=true, invalidCallMsg=0x5555565b64c8 "PxScene::simulate: Simulation is still processing last simulate call, you should call fetchResults()!",
    simStage=physx::Sc::SimulationStage::eADVANCE) at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physx/src/NpScene.cpp:1934
#62 0x000055555622d824 in physx::NpScene::simulate (this=0x555556f01800, elapsedTime=0.00416666688, completionTask=0x0, scratchBlock=0x0, scratchBlockSize=0, controlSimulation=true)
    at /home/syslot/DevSpace/bullet3/src/PhysX/physx/source/physx/src/NpScene.cpp:1941
#63 0x0000555555d6eee3 in PhysXServerCommandProcessor::processForwardDynamicsCommand (this=0x555556a15360, clientCmd=..., serverStatusOut=...,
    bufferServerToClient=0x7ffff393eb60 "BULLETf-v288MBDYp", bufferSizeInBytes=8388608)
    at /home/syslot/DevSpace/bullet3/examples/SharedMemory/physx/PhysXServerCommandProcessor.cpp:2337
#64 0x0000555555d6cacf in PhysXServerCommandProcessor::processCommand (this=0x555556a15360, clientCmd=..., serverStatusOut=...,
    bufferServerToClient=0x7ffff393eb60 "BULLETf-v288MBDYp", bufferSizeInBytes=8388608)
    at /home/syslot/DevSpace/bullet3/examples/SharedMemory/physx/PhysXServerCommandProcessor.cpp:1403
#65 0x0000555555c7c1f1 in PhysicsDirect::submitClientCommand (this=0x555556a17fa0, command=...) at /home/syslot/DevSpace/bullet3/examples/SharedMemory/PhysicsDirect.cpp:1187
#66 0x0000555555cf7748 in b3SubmitClientCommand (physClient=0x555556a17fa0, commandHandle=0x7ffff3921038)
    at /home/syslot/DevSpace/bullet3/examples/SharedMemory/PhysicsClientC_API.cpp:2424
#67 0x0000555555cf7862 in b3SubmitClientCommandAndWaitStatus (physClient=0x555556a17fa0, commandHandle=0x7ffff3921038)
    at /home/syslot/DevSpace/bullet3/examples/SharedMemory/PhysicsClientC_API.cpp:2448
#68 0x0000555555c22f34 in main () at /home/syslot/DevSpace/bullet3/examples/PhysxDemo/PhysxDemoMain.cpp:106

@kstorey-nvidia
Copy link

Thanks. This is a known issue and we already have a fix for it. It should be included in the next PhysX release.

@syslot
Copy link
Author

syslot commented May 29, 2019

Thanks. This is a known issue and we already have a fix for it. It should be included in the next PhysX release.

Thanks for your replying. Can I know the release time for the reason that I need to use this function to continue my project :)

@syslot
Copy link
Author

syslot commented Jun 3, 2019

Thanks. This is a known issue and we already have a fix for it. It should be included in the next PhysX release.

Hi kstorey,

I still wait for your reply about your next release date. If you are not sure about the release time, can you provide a night build version for me to test?

@phcerdan
Copy link

phcerdan commented Nov 5, 2019

I would suggest to enclose the stack reported in the comment: #129 (comment) with the code ticks: ``` . Right now this issue is referencing almost all the other issues due to the #x format in the stack report.

@syslot
Copy link
Author

syslot commented Nov 7, 2019

Thanks for your advise and updated.

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

3 participants