manuelito
Hi there!

I don't know if anyone encountered this issue yet. But when I load Maya 2017 in batch mode and try to load the SOuP plugin Maya crashes with following stack trace:
Code:
Stack trace:
  Base.dll!awDebugDraw::loadIFace
  Base.dll!awString::IString::convertFromMultibyte
  Base.dll!awString::IString::IString
  Foundation.dll!Tstring_toAWIString
  Foundation.dll!Tstring::doSubstitute
  CommandEngine.dll!TpythonInterpreter::executeCommand
  OpenMaya.dll!MGlobal::executePythonCommand
  SOuP.mll!initializePlugin
  OpenMaya.dll!Tplugin::primaryLoad
  OpenMaya.dll!Tplugin::load
  OpenMaya.dll!TpluginPref::~TpluginPref
  OpenMaya.dll!TpluginPref::~TpluginPref
  OpenMaya.dll!TpluginPref::~TpluginPref
  CommandEngine.dll!TpythonInterpreter::dispatchMayaCommand
  python27.dll!PyCFunction_Call
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyFunction_SetClosure
  python27.dll!PyObject_Call
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyRun_FileExFlags
  python27.dll!PyRun_InteractiveOneFlags
  python27.dll!PyRun_InteractiveLoopFlags
  python27.dll!PyRun_AnyFileExFlags
  python27.dll!Py_Main
  KERNEL32.DLL!BaseThreadInitThunk
  ntdll.dll!RtlUserThreadStart

In this case, I launched mayapy, imported pymel and called:

Code:
pm.loadPlugin('<path_to_SOuP_plugin>/SOuP.mll')


I tested with versions 2016_09_04 and 2016_10_08. Same story.

And this happens systematically.

Greets,
Carlo
Quote 0 0
pshipkov
Is this vanilla Maya ?
Python call shouldn't crash Maya, since it is well insulated.
Can you provide some more details ?
Particular scene, or across the board ?
Quote 0 0
manuelito
Hi!

This is just Maya out-of-the-box (Update 1). Vanilla? Did I miss something?

No particular script.

I'm running on Windows 10 (latest anniversary update).

