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

Switching to Hydra (GL) viewport crashes Maya in refactoring_sandbox branch #68

Closed
BigRoy opened this issue Oct 25, 2019 · 4 comments
Closed

Comments

@BigRoy
Copy link
Contributor

BigRoy commented Oct 25, 2019

Issue

I've just compiled maya-usd with refactoring_sandbox using the latest commit which instantly crashes Maya 2019.2 with a fatal error when switching the viewport to Hydra (GL). This even occurs in an empty new scene.

Maya Crash log:
MayaCrashLog191025.1356.log

I'm not sure where the issue was introduced but it could be with PR #59 which mentions changes to the viewport 2.0 but not explicitly to Hydra.


About 15 days ago I was able to compile the latest of refactoring_sandbox branch at the time and load up the Hydra viewport just fine of which some notes were mentioned here #51

@BigRoy
Copy link
Contributor Author

BigRoy commented Oct 25, 2019

I also noticed this in the Output Window:

#############################################################################
#  VP2_RENDER_DELEGATE_PROXY is overridden to 'true'.  Default is 'false'.  #
#############################################################################
###############################################################################
Begin attempted read of a fragment graph XML file.
Attempting to read fragment XML code from: d:/dev/usd/maya-usd-build/install/RelWithDebInfo/plugin/pxr/maya/plugin/pxrUsdPreviewSurface/resources/usdPreviewSurface.xml
Resolved file path is: d:\dev\usd\maya-usd-build\install\RelWithDebInfo\plugin\pxr\maya\plugin\pxrUsdPreviewSurface\resources\usdPreviewSurface.xml
Attempting to read fragment XML code from a buffer of length 9192
Errors loading XML:
-------------------------------------------------------------------------------
OGS WARNING: The input parameter of a connection 'vectorInput' from fragment 'mayaShaderGeom_Float4GetX' was not found.
OGS WARNING: The input parameter of a connection 'vectorInput' from fragment 'mayaShaderGeom_Float4GetY' was not found.
OGS WARNING: The input parameter of a connection 'vectorInput' from fragment 'mayaShaderGeom_Float4GetZ' was not found.
OGS WARNING: The input parameter of a connection 'vectorInput' from fragment 'mayaShaderGeom_Float4GetW' was not found.
OGS WARNING: The output parameter of a connection 'floatOutput' from fragment 'mayaShaderGeom_Float4GetX' was not found.
OGS WARNING: The output parameter of a connection 'floatOutput' from fragment 'mayaShaderGeom_Float4GetY' was not found.
OGS WARNING: The output parameter of a connection 'floatOutput' from fragment 'mayaShaderGeom_Float4GetZ' was not found.
OGS WARNING: The output parameter of a connection 'floatOutput' from fragment 'mayaShaderGeom_Float4GetW' was not found.
-------------------------------------------------------------------------------
End attempted read of fragment XML.
###############################################################################
Stack trace:
  mtoh.mll!pxrInternal_v0_19__pxrReserved__::MtohRenderOverride::_SelectionChanged Line 694 
  mtoh.mll!pxrInternal_v0_19__pxrReserved__::MtohRenderOverride::_InitHydraResources Line 627 
  mtoh.mll!pxrInternal_v0_19__pxrReserved__::MtohRenderOverride::Render Line 462 
  mtoh.mll!pxrInternal_v0_19__pxrReserved__::HdMayaRender::execute Line 84 
  OpenMayaRender.dll!Autodesk::Maya::OpenMaya20190000::MHWRender::MRenderer::initialize
  OGSMayaBridge.dll!OGSMayaRenderer::performUserOperation
  OGSMayaBridge.dll!OGSMayaRenderer::performOverrideRenderGraph
  OGSMayaBridge.dll!OGSMayaBaseRenderer::performOverrideRender
  OGSMayaBridge.dll!OGSGeometryEvaluationOverride::~OGSGeometryEvaluationOverride
  OGSMayaBridge.dll!OGSGeometryEvaluationOverride::~OGSGeometryEvaluationOverride
  DataModel.dll!TidleRefreshCmd::refreshOGSRender
  DataModel.dll!TidleRefreshCmd::refresh
  DataModel.dll!TidleRefreshCmd::doIt
  ExtensionLayer.dll!TeventHandler::doIdles
  ExtensionLayer.dll!TidleLicenseAction::doIdleAction
  Qt5Core.dll!QObject::event
  Qt5Widgets.dll!QApplicationPrivate::notify_helper
  Qt5Widgets.dll!QApplication::notify
  ExtensionLayer.dll!TwindowManager::windowPreferencesAreEnabled
  Qt5Core.dll!QCoreApplication::notifyInternal2
  Qt5Core.dll!QEventDispatcherWin32::event
  Qt5Widgets.dll!QApplicationPrivate::notify_helper
  Qt5Widgets.dll!QApplication::notify
  ExtensionLayer.dll!TwindowManager::windowPreferencesAreEnabled
  Qt5Core.dll!QCoreApplication::notifyInternal2
  Qt5Core.dll!QCoreApplicationPrivate::sendPostedEvents
  qwindows.dll!qt_plugin_query_metadata
  Qt5Core.dll!QEventDispatcherWin32::processEvents
  USER32.dll!CallWindowProcW
  USER32.dll!DispatchMessageW
  Qt5Core.dll!QEventDispatcherWin32::processEvents
  qwindows.dll!qt_plugin_query_metadata
  Qt5Core.dll!QEventLoop::exec
  Qt5Core.dll!QCoreApplication::exec
  ExtensionLayer.dll!Tapplication::start
  maya.exe!<7FF6081C77A8>
  maya.exe!TiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++
  maya.exe!TiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++
  KERNEL32.DLL!BaseThreadInitThunk
  ntdll.dll!RtlUserThreadStart

And also:
hdMaya_not_found

Missing hdMaya.dll in lib\usd\hdMaya\resources

This last one does seem to hint to what is going on, because indeed hdMaya.dll is not there.

So it's not in: lib\usd\hdMaya\resources\hdMaya.dll
However it does actually exist in: lib\hdMaya.dll

@huidong-chen
Copy link

Thanks for reporting the issue. I am working now for a fix.

@BigRoy
Copy link
Contributor Author

BigRoy commented Oct 25, 2019

Fixed with #79


Note that this warning still shows, but that is not a regression and thus was there before.

Coding Error: in _Load at line 248 of D:\dev\usd\USD\pxr\base\lib\plug\plugin.cpp -- Load of 'd:/dev/usd/maya-usd-build/install/RelWithDebInfo/lib/usd/hdMaya/resources/hdMaya.dll' for 'hdMaya' failed: The specified module could not be found.

@suekieza
Copy link

suekieza commented Nov 4, 2019

linking my issue here as well #98

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