Community
Arnold for 3ds Max
Rendering with Arnold in 3ds Max using the MaxtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arnold Standin crashes with multiple nested usd standins

1 REPLY 1
Reply
Message 1 of 2
jrosenA9TLN
271 Views, 1 Reply

Arnold Standin crashes with multiple nested usd standins

Maya 2020.4
MtoA 4.2.3
Arnold Core 6.2.1.1

When trying to create an assembly of standins as a new standin I'm getting a crash when two standins reference the same file.

  1. + standin --> (cube_group.usda) + group
  2.                                   + standin1 --> cube.usda + standin2 --> cube.usda

Repro:

  • Select and export cube at origin
  • Arnold --> Scene Export -> Export Selection to Usd...
    Under Export section uncheck everything except Shapes and Shaders (Unchecking Full Paths didn't seem to have an affect)
  • Create Standin and set Path to exported .usd file
  • Duplicate and move to the side
  • Group and export group1: Arnold --> Scene Export -> Export Selection to Usd...screen-shot-2021-08-12-at-112256-am.png
    #usda 1.0
    
    def ArnoldUsd "pCube1Shape"
    {
        string arnold:filename = "./maya/arnold_forum/abc_cube_viewport/cube.usda"
        string arnold:name = "pCube1Shape"
        float3[] extent = [(-0.5, -0.5, -0.5), (0.5, 0.5, 0.5)]
        string primvars:dcc_name = "pCube1Shape" (
            elementSize = 1
            interpolation = "constant"
        )
        string primvars:maya_full_name = "|group1|pCube1|pCube1Shape" (
            elementSize = 1
            interpolation = "constant"
        )
    }
    
    
    
    
    def ArnoldUsd "pCube2Shape"
    {
        string arnold:filename = "./maya/arnold_forum/abc_cube_viewport/cube.usda"
        string arnold:name = "pCube2Shape"
        float3[] extent = [(-0.5, -0.5, -0.5), (0.5, 0.5, 0.5)]
        string primvars:dcc_name = "pCube2Shape" (
            elementSize = 1
            interpolation = "constant"
        )
        string primvars:maya_full_name = "|group1|pCube2|pCube2Shape" (
            elementSize = 1
            interpolation = "constant"
        )
        matrix4d xformOp:transform.timeSamples = {
            0: ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, -2.099900960922241, 1) ),
        }
        uniform token[] xformOpOrder = ["xformOp:transform"]
    }
  • Create Standin and set path to grouped .usda
  • Set Viewport Draw Mode to Shaded
    screen-shot-2021-08-12-at-113241-am.png
  • Crash Bang!

Backtrace

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f1172bfa700 (LWP 6538)]
0x00007f11e33905c6 in ?? () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
(gdb) bt
#0  0x00007f11e33905c6 in ?? () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
#1  0x00007f11e339a54a in ?? () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
#2  0x00007f11e339b49f in ?? () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
#3  0x00007f11e33a3d1c in ?? () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
#4  0x00007f11e31b7b9a in AiUniverse () from /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so
#5  0x00007f11cbff0a3c in UsdArnoldReadProcViewport::Read(arnoldPxrInternal__pxrReserved__::UsdPrim const&, UsdArnoldReaderContext&) ()
   from /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so
#6  0x00007f11cbfda761 in arnoldPxrInternal__pxrReserved__::WorkDispatcher::_InvokerTask<(anonymous namespace)::_UsdArnoldPrimReaderJob>::execute() ()
   from /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so
#7  0x00007f11cbfbee29 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) (
    this=0x7f1227ee7e00, parent=..., child=<optimized out>) at ../../src/tbb/custom_scheduler.h:501
#8  0x00007f11cbfb8b3c in tbb::internal::arena::process(tbb::internal::generic_scheduler&) (this=0x7f117b4ee880, s=...) at ../../src/tbb/arena.cpp:159
#9  0x00007f11cbfb8275 in tbb::internal::market::process(rml::job&) (this=0x7f12afbe1c00, j=...) at ../../src/tbb/market.cpp:677
#10 0x00007f11cbfb2c7d in tbb::internal::rml::private_worker::run() (this=0x7f12af9ddf00) at ../../src/tbb/private_server.cpp:271
#11 0x00007f11cbfb2bc6 in tbb::internal::rml::private_worker::thread_routine(void*) (arg=0x7f122c0623c0) at ../../src/tbb/private_server.cpp:224
#12 0x00007f13054d4ea5 in start_thread () from /lib64/libpthread.so.0
#13 0x00007f13051fd9fd in clone () from /lib64/libc.so

Shell output

