mayapy crash

Post Reply
selsner
Posts: 37
Joined: Wed Jan 25, 2017 11:20 am

mayapy crash

Post by selsner » Tue Jan 31, 2017 7:54 pm

I have a very weird issue.
We run "afrender" at system startup via the service that comes with afanasy. When executing the following command with afrender started this way, the mayapy executable segfaults:

Code: Select all

/usr/autodesk/maya2016/bin/mayapy -c "import pymel.core;import os;os._exit(0)"
When starting the afrender service manually on the command line the command above runs well.


the output of the crash is:

Code: Select all

terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
Stack trace:
/lib64/libc.so.6() [0x39678326a0]
gsignal
abort
__gnu_cxx::__verbose_terminate_handler()
/usr/lib64/libstdc++.so.6() [0x396acbcbd6]
/usr/lib64/libstdc++.so.6() [0x396acbcc03]
/usr/lib64/libstdc++.so.6() [0x396acbcd22]
std::__throw_logic_error(char const*)
/usr/lib64/libstdc++.so.6() [0x396ac9ce59]
std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&)
/usr/autodesk/maya2016/bin/../lib/libMC3.so.8(+0xb7330) [0x7fc8454f2330]
/usr/autodesk/maya2016/bin/../lib/libMC3.so.8(+0x139c7f) [0x7fc845574c7f]
/usr/autodesk/maya2016/bin/../lib/libMC3.so.8(+0xb7f69) [0x7fc8454f2f69]
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()
TlibModeApp::initGeneral()
Tapplication::start()
libmain(char const*, bool, bool)
/usr/autodesk/maya2016/lib/python2.7/site-packages/maya/standalone.so(+0x14be) [0x7fc832f334be]
PyEval_EvalFrameEx
PyEval_EvalCodeEx
PyEval_EvalFrameEx
PyEval_EvalCodeEx
PyEval_EvalCode
PyImport_ExecCodeModuleEx
/usr/autodesk/maya2016/bin/../lib/libpython2.7.so.1.0(+0x1057d0) [0x7fc8604217d0]
/usr/autodesk/maya2016/bin/../lib/libpython2.7.so.1.0(+0x107492) [0x7fc860423492]
/usr/autodesk/maya2016/bin/../lib/libpython2.7.so.1.0(+0x105f87) [0x7fc860421f87]
/usr/autodesk/maya2016/bin/../lib/libpython2.7.so.1.0(+0x106431) [0x7fc860422431]
PyImport_ImportModuleLevel
/usr/autodesk/maya2016/bin/../lib/libpython2.7.so.1.0(+0xe60bd) [0x7fc8604020bd]
PyObject_Call
PyEval_CallObjectWithKeywords
PyEval_EvalFrameEx
PyEval_EvalCodeEx
PyEval_EvalCode


maybe someone has an idea?!
CGRU 2.2.1 - CentOS 6.6, gcc 4.4.7, Qt 4.6

Sebastian Elsner - Pipeline Technical Director - RISE
www.risefx.com

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: mayapy crash

Post by timurhai » Tue Jan 31, 2017 9:31 pm

Hi.
May be some environment difference causes the error.
Try to print some environment variable.
Pay attention on PYTHON_HOME, PYTHON_PATH and LD_LIBRARY_PATH.
Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: mayapy crash

Post by timurhai » Tue Jan 31, 2017 9:32 pm

- topic should be in this section (moved here from general)
Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

selsner
Posts: 37
Joined: Wed Jan 25, 2017 11:20 am

Re: mayapy crash

Post by selsner » Tue Feb 07, 2017 6:08 pm

For the record, this is solved by setting the env var:

Code: Select all

MAYA_DISABLE_CIP=1
taken from: http://lost-triangle.com/2016/09/05/ins ... ntu-16-04/
CGRU 2.2.1 - CentOS 6.6, gcc 4.4.7, Qt 4.6

Sebastian Elsner - Pipeline Technical Director - RISE
www.risefx.com

User avatar
timurhai
Site Admin
Posts: 356
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: mayapy crash

Post by timurhai » Tue Feb 07, 2017 9:40 pm

Timur Hairulin
CGRU 2.3.0 Debian 9, Ubuntu 18.04LTS, MS Windows 7,10 (client only).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest