Announcement

Collapse
No announcement yet.

maya python standalone crash on iMac with Vray, no crash without Vray

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • maya python standalone crash on iMac with Vray, no crash without Vray

    I developed Maya python script which runs in both standalone mode or called as procedure from within Maya.

    It's required that script run in standalone mode from command-line.

    We are using iMacs. On systems that do NOT have access to Vray license server, the script works both in stand-alone mode and from within Maya GUI session.

    On iMacs which DO have access to Vray license server, the script completes but then aborts (ie crashes) upon exiting python. Here are console messages when it crashes (trimqa messages are from my script):

    -------------------------------------------------------------------------
    trimqa Saving qa scene /xserve4/cg_production/05_trim-qa/renderScenes/QA_turntable_CID00005_CGL00212.mb for render
    trimqa /Volumes/cg_production/00_resources/production_scripts/trimqa.py Exiting normally
    pure virtual method called
    terminate called without an active exception
    Abort trap

    ---------------
    Here is snippet of code followed by snippet of crash report:
    ---------------------------------------------------------------------
    # main
    if __name__ == '__main__':
    try:
    import maya.standalone
    maya.standalone.initialize(name='python')
    except:
    print "trimqa ***Error*** %s Unable to start Maya standalone" % sys.argv[0]
    sys.exit(1)

    cid = int(sys.argv[1])
    cgl = int(sys.argv[2])

    if (trimqa(cid,cgl)):
    print "trimqa %s Exiting normally" % sys.argv[0]
    sys.exit(0)
    else:
    print "trimqa %s Exiting with errors" % sys.argv[1]
    sys.exit(1)
    --------------------------------------------------------------------------

    Thread 0: Dispatch queue: com.apple.main-thread
    0 libSystem.B.dylib 0x00007fff82560f8a __semwait_signal + 10
    1 libSystem.B.dylib 0x00007fff82560e19 nanosleep + 148
    2 libSystem.B.dylib 0x00007fff82560d83 usleep + 57
    3 libvray.dylib 0x0000000122d08eae TNet:one() + 334
    4 libvray.dylib 0x0000000122b9bc58 FloatingClient::~FloatingClient() + 104

    ....

    Thread 5 Crashed:\
    0 libSystem.B.dylib 0x00007fff82598e4e __semwait_signal_nocancel + 10
    1 libSystem.B.dylib 0x00007fff82598d50 nanosleep$NOCANCEL + 129
    2 libSystem.B.dylib 0x00007fff825f56ae usleep$NOCANCEL + 57
    3 libSystem.B.dylib 0x00007fff82614c81 __abort + 113
    4 libSystem.B.dylib 0x00007fff82614ce5 abort_report_np + 0
    5 libstdc++.6.dylib 0x00007fff889bf5d2 __tcf_0 + 0
    6 libstdc++.6.dylib 0x00007fff889bdae1 __cxxabiv1::__terminate(void (*)()) + 11
    7 libstdc++.6.dylib 0x00007fff889bdb16 __cxxabiv1::__unexpected(void (*)()) + 0
    8 libstdc++.6.dylib 0x00007fff889bdfd6 std::bad_cast::what() const + 0
    9 libvray.dylib 0x0000000122d0ea85 ConnectProc(void*) + 1269
    10 vrayformaya.bundle 0x000000012254577d VUtils::LinuxThreadManager::threadProc(void*) + 317
    11 libSystem.B.dylib 0x00007fff8255f4f6 _pthread_start + 331
    12 libSystem.B.dylib 0x00007fff8255f3a9 thread_start + 13
Working...
X