AnimalLogic / AL_USDMaya

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd
Other
266 stars 69 forks source link

Selection change causes Usd_IssueFatalPrimAccessError #119

Closed pilarmolinalopez closed 5 years ago

pilarmolinalopez commented 5 years ago

Changing the selection with AL_usdmaya_ProxyShapeSelect a few times consistently causes Maya to abort.

I've only seen this in maya2019 for now.

This is a stack trace and some debug information:

ProxyShapeSelection::removeUsdTransformChain
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::onSelectionChanged 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::TransformReference::checkRef 1 : 1 0 0
ProxyShapeSelection::SelectionUndoHelper::doIt 0 1
ProxyShapeSelection::removeTransformRefs 1
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::TransformReference::decRef 1 0 0
ProxyShapeSelection::TransformReference::decRefEnd 0 0 0
ProxyShapeSelection::doSelect
ProxyShapeSelection::makeUsdTransformChain_internal
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set/Arch_grp/Kitchen_1/Geom/TileFloor/pPlane218
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set/Arch_grp/Kitchen_1/Geom/TileFloor
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set/Arch_grp/Kitchen_1/Geom
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set/Arch_grp/Kitchen_1
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set/Arch_grp
ProxyShapeSelection::makeUsdTransformChain /Kitchen_set
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=Kitchen_set
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=Arch_grp
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=Kitchen_1
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=Geom
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=TileFloor
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShape::makeUsdTransformChain created transformType=AL_usdmaya_Transform name=pPlane218
ProxyShapeSelection::TransformReference::checkIncRef 0 0 0
ProxyShapeSelection::SelectionUndoHelper::doIt 1 0
ProxyShapeSelection::makeTransformReference /Kitchen_set/Arch_grp/Kitchen_1/Geom/TileFloor/pPlane218
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::TransformReference::incRef 0 0 0
ProxyShapeSelection::TransformReference::incRefEnd 1 0 0
ProxyShapeSelection::removeTransformRefs 0
ProxyShapeSelection::onSelectionChanged 0
Coding Error (secondary thread): in AddXformOp at line 198 of 
./usd/pxr/usd/lib/usdGeom/xformable.cpp -- The xformOp 'xformOp:translate:rotatePivotTranslate'
 already exists in xformOpOrder [[xformOp:translate:translate, xformOp:translate:pivot, 
xformOp:translate:rotatePivotTranslate, xformOp:rotateXYZ:rotate, xformOp:rotateXYZ:rotateAxis, 
xformOp:translate:scalePivotTranslate, xformOp:transform:shear, xformOp:scale:scale, 
!invert!xformOp:translate:pivot]].
Coding Error (secondary thread): in SetXformOpOrder at line 421 of
 ./usd/pxr/usd/lib/usdGeom/xformable.cpp -- XformOp attribute <> does not belong to 
schema prim </Kitchen_set/Arch_grp/Kitchen_1/Geom/TileFloor>.

------------------------ 'maya.bin' is dying ------------------------
maya.bin crashed. FATAL ERROR: Used null prim
in Usd_IssueFatalPrimAccessError at line 243 of ./usd/pxr/usd/lib/usd/primData.cpp
------------------------------------------------------------------
/usr/net/app/autodesk/maya2019-pr95/bin/maya2019: line 188: 29124 Aborted  
/usr/net/app/autodesk/maya2019-pr95/bin/maya.bin

AL_USDMaya 0.29.1 USD 18.09 Maya 2019 CentOS 7.5

murphyeoin commented 5 years ago

Thanks Pilar - we'll be taking a look at this soon as part of our efforts to get Maya 2019 beta stable. Looks very much like the standard Pixar Kitchen Set? And this is from the AL_USDmaya master branch, or latest develop (with your selection changes merged in)? Eoin

pilarmolinalopez commented 5 years ago

Hi Eoin - Yes, this was with the Kitchen Set. Last time I tested this was happening with both, the master branch and your latest develop branch with my code, if I remember correctly. I'm testing today for the first time with the new Maya PR and I'm seeing:

murphyeoin commented 5 years ago

Pilar, sounds like good news! I'll hold off on doing anything til I hear otherwise... Thanks

pilarmolinalopez commented 5 years ago

Sounds good, Eoin. I'll let you know if it happens again, but in pr96 so for so good :)

murphyeoin commented 5 years ago

Will close for now - please reopen if you see again