Autodesk / maya-usd

A common USD (Universal Scene Description) plugin for Autodesk Maya
772 stars 201 forks source link

Official MayaUSD 0.18 Parent Scope Hard Crashes Maya 2023 Regardless of Scene Complexity. Stack Trace and Video of Crash #2505

Closed ansuter closed 1 month ago

ansuter commented 2 years ago

Describe the bug I want to export with a parent scope (this used to work in 0.8). But when I set it, Maya 2023 crashes. See gif.

//=====================================================
Maya Crash Report
//=====================================================

Exception code: E06D7363:  
Fault address:  12F8474C in C:\WINDOWS\System32\KERNELBASE.dll
0001:0004374C Logical offset (see .map file for location)

Call stack:
    Module:  C:\WINDOWS\SYSTEM32\VCRUNTIME140.dll (-exported-)
    Location: VCRUNTIME140.dll_CxxThrowException + 90 bytes
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\USD\lib\boost_python39-vc141-mt-x64-1_70.dll (-exported-)
    Location: boost_python39-vc141-mt-x64-1_70.dllboost::python::throw_error_already_set + 28 bytes
    Decl: void __cdecl boost::python::throw_error_already_set(void)
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\lib\python\mayaUsd\lib\_mayaUsd.pyd (-exported-)
    Location: _mayaUsd.pydPyInit__mayaUsd + 9D069 bytes
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\lib\python\mayaUsd\lib\_mayaUsd.pyd (-exported-)
    Location: _mayaUsd.pydPyInit__mayaUsd + A07BF bytes
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\lib\mayaUsd.dll (-exported-)
    Location: mayaUsd.dllMayaUsd_v0::utils::saveAnonymousLayer + B612C bytes
    Decl: class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer> __cdecl MayaUsd_v0::utils::saveAnonymousLayer(class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer>,struct Ma
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\lib\mayaUsd.dll (-exported-)
    Location: mayaUsd.dllMayaUsd_v0::utils::saveAnonymousLayer + F6EDB bytes
    Decl: class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer> __cdecl MayaUsd_v0::utils::saveAnonymousLayer(class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer>,struct Ma
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\lib\mayaUsd.dll (-exported-)
    Location: mayaUsd.dllMayaUsd_v0::utils::saveAnonymousLayer + F551F bytes
    Decl: class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer> __cdecl MayaUsd_v0::utils::saveAnonymousLayer(class pxrInternal_v0_21__pxrReserved__::TfRefPtr<class pxrInternal_v0_21__pxrReserved__::SdfLayer>,struct Ma
    Module:  C:\Program Files\Autodesk\MayaUSD\Maya2023\0.18.0_202205050838-e66b81c\mayausd\MayaUSD\plugin\adsk\plugin\mayaUsdPlugin.mll (-exported-)
    Location: mayaUsdPlugin.mllpxrInternal_v0_21__pxrReserved__::UsdMayaImportTranslator::reader + 127AF bytes
    Decl: public: virtual class Autodesk::Maya::OpenMaya20230000::MStatus __cdecl pxrInternal_v0_21__pxrReserved__::UsdMayaImportTranslator::reader(class Autodesk::Maya::OpenMaya20230000::MFileObject const & __ptr64,class Autodesk::Maya::OpenMaya20230000::MString
    Module:  C:\Program Files\Autodesk\Maya2023\bin\OpenMaya.dll (-exported-)
    Location: OpenMaya.dllTpluginFileResolverDBase::remove + BC6 bytes
    Decl: public: static bool __cdecl TpluginFileResolverDBase::remove(class TpluginFileResolver * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTfileTranslator::write + 4F bytes
    Decl: public: int __cdecl TfileTranslator::write(class TsceneFile & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTglobalTranslator::writeFile + 47D bytes
    Decl: public: static bool __cdecl TglobalTranslator::writeFile(class TsceneFile & __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTsceneFile::save + 3EB bytes
    Decl: public: bool __cdecl TsceneFile::save(bool) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTsceneOperator::saveScene + 1988 bytes
    Decl: public: static bool __cdecl TsceneOperator::saveScene(class Tstring & __ptr64,class TsceneFile * __ptr64,bool,bool)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTfileCmd::handleFileExportAllFlag + 25A bytes
    Decl: private: bool __cdecl TfileCmd::handleFileExportAllFlag(class TargDatabase & __ptr64,class TsceneFile * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTfileCmd::handleFlags + 717 bytes
    Decl: protected: bool __cdecl TfileCmd::handleFlags(class TargDatabase & __ptr64,class TsceneFile * __ptr64,class TnamespaceSwapper * __ptr64,class TgraphDiff * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTfileCmd::handleFlags + D4A bytes
    Decl: protected: bool __cdecl TfileCmd::handleFlags(class TargDatabase & __ptr64,class Tstring const & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Shared.dll (-exported-)
    Location: Shared.dllTfileCmd::doCommand + 370 bytes
    Decl: public: virtual bool __cdecl TfileCmd::doCommand(class TargList & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTjournal::operator= + 4F6 bytes
    Decl: public: class Tjournal & __ptr64 __cdecl Tjournal::operator=(class Tjournal const & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 804 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllSophiaExecutable::evaluate + 47 bytes
    Decl: public: union Value * __ptr64 __cdecl SophiaExecutable::evaluate(void * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTcommandEngine::executeCommand + A6 bytes
    Decl: public: int __cdecl TcommandEngine::executeCommand(class SophiaExecutable * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTrepeatCommandManager::getCommandString + F01 bytes
    Decl: public: void __cdecl TrepeatCommandManager::getCommandString(short,class Tstring & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTjournal::operator= + 4F6 bytes
    Decl: public: class Tjournal & __ptr64 __cdecl Tjournal::operator=(class Tjournal const & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 31 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 1AB9 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 728 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 804 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllSophiaExecutable::evaluate + 47 bytes
    Decl: public: union Value * __ptr64 __cdecl SophiaExecutable::evaluate(void * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTcommandEngine::executeCommand + A6 bytes
    Decl: public: int __cdecl TcommandEngine::executeCommand(class SophiaExecutable * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTrepeatCommandManager::getCommandString + 1C33 bytes
    Decl: public: void __cdecl TrepeatCommandManager::getCommandString(short,class Tstring & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTjournal::operator= + 4F6 bytes
    Decl: public: class Tjournal & __ptr64 __cdecl Tjournal::operator=(class Tjournal const & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 728 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + E50 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 728 bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 804 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllSophiaExecutable::evaluate + 47 bytes
    Decl: public: union Value * __ptr64 __cdecl SophiaExecutable::evaluate(void * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTcommandEngine::executeCommand + 3FC bytes
    Decl: public: int __cdecl TcommandEngine::executeCommand(class Tstring const & __ptr64,bool,bool,class TmelCmdResult * __ptr64,unsigned int) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTscriptActionMixin::execute + 1F7 bytes
    Decl: protected: bool __cdecl TscriptActionMixin::execute(class Tevent const & __ptr64,class std::unique_ptr<class TinterpreterResult,struct std::default_delete<class TinterpreterResult> > * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTrunTimeCommand::doCommand + CC bytes
    Decl: public: virtual bool __cdecl TrunTimeCommand::doCommand(class TargList & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTjournal::operator= + 4F6 bytes
    Decl: public: class Tjournal & __ptr64 __cdecl Tjournal::operator=(class Tjournal const & __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllsetMelGlobalStackLevelPtr + 21C bytes
    Decl: void __cdecl setMelGlobalStackLevelPtr(unsigned int (__cdecl*)(void))
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 6A0 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllfexec + 804 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllSophiaExecutable::evaluate + 47 bytes
    Decl: public: union Value * __ptr64 __cdecl SophiaExecutable::evaluate(void * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\CommandEngine.dll (-exported-)
    Location: CommandEngine.dllTcommandEngine::executeCommand + 3FC bytes
    Decl: public: int __cdecl TcommandEngine::executeCommand(class Tstring const & __ptr64,bool,bool,class TmelCmdResult * __ptr64,unsigned int) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTscriptActionMixin::execute + 1F7 bytes
    Decl: protected: bool __cdecl TscriptActionMixin::execute(class Tevent const & __ptr64,class std::unique_ptr<class TinterpreterResult,struct std::default_delete<class TinterpreterResult> > * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTaction::performAction + C8 bytes
    Decl: private: void __cdecl Taction::performAction(class Tevent const & __ptr64,char const * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTaction::doIt + 39 bytes
    Decl: public: void __cdecl Taction::doIt(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQObject::qt_static_metacall + 1467 bytes
    Decl: private: static void __cdecl QObject::qt_static_metacall(class QObject * __ptr64,enum QMetaObject::Call,int,void * __ptr64 * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQAction::activate + 10F bytes
    Decl: public: void __cdecl QAction::activate(enum QAction::ActionEvent) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQMenu::actionGeometry + 4F8 bytes
    Decl: public: class QRect __cdecl QMenu::actionGeometry(class QAction * __ptr64)const __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQMenu::actionGeometry + 2D3 bytes
    Decl: public: class QRect __cdecl QMenu::actionGeometry(class QAction * __ptr64)const __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQMenu::mouseReleaseEvent + B1 bytes
    Decl: protected: virtual void __cdecl QMenu::mouseReleaseEvent(class QMouseEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQWidget::event + 132 bytes
    Decl: protected: virtual bool __cdecl QWidget::event(class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQMenu::event + E7 bytes
    Decl: protected: virtual bool __cdecl QMenu::event(class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::notify_helper + 110 bytes
    Decl: public: bool __cdecl QApplicationPrivate::notify_helper(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplication::notify + 750 bytes
    Decl: public: virtual bool __cdecl QApplication::notify(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllQmayaApplication::currentSystemMouseButtons + 671 bytes
    Decl: public: static class QFlags<enum Qt::MouseButton> __cdecl QmayaApplication::currentSystemMouseButtons(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::notifyInternal2 + BA bytes
    Decl: private: static bool __cdecl QCoreApplication::notifyInternal2(class QObject * __ptr64,class QEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::sendMouseEvent + 3C5 bytes
    Decl: public: static bool __cdecl QApplicationPrivate::sendMouseEvent(class QWidget * __ptr64,class QMouseEvent * __ptr64,class QWidget * __ptr64,class QWidget * __ptr64,class QWidget * __ptr64 * __ptr64,class QPointer<class QWidget> & __ptr64,bool,bool)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQSizePolicy::QSizePolicy + 26FA bytes
    Decl: public: __cdecl QSizePolicy::QSizePolicy(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQSizePolicy::QSizePolicy + CBE bytes
    Decl: public: __cdecl QSizePolicy::QSizePolicy(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplicationPrivate::notify_helper + 110 bytes
    Decl: public: bool __cdecl QApplicationPrivate::notify_helper(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Widgets.dll (-exported-)
    Location: Qt5Widgets.dllQApplication::notify + 18B3 bytes
    Decl: public: virtual bool __cdecl QApplication::notify(class QObject * __ptr64,class QEvent * __ptr64) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllQmayaApplication::currentSystemMouseButtons + 671 bytes
    Decl: public: static class QFlags<enum Qt::MouseButton> __cdecl QmayaApplication::currentSystemMouseButtons(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::notifyInternal2 + BA bytes
    Decl: private: static bool __cdecl QCoreApplication::notifyInternal2(class QObject * __ptr64,class QEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Gui.dll (-exported-)
    Location: Qt5Gui.dllQGuiApplicationPrivate::processMouseEvent + 936 bytes
    Decl: public: static void __cdecl QGuiApplicationPrivate::processMouseEvent(class QWindowSystemInterfacePrivate::MouseEvent * __ptr64)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Gui.dll (-exported-)
    Location: Qt5Gui.dllQWindowSystemInterface::sendWindowSystemEvents + 90 bytes
    Decl: public: static bool __cdecl QWindowSystemInterface::sendWindowSystemEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQEventDispatcherWin32::processEvents + 6A bytes
    Decl: public: virtual bool __cdecl QEventDispatcherWin32::processEvents(class QFlags<enum QEventLoop::ProcessEventsFlag>) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\plugins\platforms\qwindows.dll (-exported-)
    Location: qwindows.dllqt_plugin_query_metadata + 1F99 bytes
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQEventLoop::exec + 1BC bytes
    Decl: public: int __cdecl QEventLoop::exec(class QFlags<enum QEventLoop::ProcessEventsFlag>) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\Qt5Core.dll (-exported-)
    Location: Qt5Core.dllQCoreApplication::exec + 154 bytes
    Decl: public: static int __cdecl QCoreApplication::exec(void)
    Module:  C:\Program Files\Autodesk\Maya2023\bin\ExtensionLayer.dll (-exported-)
    Location: ExtensionLayer.dllTapplication::start + E5 bytes
    Decl: public: void __cdecl Tapplication::start(void) __ptr64
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 1490 bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 17E47 bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\Program Files\Autodesk\Maya2023\bin\maya.exe (-exported-)
    Location: maya.exeTiteratorWrapperFwd<TscenePartitions::ConstIteratorDescriptor,TiteratorWrapper<TscenePartitions::ConstIteratorDescriptor> >::operator++ + 16F7A bytes
    Decl: public: class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> & __ptr64 __cdecl TiteratorWrapperFwd<struct TscenePartitions::ConstIteratorDescriptor,class TiteratorWrapper<struct TscenePartitions::ConstIteratorDescriptor> >::operator++
    Module:  C:\WINDOWS\System32\KERNEL32.DLL (-exported-)
    Location: KERNEL32.DLLBaseThreadInitThunk + 10 bytes
    Module:  C:\WINDOWS\SYSTEM32\ntdll.dll (-exported-)
    Location: ntdll.dllRtlUserThreadStart + 2B bytes
End of stack

//crash log file name = C:\Users\ansuter\AppData\Local\Temp\MayaCrashLog220726.1526.log
//version     = 23.0.0.1294
//cut            =  02/16/2022, 202202161415
//current scene = unDisclosed
//command history (most recent last):
//====================================================
//last tool: renderWindowSelectContextItem
//====================================================
//panel with focus: scriptEditorPanel1
//visible panels:
// modelPanel4 outlinerPanel1 scriptEditorPanel1 
//====================================================
//Memory usage:
// 101186.066 Mb    Free Memory
// 118040.668 Mb    Free Swap
// 2315.070 Mb  Current

//====================================================

A clear and concise description of what the bug is.

  1. Create Cube
  2. File->export
  3. Plug: Arnold
  4. Parent scope: 'root'
  5. Animation Data checked
  6. Export

Expected behavior Either for it not to crash Maya and give me an error or to have the behavior it had before.

Attachments crash2

Specs (if applicable): Official MayaUSD 0.18 build

Additional context Add any other context about the problem here.

ansuter commented 2 years ago

added stack trace and gif. repro in 2023.1 (mtoa 5.1.2)

ansuter commented 2 years ago

Possible workaround to prevent hard crashes. Ignore parent scope, and edit in post.

    def rescope_to_parent(self, parent_scope="/root"):
        # https://github.com/Autodesk/maya-usd/issues/2505 - bug. Otherwise we wouldn't need this
        self._require_file_overwrite = True
        namespace_edit = Sdf.BatchNamespaceEdit()

        # there's no way to avoid this. we have to reparent everything
        for prim in self.usd_stage.TraverseAll():
            parent_path = prim.GetParent().GetPath()
            if str(parent_path) != '/':
                continue
            # /mesh1 -> /root/mesh1
            prim_path = str(prim.GetPath())
            namespace_edit.Add(prim_path, parent_scope + prim_path)

        # https://github.com/PixarAnimationStudios/USD/blob/dc710925675f7f58f7a37f6c18d046a687b09271/pxr/usd/sdf/testenv/testSdfBatchNamespaceEdit.py
        def Has(layer, path):
            return bool(layer.GetObjectAtPath(path))

        root_prim = self.usd_stage.DefinePrim(parent_scope, "Scope")
        layer = self.usd_stage.GetRootLayer()
        has_object = lambda p: Has(layer, p)
        can_edit   = lambda e: True
        results = namespace_edit.Process(has_object, can_edit)
        can_apply = layer.CanApply(namespace_edit)
        log.info(f'Applying Sdf Edits: {can_apply}. {results}')
        layer.Apply(namespace_edit)
ansuter commented 2 years ago

MtoA 5.2+ appears to fix this issue.

ansuter commented 2 years ago

Oddly hitting this again. MayaUSD 0.18, mtoa 5.2

santosg87 commented 2 years ago

@santosg87 could you restest this and make sure if its still happening on our side again.

santosg87 commented 1 month ago

closing this one, as i cannot reproduce it anymore. we have made improvements to the plugin export as well. :)