Here is just my entire cmd content without any special env var setup:
Code:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
C:\Users\carlog>set MAYA_MODULE_PATH=\\Nwave\applications\external\add-ons\SOuP\2016_10_08;
C:\Users\carlog>set MAYA_PLUG_IN_PATH=\\Nwave\applications\external\add-ons\SOuP\2016_10_08\plug-ins\maya2017_win;
C:\Users\carlog>"C:\Program Files\Autodesk\Maya2017\bin\mayapy.exe"
Python 2.7.11 (default, Dec 21 2015, 22:48:54) [MSC v.1700 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pymel.core as pm
pymel.core : INFO : Updating pymel with pre-loaded plugins: renderSetup
Warning: file: C:/Program Files/Autodesk/Maya2017/scripts/startup/initialStartup.mel line 179: Y-axis is already the Up-axis
>>> pm.loadPlugin("SOuP.mll")
SOuP AcOct  3 2016 Peter Shipkov.
This software is provided with absolutely no warranty.
It can be used for commercial projects but cannot be
modified and/or redistributed.
UprezFluid utilizes the WT library by Theodore Kim and Nils Thuerey.
Bmesh is based on the B-Mesh project by Evan Wallace, Justin Ardini, Lance Jabr.
AudioToArray is based on the Audio Analysis project by Vincent Houze.
Tetrahedralize utilizes TetGen, Predicates and PoissonRecon libraries by Hang Si, Jonathan Shewchuk, Michael Kazhdan and Matthew Bolitho.
Stack trace:
  Base.dll!awDebugDraw::loadIFace
  Base.dll!awString::IString::convertFromMultibyte
  Base.dll!awString::IString::IString
  Foundation.dll!Tstring_toAWIString
  Foundation.dll!Tstring::doSubstitute
  CommandEngine.dll!TpythonInterpreter::executeCommand
  OpenMaya.dll!MGlobal::executePythonCommand
  SOuP.mll!initializePlugin
  OpenMaya.dll!Tplugin::primaryLoad
  OpenMaya.dll!Tplugin::load
  OpenMaya.dll!TpluginPref::~TpluginPref
  OpenMaya.dll!TpluginPref::~TpluginPref
  OpenMaya.dll!TpluginPref::~TpluginPref
  CommandEngine.dll!TpythonInterpreter::dispatchMayaCommand
  python27.dll!PyCFunction_Call
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyFunction_SetClosure
  python27.dll!PyObject_Call
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_GetFuncDesc
  python27.dll!PyEval_EvalFrameEx
  python27.dll!PyEval_EvalCodeEx
  python27.dll!PyRun_FileExFlags
  python27.dll!PyRun_InteractiveOneFlags
  python27.dll!PyRun_InteractiveLoopFlags
  python27.dll!PyRun_AnyFileExFlags
  python27.dll!Py_Main
  KERNEL32.DLL!BaseThreadInitThunk
  ntdll.dll!RtlUserThreadStart
Result: untitled.ma
Fatal Error. Attempting to save in C:/Users/carlog/AppData/Local/Temp/carlog.20161118.1702.ma
C:\Users\carlog>

Hope this helps a bit more.

Greets,
Carlo
Quote 0 0
manuelito
Interesting, seems to work when I don't use the Python interpreter but just mayabatch:

Code:

C:\Users\carlog>"C:\Program Files\Autodesk\Maya2017\bin"\mayabatch -command "loadPlugin \"SOuP.mll\";createNode transform;"
Result: untitled

SOuP ┬⌐Oct  3 2016 Peter Shipkov.
This software is provided with absolutely no warranty.
It can be used for commercial projects but cannot be
modified and/or redistributed.

UprezFluid utilizes the WT library by Theodore Kim and Nils Thuerey.
Bmesh is based on the B-Mesh project by Evan Wallace, Justin Ardini, Lance Jabr.
AudioToArray is based on the Audio Analysis project by Vincent Houze.
Tetrahedralize utilizes TetGen, Predicates and PoissonRecon libraries by Hang Si, Jonathan Shewchuk, Michael Kazhdan and Matthew Bolitho.

Warning: line 1: Loading plug-in "SOuP" has resulted in changes to the scene that may need to be saved.
Result: transform1

C:\Users\carlog>

or mayabatch -prompt:
Code:

C:\Users\carlog>"C:\Program Files\Autodesk\Maya2017\bin"\mayabatch -prompt
Result: untitled
mel: loadPlugin SOuP.mll
SOuP ┬⌐Oct  3 2016 Peter Shipkov.
This software is provided with absolutely no warranty.
It can be used for commercial projects but cannot be
modified and/or redistributed.
UprezFluid utilizes the WT library by Theodore Kim and Nils Thuerey.
Bmesh is based on the B-Mesh project by Evan Wallace, Justin Ardini, Lance Jabr.
AudioToArray is based on the Audio Analysis project by Vincent Houze.
Tetrahedralize utilizes TetGen, Predicates and PoissonRecon libraries by Hang Si, Jonathan Shewchuk, Michael Kazhdan and Matthew Bolitho.
Warning: line 1: Loading plug-in "SOuP" has resulted in changes to the scene that may need to be saved.
Result: SOuP
mel:

Greets,
Carlo
Quote 0 0
pshipkov
Thanks. Will investigate.
Quote 0 0
pshipkov
Maya 2017, Fedora 23, latest SOuP.
Cannot get it to crash in mayapy.
Anyone else seeing this problem ?
Quote 0 0
manuelito
Hi!

On our render farm (CentOS 7.2) this does not happen neither. Sounds like an OS linked issue.

Greets,
Carlo
Quote 0 0
JayT

Hello,

We are having the same issue trying to run mayapy.exe and loading the SOuP plugin, getting pretty much the same stack trace error.

We are using:
Maya 2016 Extension 2 (2016.5) (plain out-of-the-box install)
Windows 7 Professional (64-bit)
SOuP 2017_02_27
(same error on previous SOuP versions 2016_10_08)

We find running in mayabatch works as well, so seems the issue is with the Python interpreter mayapy and windows?
Looking forward to a fix for this.

Kind regards,
Jay

Code:

//=====================================================
Maya Crash Report
//=====================================================
Exception code: C00000FD: STACK_OVERFLOW 
Fault address:  DEFB7357 in C:\Program Files\Autodesk\Maya2016.5\bin\Base.dll
0001:000A6357 Logical offset (see .map file for location)
Call stack:
(11) section:offset 0001:000A6357 Address: 0xDEFB7357 Frame: 0x001FC920
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Base.dll (-exported-)
  Location: awDebugDraw::loadIFace + 0x8E7 bytes
  Decl: class awDebugDraw::BaseIFace * ptr64 awDebugDraw::loadIFace(char const * ptr64)
  Source:  (0)
(12) section:offset 0001:00072CC2 Address: 0xDEF83CC2 Frame: 0x001FC980
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Base.dll (-exported-)
  Location: awString::IString::convertFromMultibyte + 0xD2 bytes
  Decl: private: void awString::IString::convertFromMultibyte(char const * ptr64,enum awString::Encoding,bool * ptr64)
  Source:  (0)
(13) section:offset 0001:00070D67 Address: 0xDEF81D67 Frame: 0x001FC9C0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Base.dll (-exported-)
  Location: awString::IString::IString + 0x47 bytes
  Decl: public: awString::IString::IString(char const * ptr64,enum awString::Encoding,bool * ptr64)
  Source:  (0)
(14) section:offset 0001:000716D1 Address: 0xDEF826D1 Frame: 0x001FCA60
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Base.dll (-exported-)
  Location: awString::IString::assign + 0x31 bytes
  Decl: public: class awString::IString & ptr64 awString::IString::assign(char const * ptr64,enum awString::Encoding,bool * ptr64)
  Source:  (0)
(15) section:offset 0001:000569B1 Address: 0xDE8B79B1 Frame: 0x001FCAB0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Foundation.dll (-exported-)
  Location: TstringTestInfo::allocatedDataSize + 0x6E1 bytes
  Decl: public: static unsigned __int64 TstringTestInfo::allocatedDataSize(class Tstring const & ptr64)
  Source:  (0)
(16) section:offset 0001:000534C7 Address: 0xDE8B44C7 Frame: 0x001FCB00
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\Foundation.dll (-exported-)
  Location: Tstring::removeInitialAndFinalSpaces + 0xE7 bytes
  Decl: public: void Tstring::removeInitialAndFinalSpaces(void)
  Source:  (0)
(17) section:offset 0001:0001E33F Address: 0xDDC4F33F Frame: 0x001FCC60
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\CommandEngine.dll (-exported-)
  Location: TcommandEngine::executeCommand + 0xCF bytes
  Decl: public: int TcommandEngine::executeCommand(class Tstring const & ptr64,bool,bool,class TmelCmdResult * ptr64,unsigned int)
  Source:  (0)
(18) section:offset 0001:0006E95D Address: 0xC9E0F95D Frame: 0x001FCCA0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: MGlobal::executeCommand + 0x7D bytes
  Decl: public: static class MStatus MGlobal::executeCommand(class MString const & ptr64,bool,bool)
  Source:  (0)
(19) section:offset 0001:00478056 Address: 0x80479056 Frame: 0x001FE300
  Module:  C:\bz_pipeline\plugins_maya\2016.5\soup\SOuP_2017_02_27\plug-ins\maya2016.5_win\SOuP.mll (-exported-)
  Location: initializePlugin + 0x3D46 bytes
  Source:  (0)
(20) section:offset 0001:0018B480 Address: 0xC9F2C480 Frame: 0x001FE3B0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: Tplugin::primaryLoad + 0x2D0 bytes
  Decl: public: int Tplugin::primaryLoad(class Tstring const & ptr64,class Tstring * ptr64)
  Source:  (0)
(21) section:offset 0001:0018AFED Address: 0xC9F2BFED Frame: 0x001FE3E0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: Tplugin::load + 0x1D bytes
  Decl: public: int Tplugin::load(class Tstring const & ptr64,class Tstring * ptr64)
  Source:  (0)
(22) section:offset 0001:0020BAC8 Address: 0xC9FACAC8 Frame: 0x001FE5E0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: TpluginPref::~TpluginPref + 0x4538 bytes
  Decl: public: virtual TpluginPref::~TpluginPref(void)
  Source:  (0)
(23) section:offset 0001:0020B09A Address: 0xC9FAC09A Frame: 0x001FE940
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: TpluginPref::~TpluginPref + 0x3B0A bytes
  Decl: public: virtual TpluginPref::~TpluginPref(void)
  Source:  (0)
(24) section:offset 0001:0020A7BB Address: 0xC9FAB7BB Frame: 0x001FE970
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\OpenMaya.dll (-exported-)
  Location: TpluginPref::~TpluginPref + 0x322B bytes
  Decl: public: virtual TpluginPref::~TpluginPref(void)
  Source:  (0)
(25) section:offset 0001:0006F80F Address: 0xDDCA080F Frame: 0x001FEA60
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\CommandEngine.dll (-exported-)
  Location: TpythonInterpreter::dispatchMayaCommand + 0x22F bytes
  Decl: public: static struct _object * ptr64 TpythonInterpreter::dispatchMayaCommand(class TmetaCommand & ptr64,struct _object * ptr64,struct _object * ptr64)
  Source:  (0)
(26) section:offset 0001:000BC406 Address: 0x1E0BD406 Frame: 0x001FEA90
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyCFunction_Call + 0x76 bytes
  Source:  (0)
(27) section:offset 0001:0010CB39 Address: 0x1E10DB39 Frame: 0x001FEAF0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: _Py_CheckRecursiveCall + 0x8B9 bytes
  Source:  (0)
(28) section:offset 0001:0010AF60 Address: 0x1E10BF60 Frame: 0x001FEBF0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalFrameEx + 0x2480 bytes
  Source:  (0)
(29) section:offset 0001:00108ABB Address: 0x1E109ABB Frame: 0x001FEC90
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalCodeEx + 0x78B bytes
  Source:  (0)
(30) section:offset 0001:00108329 Address: 0x1E109329 Frame: 0x001FECF0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalCode + 0x29 bytes
  Source:  (0)
(31) section:offset 0001:0013B0AA Address: 0x1E13C0AA Frame: 0x001FED20
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: Py_SymtableString + 0xC2A bytes
  Source:  (0)
(32) section:offset 0001:0013911A Address: 0x1E13A11A Frame: 0x001FED80
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyRun_FileExFlags + 0xAA bytes
  Source:  (0)
(33) section:offset 0001:00106551 Address: 0x1E107551 Frame: 0x001FEE10
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyAST_FromNode + 0x8D31 bytes
  Source:  (0)
(34) section:offset 0001:000BC3F9 Address: 0x1E0BD3F9 Frame: 0x001FEE40
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyCFunction_Call + 0x69 bytes
  Source:  (0)
(35) section:offset 0001:0010CB39 Address: 0x1E10DB39 Frame: 0x001FEEA0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: _Py_CheckRecursiveCall + 0x8B9 bytes
  Source:  (0)
(36) section:offset 0001:0010AF60 Address: 0x1E10BF60 Frame: 0x001FEFA0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalFrameEx + 0x2480 bytes
  Source:  (0)
(37) section:offset 0001:00108ABB Address: 0x1E109ABB Frame: 0x001FF040
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalCodeEx + 0x78B bytes
  Source:  (0)
(38) section:offset 0001:00108329 Address: 0x1E109329 Frame: 0x001FF0A0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyEval_EvalCode + 0x29 bytes
  Source:  (0)
(39) section:offset 0001:0013B0AA Address: 0x1E13C0AA Frame: 0x001FF0D0
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: Py_SymtableString + 0xC2A bytes
  Source:  (0)
(40) section:offset 0001:0013983C Address: 0x1E13A83C Frame: 0x001FF120
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyRun_StringFlags + 0x7C bytes
  Source:  (0)
(41) section:offset 0001:00139751 Address: 0x1E13A751 Frame: 0x001FF160
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: PyRun_SimpleStringFlags + 0x41 bytes
  Source:  (0)
(42) section:offset 0001:000413F2 Address: 0x1E0423F2 Frame: 0x001FF220
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\python27.dll (-exported-)
  Location: Py_Main + 0x812 bytes
  Source:  (0)
(43) section:offset 0001:000002AC Address: 0x3F8612AC Frame: 0x001FF760
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\mayapy.exe (-nosymbols-)
  Source:  (0)
(44) section:offset 0001:000015E7 Address: 0x3F8625E7 Frame: 0x001FF790
  Module:  C:\Program Files\Autodesk\Maya2016.5\bin\mayapy.exe (-nosymbols-)
  Source:  (0)
(45) section:offset 0001:000149CD Address: 0x777659CD Frame: 0x001FF7C0
  Module:  C:\Windows\system32\kernel32.dll (-exported-)
  Location: BaseThreadInitThunk + 0xD bytes
  Source:  (0)
(46) section:offset 0001:00029561 Address: 0x7789A561 Frame: 0x001FF810
  Module:  C:\Windows\SYSTEM32\ntdll.dll (-exported-)
  Location: RtlUserThreadStart + 0x21 bytes
  Source:  (0)
End of stack

Quote 0 0

Add a Website Forum to your website.