Open ChokmahBinah opened 4 years ago
Filed as internal issue #USD-5921
Thanks @ChokmahBinah -- we don't maintain mtoh here, please file an issue on the Autodesk project page here: https://github.com/Autodesk/maya-usd and hopefully someone there can help you out.
@c64kernal while the crash is reported during the workflow in Maya, we don't have reasons to believe it should be specific to anything in Maya. Let me bring a few details from a long conversation that happened in here.
The crash happens in HdxPrmanRenderDelegate, here is the interesting part from the callstack
Location: libprman.dllRendererBuild + 307B bytes
Module: C:\Program Files\Pixar\RenderManProServer-23.1\lib\libprman.dll (-exported-)
Location: libprman.dllRixGetContextViaRMANTREE + 4A65B bytes
Module: c:\Program Files\USD\plugin\usd\hdxPrman.dll (PDB)
Location: hdxPrman.dllpxrInternal_v0_20__pxrReserved__::HdxPrman_InteractiveContext::End Line 550
Source: c:\usd-master\third_party\renderman-23\plugin\hdxprman\context.cpp (550)
Module: c:\Program Files\USD\plugin\usd\hdxPrman.dll (PDB)
Location: hdxPrman.dllpxrInternal_v0_20__pxrReserved__::HdxPrmanRenderDelegate::~HdxPrmanRenderDelegate Line 76
Source: c:\usd-master\third_party\renderman-23\plugin\hdxprman\renderdelegate.cpp (76)
Module: c:\Program Files\USD\plugin\usd\hdxPrman.dll (PDB)
Location: hdxPrman.dllpxrInternal_v0_20__pxrReserved__::HdxPrmanRenderDelegate::`scalar deleting destructor' + 14 bytes
Module: C:\workspace\install\RelWithDebInfo\lib\maya\mtoh.mll (PDB)
As you can see, the call to PrmanRenderDelegate happens in mtoh and it may have a different pattern than other applications, where it creates and destroys render delegates during its initialization. But there shouldn't be anything wrong in doing so, and render delegate destructor should properly handle it. As we see in the call stack, prman render delegate doesn't like it (not sure what are the expectations around the shared context object which is in the center of this crash).
George - hoping this detail gives you more information and justifies why we asked @ChokmahBinah to contact you. Let me know if you have more questions.
Ah, gotcha, okay thanks for the extra context @kxl-adsk -- yeah there's nothing in the render delegate design that would be prevent you from creating and destroying a render delegate necessarily (depending on what the renderer does, though, this may not be all that great a pattern), though prman may not be tolerant to it. I don't see anything obvious in hdPrman that would need to be fixed to support this. I'll get in touch with the renderman developers to see if they have ideas too.
Thanks for the report @ChokmahBinah, and the context @kxl-adsk and apologies for prematurely closing. We'll report back on this issue if we have any updates.
Hello @c64kernal and @kxl-adsk ,
For all the work around Pixar USD and Maya plugin ;) If I can do anything to help, please let me know :)
Hello everybody, and thank for all the work done around.
Description of Issue
I builted Pixar USD and Maya USD plugin. The AL_USDMayaPlugin or mayaUsdPlugin work fine. (As far as I know) But when loading mtoh.mll Maya often craches. I ask for some help on the Maya USD mailing list. After searching for errors with pfb files, and giving them the maya crash log, they suggested me to ask here. So here I am.
Here is the crash log :
MayaCrashLog200307.0943.log
Steps to Reproduce
System Information (OS, Hardware)
Windows 10 x64 24 Go RAM Intel(R) Core(TM) i7-4790 CPU NVIDIA GeForce GTX 750 Ti
Package Versions
Merge release v20.02
Build Flags
python build_usd.py --prman --prman-location C:\Program Files\Pixar\RenderManProServer-23.1 --alembic --openvdb "C:\Program Files\USD" --build-args boost,"--with-date_time --with-thread --with-system --with-filesystem"
Thank you in advance for your help.
Florian.