Yes you CAN subprocess without viewport 2.0. I've been having the problem
as well at work.

you have to swap your preferences back to Legacy. then when
```maya.standalone.initialize()``` runs it won't search for synchronized
color settings. which is where this devil is originating from.

Legacy viewport in prefs prevents the subprocess from hanging. explanation
below.

the way I found this was deleting my prefs then noticing the subprocess
worked fine. I eventually narrowed it down to the synColor folder in the
prefs as well as synColor config.xml in my prefs folder. googled it and
found out this started in Maya 2016. and that this bug is supposed to be
fixed in the latest patches. but... I think it's back.

basically, on a lark, I turned my prefs back to legacy and made sure that
was the last maya I closed.
then ran all of my subprocesses and lo and behold, it worked.
the issue is that if you have more than one subprocess/session of maya
 attempting to read/modify/write any of the synchronized color files for
Viewport 2.0 it somehow freezes the subprocesses.
I think it's a filesystem thing with file open/read/close conflicts. this
is just a guess.






On Sun, Sep 18, 2016 at 3:21 AM, Marcus Ottosson <konstrukt...@gmail.com>
wrote:

> Next piece of the puzzle, no errors this time, and a successfully created
> Quicktime file.
>
> $ yum install mesa-libGL-devel
> $ export LIBQUICKTIME_PLUGIN_DIR=/usr/autodesk/maya/lib
> $ mayapy -c "from maya import standalone, cmds; \
>    standalone.initialize(); \
>    cmds.playblast(filename='/root/workspace/myplayblast')"# VP2 Warning : 
> Graphics hardware has been detected to have insufficient memory (0 MB).# 
> Please check your video card and driver to ensure that a minimum amount of 
> memory exists (512 MB).# The environment variable MAYA_OGS_GPU_MEMORY_LIMIT 
> can be used to explicitly set the GPU memory limit.# VP2 Warning : 
> Insufficient shader level capabilities. Vertex (3 vs 4), Geometry (0 vs 0) 
> Pixel (3 vs 4)# VP2 Warning : Graphics hardware feature level insufficient to 
> support renderer (2 vs 4)
>
> The file is, however, 700 bytes and contains no images. :(
>
> My guess is it successfully creates the file and is just about to fetch
> images from the viewport (which one?) and silently fails.
>
> $ hexdump -C myplayblast.mov00000000  00 00 00 20 66 74 79 70  71 74 20 20 20 
> 05 03 00  |... ftypqt   ...|00000010  71 74 20 20 00 00 00 00  00 00 00 00 00 
> 00 00 00  |qt  ............|00000020  00 00 00 01 6d 64 61 74  00 00 00 00 00 
> 00 00 10  |....mdat........|00000030  00 00 02 a4 6d 6f 6f 76  00 00 00 6c 6d 
> 76 68 64  |....moov...lmvhd|00000040  00 00 00 00 d4 04 17 19  d4 04 17 19 00 
> 00 00 18  |................|00000050  00 00 00 00 00 01 00 00  01 00 00 00 00 
> 00 00 00  |................|00000060  00 00 00 00 00 01 00 00  00 00 00 00 00 
> 00 00 00  |................|
> *00000080  00 00 00 00 40 00 00 00  00 00 00 00 00 00 00 00  
> |....@...........|00000090  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  
> |................|000000a0  00 00 00 02 00 00 02 28  74 72 61 6b 00 00 00 5c  
> |.......(trak...\|000000b0  74 6b 68 64 00 00 00 0f  d4 04 17 19 d4 04 17 19  
> |tkhd............|000000c0  00 00 00 01 00 00 00 00  00 00 00 00 00 00 00 00  
> |................|000000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 01 00 00  
> |................|
> *000000f0  00 00 00 00 00 00 00 00  00 00 00 00 40 00 00 00  
> |............@...|00000100  01 40 00 00 00 f0 00 00  00 00 00 24 65 64 74 73  
> |.@.........$edts|00000110  00 00 00 1c 65 6c 73 74  00 00 00 00 00 00 00 01  
> |....elst........|00000120  00 00 00 00 00 00 00 00  00 01 00 00 00 00 01 a0  
> |................|00000130  6d 64 69 61 00 00 00 20  6d 64 68 64 00 00 00 00  
> |mdia... mdhd....|00000140  d4 04 17 19 d4 04 17 19  00 00 00 18 00 00 00 00  
> |................|00000150  00 00 00 64 00 00 00 41  68 64 6c 72 00 00 00 00  
> |...d...Ahdlr....|00000160  6d 68 6c 72 76 69 64 65  00 00 00 00 00 00 00 00  
> |mhlrvide........|00000170  00 00 00 00 20 4c 69 62  71 75 69 63 6b 74 69 6d  
> |.... Libquicktim|00000180  65 20 56 69 64 65 6f 20  4d 65 64 69 61 20 48 61  
> |e Video Media Ha|00000190  6e 64 6c 65 72 00 00 01  37 6d 69 6e 66 00 00 00  
> |ndler...7minf...|000001a0  14 76 6d 68 64 00 00 00  01 00 40 80 00 80 00 80  
> |.vmhd.....@.....|000001b0  00 00 00 00 39 68 64 6c  72 00 00 00 00 64 68 6c  
> |....9hdlr....dhl|000001c0  72 61 6c 69 73 00 00 00  00 00 00 00 00 00 00 00  
> |ralis...........|000001d0  00 18 4c 69 6e 75 78 20  41 6c 69 61 73 20 44 61  
> |..Linux Alias Da|000001e0  74 61 20 48 61 6e 64 6c  65 72 00 00 00 24 64 69  
> |ta Handler...$di|000001f0  6e 66 00 00 00 1c 64 72  65 66 00 00 00 00 00 00  
> |nf....dref......|00000200  00 01 00 00 00 0c 61 6c  69 73 00 00 00 01 00 00  
> |......alis......|00000210  00 be 73 74 62 6c 00 00  00 66 73 74 73 64 00 00  
> |..stbl...fstsd..|00000220  00 00 00 00 00 01 00 00  00 56 70 6e 67 20 00 00  
> |.........Vpng ..|00000230  00 00 00 00 00 01 00 00  00 00 6c 71 74 20 00 00  
> |..........lqt ..|00000240  00 64 00 00 01 02 01 40  00 f0 00 48 00 00 00 48  
> |.d.....@...H...H|00000250  00 00 00 00 00 00 00 01  12 6c 69 62 71 75 69 63  
> |.........libquic|00000260  6b 74 69 6d 65 2d 31 2e  31 2e 34 00 00 00 00 00  
> |ktime-1.1.4.....|00000270  00 00 00 00 00 00 00 00  00 18 ff ff 00 00 00 10  
> |................|00000280  73 74 74 73 00 00 00 00  00 00 00 00 00 00 00 1c  
> |stts............|00000290  73 74 73 63 00 00 00 00  00 00 00 01 00 00 00 01  
> |stsc............|000002a0  00 00 00 01 00 00 00 01  00 00 00 14 73 74 73 7a  
> |............stsz|000002b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 10  
> |................|000002c0  73 74 63 6f 00 00 00 00  00 00 00 00 00 00 00 08  
> |stco............|000002d0  75 64 74 61                                       
> |udta|000002d4
>
> Full reproducible here.
>
>    - OS: https://github.com/mottosso/mayabase-centos/blob/master/
>    Dockerfile
>    - Maya: https://github.com/mottosso/docker-maya/blob/2016sp1/Dockerfile
>
> ‚Äč
>
> On 17 September 2016 at 17:48, Fredrik Averpil <fredrik.aver...@gmail.com>
> wrote:
>
>> > xvfb
>>
>> Ah, that was clever!
>>
>> Following this topic with interest.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to python_inside_maya+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/python_inside_maya/CAD%3DwhWO1ze3AiSuuQt8K1kUymrWXE9ttfD
>> XK4S1R6wLrtYa0Mw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAD%3DwhWO1ze3AiSuuQt8K1kUymrWXE9ttfDXK4S1R6wLrtYa0Mw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> *Marcus Ottosson*
> konstrukt...@gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/CAFRtmOA9rF_N%2B4Zx3VEyfejDf5Ub4o0_
> 3sM4o4PBbtsXysO4OQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA9rF_N%2B4Zx3VEyfejDf5Ub4o0_3sM4o4PBbtsXysO4OQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4gAS3hJLopkH%2BUvtuJhVzWMF1rRYXhsUnQTtzAyQcdCkA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to