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

Crash on selection / Import transforms #18

Closed
mrharris opened this issue Aug 14, 2017 · 1 comment
Closed

Crash on selection / Import transforms #18

mrharris opened this issue Aug 14, 2017 · 1 comment

Comments

@mrharris
Copy link

When I click on a proxy mesh in the viewport maya will crash. This happens with all tried viewport modes,

  • viewport2 w/ legacy opengl
  • viewport2 w/ compatibility
  • legacy viewport
  • with and without MAYA_VP2_USE_VP1_SELECTION=1

It also give the same stack trace if I select the ProxyShape and use "Import Transform as Transforms"

CentOS 7
Maya 2017 Update 4
USD 0.8

➜  AL_USDMaya git:(master) ✗ ./setup_environment.sh /usr/local/USD
root:/usr/local/USD
-Updating PATH-
/usr/local/USD/src:/home/boulder/bin:/usr/local/bin:/usr/lib64/qt-3.3/bin:/home/boulder/perl5/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/boulder/bin:/usr/local/USD/bin
-Updating PYTHONPATH-
/usr/local/USD/lib/python:/home/boulder/git/usd-qt-components::/usr/local/USD/lib/python
-Updating LD_LIBRARY_PATH-
/usr/local/USD/lib64:/usr/local/USD/lib:
-Updating MAYA_PLUG_IN_PATH-
/usr/local/USD/plugin:
-Updating MAYA_SCRIPT_PATH-
/usr/local/USD/lib:/usr/local/USD/share/usd/plugins/usdMaya/resources:
-Updating PXR_PLUGINPATH-
/usr/local/USD/share/usd/plugins:

Initialized VP2.0 renderer {
  Version : 2016.3.78.11. Feature Level 4.
  Adapter : Quadro M4000/PCIe/SSE2
  Vendor ID: 4318. Device ID : 
  Driver : 4.5.0 NVIDIA 384.59.
  API : OpenGL V.4.5.
  Max texture size : 16384 * 16384.
  Max tex coords : 8
  Shader versions supported (Vertex: 4, Geometry: 4, Pixel 4).
  Shader compiler profile : (Best card profile)
  Active stereo support available : 0
  GPU Memory Limit : 8192 MB.
  CPU Memory Limit: 30337.5 MB.
MultiDraw consolidation attempted to enable, but the graphics device does not support it.  MultiDraw will be disabled.
}
OpenCL evaluator is attempting to initialize OpenCL.
Detected 1 OpenCL Platforms: 
 0: NVIDIA Corporation. NVIDIA CUDA. OpenCL 1.2 CUDA 9.0.130.
 Supported extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_khr_gl_event cl_nv_create_buffer
OpenCL evaluator choosing OpenCL platform NVIDIA Corporation.
Choosing OpenCL Device Quadro M4000.  Device Type: GPU  Device is available.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

TBB Warning: Max number of workers has been already set to 13. The request for 15 workers is ignored.

