> We're just trying out rendering with Maya 2016 on Linux,
> and are getting a segfault from Maya trying to render anything on the farm.
>
> Things go wrong starting with this error message:
>
> _________________________________________________________________
> ..
> Starting "/server/Autodesk/Maya/2016_EXT1_SP4/linux/bin/maya"
>
> terminate called after throwing an instance of 'std::logic_error'
> what(): basic_string::_S_construct NULL not valid
> ..
> _________________________________________________________________
>
OK, short answer is:
set the MAYA_DISABLE_CIP environment variable
in your submit-maya script to 1.
So in perl that would be:
$ENV{MAYA_DISABLE_CIP} = "1";
And in Python that would be:
os.environ["MAYA_DISABLE_CIP"] = "1"
Apparently this disables the Autodesk "Customer Involvement Program"
which for whatever reason causes network rendering to crash with
a segfault.
What follows is the complete error message you might see in your
frame log from Maya 2016 when that variable is unset:
_______________________________________________________________________________
Starting "/server/Autodesk/Maya/2016_EXT1_SP4/linux/bin/maya"
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Stack trace:
/lib64/libc.so.6() [0x36c08326a0]
gsignal
abort
__gnu_cxx::__verbose_terminate_handler()
/usr/lib64/libstdc++.so.6() [0x36c54bcbd6]
/usr/lib64/libstdc++.so.6() [0x36c54bcc03]
/usr/lib64/libstdc++.so.6() [0x36c54bcd22]
std::__throw_logic_error(char const*)
/usr/lib64/libstdc++.so.6() [0x36c549ce59]
std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)
/server/Autodesk/Maya/2016/linux/lib/libMC3.so.8(+0xb7330) [0x7fd1947ee330]
/server/Autodesk/Maya/2016/linux/lib/libMC3.so.8(+0x139c7f) [0x7fd194870c7f]
/server/Autodesk/Maya/2016/linux/lib/libMC3.so.8(+0xb7f69) [0x7fd1947eef69]
CMLFacade::Initialize(CMLWaypoint*, wchar_t const*, wchar_t const*, wchar_t const*, int, unsigned int, long long, long long, MC3_MODE, wchar_t const*)
TCIPClient::initialize()
TCIPClient::TCIPClient()
TCIPClient::theOne()
TbaseApp::cipReportStartup()
TbaseApp::initGeneral()
/server/Autodesk/Maya/2016/linux/bin/maya.bin() [0x415d82]
Tapplication::start()
/server/Autodesk/Maya/2016/linux/bin/maya.bin() [0x40e8af]
main
__libc_start_main
/server/Autodesk/Maya/2016/linux/bin/maya.bin() [0x40e06d]
Segmentation fault (core dumped)
// Maya exited with status 139
--- Render FAILED: EXITCODE=139
_______________________________________________________________________________
|