00:00:00   861MB         | log started Thu Aug 12 11:25:35 2021
00:00:00   861MB         | Arnold 6.2.1.1 [fbf3b21a] linux clang-10.0.1 oiio-2.3.2 osl-1.12.0 vdb-7.1.1 clm-2.0.0.235 rlm-14.1.3 optix-6.6.0 2021/06/04 10:28:31
00:00:00   861MB         | running on ip-10-255-193-177.ec2.internal, pid=6149
00:00:00   861MB         |  1 x Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz (8 cores, 16 logical) with 63464MB
00:00:00   861MB         |  NVIDIA driver version 460.73 (Optix 60800)
00:00:00   861MB         |  GPU 0: Tesla T4 @ 1590MHz (compute 7.5) with 15109MB (14517MB available) (NVLink:0)
00:00:00   861MB         |  CentOS Linux 7 (Core), Linux kernel 3.10.0-1160.25.1.el7.x86_64
00:00:00   861MB         |  soft limit for open files raised from 1024 to 4094
00:00:00   861MB         |  
00:00:00   861MB         | loading plugins from /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins ...
00:00:00   861MB         |  cryptomatte.so: cryptomatte uses Arnold 6.2.1.1
00:00:00   861MB         |  cryptomatte.so: cryptomatte_filter uses Arnold 6.2.1.1
00:00:00   861MB         |  cryptomatte.so: cryptomatte_manifest_driver uses Arnold 6.2.1.1
00:00:00   862MB         |  alembic_proc.so: alembic uses Arnold 6.2.1.1
00:00:00   865MB         |  usd_proc.so: usd uses Arnold 6.2.1.1
00:00:00   865MB         |  synColor_shaders.so: color_manager_syncolor uses Arnold 6.2.1.1
00:00:00   865MB         | loaded 6 plugins from 4 lib(s) in 0:00.00
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 45623, resource id: 54832830, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 23447, resource id: 54842791, major code: 40 (TranslateCoords), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 33833, resource id: 54850412, major code: 40 (TranslateCoords), minor code: 0
USD arnold attribute extent not recognized in usd
USD arnold attribute extent not recognized in usd
USD arnold attribute extent not recognized in usd
signal caught: SIGSEGV -- Invalid memory reference

****
* Arnold 6.2.1.1 [fbf3b21a] linux clang-10.0.1 oiio-2.3.2 osl-1.12.0 vdb-7.1.1 clm-2.0.0.235 rlm-14.1.3 optix-6.6.0 2021/06/04 10:28:31
* CRASHED in libai.so (0x00007f11e33905c6) at 00:00:00
* signal caught: SIGSEGV -- Invalid memory reference
*
* backtrace:
>> 0 0x00007f11e33905c6 [libai.so       ]                                                                                                                           
*  1 0x00007f11e339a549 [libai.so       ]                                                                                                                           
*  2 0x00007f11e339b49e [libai.so       ]                                                                                                                           
*  3 0x00007f11e33a3d1b [libai.so       ]                                                                                                                           
*  4 0x00007f11e31b7b99 [libai.so       ] AiUniverse                                                                                                                
*  5 0x00007f11cbff0a3b [usd_proc.so    ] UsdArnoldReadProcViewport::Read(arnoldPxrInternal__pxrReserved__::UsdPrim const&, UsdArnoldReaderContext&)                [crtstuff.c        :  ?]
*  6 0x00007f11cbfda760 [usd_proc.so    ] arnoldPxrInternal__pxrReserved__::WorkDispatcher::_InvokerTask<(anonymous namespace)::_UsdArnoldPrimReaderJob>::execute() [reader.cpp        :  ?]
*  7 0x00007f11cbfbee28 [usd_proc.so    ] tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*)          [custom_scheduler.h:501]
*  8 0x00007f11cbfb8b3b [usd_proc.so    ] tbb::internal::arena::process(tbb::internal::generic_scheduler&)                                                          [arena.cpp         :159]
*  9 0x00007f11cbfb8274 [usd_proc.so    ] tbb::internal::market::process(rml::job&)                                                                                 [market.cpp        :677]
* 10 0x00007f11cbfb2c7c [usd_proc.so    ] tbb::internal::rml::private_worker::run()                                                                                 [private_server.cpp:271]
* 11 0x00007f11cbfb2bc5 [usd_proc.so    ] tbb::internal::rml::private_worker::thread_routine(void*)                                                                 [private_server.cpp:224]
* 12 0x00007f13054d4ea4 [libpthread.so.0] start_thread                                                                                                              [pthread_create.c  :  ?]
* 13 0x00007f13051fd9fc [libc.so.6      ] __clone                                                                                                                   
*
* loaded modules:
*    0x00007f11e23d1000  libai.so
*    0x00007f11cb4a5000  usd_proc.so
*    0x00007f13054cd000  libpthread.so.0
*    0x00007f13050ff000  libc.so.6
*
* memory: VM 17188 MB, RSS 1137 MB, 0 page faults
****
Stack trace:
  pthread_sigmask
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0x10d555f) [0x7f11e34a655f]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0x10d5181) [0x7f11e34a6181]
  /lib64/libpthread.so.0(+0xf630) [0x7f13054dc630]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0xfbf5c6) [0x7f11e33905c6]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0xfc954a) [0x7f11e339a54a]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0xfca49f) [0x7f11e339b49f]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/libai.so(+0xfd2d1c) [0x7f11e33a3d1c]
  AiUniverse
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb4ba3c) [0x7f11cbff0a3c]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb35761) [0x7f11cbfda761]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb19e29) [0x7f11cbfbee29]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb13b3c) [0x7f11cbfb8b3c]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb13275) [0x7f11cbfb8275]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb0dc7d) [0x7f11cbfb2c7d]
  /usr/autodesk/arnold/maya2020/plug-ins/../bin/../plugins/usd_proc.so(+0xb0dbc6) [0x7f11cbfb2bc6]
  /lib64/libpthread.so.0(+0x7ea5) [0x7f13054d4ea5]
  clone
1Fatal Error. Attempting to save in /usr/tmp/jrosen.20210812.1134.ma
QObject::setParent: Cannot set parent, new parent is in a different thread
Writing crash report in /usr/tmp/jrosen.20210812.1134.crash
/usr/autodesk/maya2020/bin/senddmp: line 126:  6795 Aborted                 (core dumped) $real "$@"
Tags (3)
Labels (3)
1 REPLY 1
Message 2 of 2
Stephen.Blair
in reply to: jrosenA9TLN

I can repro, and I've sent some CERs (crash error reports)

Logged https://github.com/Autodesk/arnold-usd/issues/868 for this



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report