maya.bin: /home/boulder/git/AL_USDMaya/lib/AL_USDMaya/AL/usdmaya/nodes/ProxyShapeSelection.cpp:261: void AL::usdmaya::nodes::ProxyShape::makeTransformReference(const pxrInternal_v0_8__pxrReserved__::SdfPath&, const MObject&, AL::usdmaya::nodes::ProxyShape::TransformReason): Assertion `!isRequiredPath(path)' failed.
Stack trace:
  gsignal
  abort
  /lib64/libc.so.6(+0x2e146) [0x7f7bb956f146]
  /lib64/libc.so.6(+0x2e1f2) [0x7f7bb956f1f2]
  AL::usdmaya::nodes::ProxyShape::makeTransformReference(pxrInternal_v0_8__pxrReserved__::SdfPath const&, MObject const&, AL::usdmaya::nodes::ProxyShape::TransformReason)
  AL::usdmaya::nodes::ProxyShape::insertTransformRefs(std::vector<std::pair<pxrInternal_v0_8__pxrReserved__::SdfPath, MObject>, std::allocator<std::pair<pxrInternal_v0_8__pxrReserved__::SdfPath, MObject> > > const&, AL::usdmaya::nodes::ProxyShape::TransformReason)
  AL::usdmaya::nodes::SelectionUndoHelper::doIt()
  AL::usdmaya::cmds::ProxyShapeSelect::redoIt()
  AL::usdmaya::cmds::ProxyShapeSelect::doIt(MArgList const&)
  THcommandObject::doIt(TargList&)
  TmetaCommand::doCommand(TargList&)
  Mel_Command_Dispatch(SphNode*)
  f_function_entry_node
  node_exec
  sophia_call_executable
  SophiaExecutable::evaluate(void*)
  TcommandEngine::executeCommand(Tstring const&, bool, bool, TmelCmdResult*, unsigned int)
  MGlobal::executeCommand(MString const&, MStringArray&, bool, bool)
  AL::usdmaya::nodes::ProxyShapeUI::select(MSelectInfo&, MSelectionList&, MPointArray&) const
  THsurfaceShapeUI::select(TselectInfo&, TselectionList&, T4dDblPointArray&) const
  TselectTraversal::processThisObject(TdagObject*)
  TdrawTraversal::processObject(TdagObject*)
  TselectTraversal::processObject(TdagObject*)
  TfrustumCullTraversal::cull(TdagObject*)
  TfrustumCullTraversal::traverseChildren(TdagObject*, bool)
  TselectTraversal::processThisObject(TdagObject*)
  TdrawTraversal::processObject(TdagObject*)
  TselectTraversal::processObject(TdagObject*)
  TfrustumCullTraversal::cull(TdagObject*)
  TfrustumCullTraversal::traverseDag()
  TdrawTraversal::traverseView(T3dView*, bool)
  TselectTraversal::select(TselectionList&, T4dDblPointArray&)
  TbaseOpenGLRenderer::select(TselectInfo&, bool, TselectionList&, T4dDblPointArray&)
  Tmodel::select(Tpoint const&, TselectionTypeSet const&, bool, bool, TselectionItem*&, T4dDblPoint&, TselectionList*, T4dDblPointArray*, TselectionMethod, bool, bool)
  TselectContext::doClickSelection(Tevent const&)
  TselectContext::doRelease(Tevent const&)
  TselectToolContext::doRelease(Tevent const&)
  TtoolContext::preDoRelease(Tevent const&)
  TstandardContext::preDoRelease(Tevent const&)
  TtoolCallback::doIt(Tevent const&)

Fatal Error. Attempting to save in /usr/tmp/boulder.20170814.1153.ma
Writing crash report in /usr/tmp/boulder.20170814.1153.crash
Killed

@mrharris
Copy link
Author

It looks like this was fixed by this commit eafa133
Thanks!

seando-adsk added a commit to autodesk-forks/AL_USDMaya that referenced this issue Nov 19, 2018
* Adding missing pdb file for new plugin file.
seando-adsk pushed a commit to autodesk-forks/AL_USDMaya that referenced this issue Nov 27, 2018
1. glext.h is not in the devkit anymore, switching files

2. Adding chrono for windows only

3. Adding python libraries to fix link issue

4. MAYA-xxxx Integrating UFE into AL_USDMaya plugin
- Integration of the UFE libraries include cmake lookup and cmake on/off
  variables to enable and disable compilation with UFE
- Integration of a runtime variable to switch on/off UFE selection with
  the plugin
- Integrate UFE selection and disabling creation of proxy nodes for usd
   prim selections

5. Updating runtime id, separator of USD, and adding an added header in the want ufe build ompile

6. Missing header file

7. Merging 0.28.5 into dev-adsk (AnimalLogic#9)

8. Windows build fixes: (AnimalLogic#10)
* Remove treat warnings as errors (/WX)
* Multiline (with \) the C++ options

9. Show the UFE selection in the viewport (AnimalLogic#11)

* Show the UFE selection in the viewport

* When drawing the override, if the env var MAYA_WANT_UFE_SELECTION is
  set get the UFE selection and for the USD items draw them in wireframe
  with the Maya selection color.

* Code review: adding code comments

* Fix spelling mistake

10. Changing PATHS to HINTS in cmake file

11. Windows build fixes (AnimalLogic#13)

* MAYA-93327 - Integrate USD in Maya

* Install the Windows .pdb files.

* Add UFE build define when cmake flag is set.

* Fix relative library path for plugInfo.json files.

* Build schemas/plugInfo.json in binary folder (not source).
  So git status is not dirtied.

* Use UFE_VERSION (instead of hard-coded value) which is set above this
  repo when building.

* When building with UFE, we must have the UFE version defined.

* Code review comments - build ufe major/minor vars in the parent rather
  than child (FindUFE.cmake). This way they are accessible to others.

12. MAYA-93327 - Integrate USD in Maya (AnimalLogic#14)

* RPATH has been deprecated in favor or RUNPATH which is same except
  that it is searched after LD_LIBRARY_PATH. This gives users the ability
  to override the shared libraries.

13. Use local UFE and versioning fix.

14. Convert FindUFE.cmake to LF line endings.

15. Improved USD selection highlighting.

16. MAYA-88299 - Versioning for UFE and API (AnimalLogic#16)

* UFE lib/dll/so/dylib with major only version (no minor).

17. Merging master (0.29.1) into dev-adsk (AnimalLogic#17)

18. MAYA-94776 - Update USD plugin to latest AL branch (AnimalLogic#18)

* Adding missing pdb file for new plugin file.

19. MAYA-94776 - Update 'dev-adsk' to latest 'develop' to get VP2 Selection code (AnimalLogic#19)

20. MAYA-95136 consistent behavior with legacy VP1 selection (AnimalLogic#20)

21. MAYA-94667 deselect USD objs by clicking void area (AnimalLogic#21)

* MAYA-94667 deselect USD objs by clicking void area

* MAYA-94667 code review suggestions

* MAYA-94667 code review suggestion

22. MAYA-95136 selection under complex transform nodes (AnimalLogic#22)

23. MAYA-95391 revert regression change (AnimalLogic#23)

24. MAYA-95391 RMB click shouldn't trigger selection (AnimalLogic#24)

Port the VP1 implementation in ProxyShapeUI::select().

25. MAYA-95322 update bounding box of AL_MayaUSD proxy shape (AnimalLogic#25)

* MAYA-95322 update bounding box of AL_MayaUSD proxy shape

* MAYA-95322 code review feedback

26. Temporary restore alwaysDirty ProxyDrawOrride

(cherry picked from commit 6060036)

MAYA-95165 : Crash when duplicating USD objects

   The regression was introduced by the commit https://git.autodesk.com/autodesk-forks/AL_USDMaya/commit/321be29175a43aa270bb9d50387ac335c0d483d0
   To avoid that problem we cherry-picked the correction from the last
   updates in the develop branch.

27. MAYA-95627 - Update to latest AL develop branch v0.29.4 + USD v18.11

Merge branch 'develop' into donnels/merging_in_develop_0.29.4

28. MAYA-95627 - Update to latest AL develop branch v0.29.4 + USD v18.11

* Fixing merge (of develop branch into dev-adsk) error.

29. MAYA-95627 - Update to latest AL develop branch v0.29.4 + USD v18.11 (AnimalLogic#28)

* Some minor fixes related to merging discovered when trying to merge
  our 'dev-adsk' branch into 'develop'.

30. Comment from initial pull request to AL
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