Did you run the 'bt' command after it seg faulted and gave you back the gdb
prompt? The stack info may not even be helpful. I just wondered if it would
highlight what specifically it was trying to do when it crashed.

On Sat, 27 Feb 2016 9:26 PM Marcus Ottosson <konstrukt...@gmail.com> wrote:

> I’d like to think it’s possible with mesa drivers or the like.
>
> Grabbing the framebuffer was an interesting tip, but unfortunately did not
> bear any fruit.
>
> [root@9378ed216bc0 ~]# mayapy
>
>
> Python 2.6.4 (r264:75706, Jul 27 2011, 17:36:42)
> [GCC 4.1.2] on linux2
> Type "help", "copyright", "credits" or "license" for
>
>  more information.
> >>> from maya import standalone
> >>> standalone.initialize()
> >>> import maya.OpenMaya as api
> >>> import maya.OpenMayaUI as apiUI
> >>> view = apiUI.M3dView.active3dView()
> >>> image = api.MImage()
> >>> view.readColorBuffer(image, True)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> RuntimeError: (kFailure): Unexpected Internal Failure
> >>>
>
> I got gdb to run, but it wasn’t particularly helpful. Maybe there’s a flag
> of sorts to have it tell me more?
>
> [root@9378ed216bc0 ~]# export PYTHONHOME=/usr/autodesk/maya2013-x64           
>                              [root@9378ed216bc0 ~]# gdb --args python-bin -c 
> "import maya.standalone;maya.standalone.initialize();import 
> maya.cmds;maya.cmds.playblast()"
> GNU gdb (GDB) Red Hat Enterprise Linux (7.2-83.el6)
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/autodesk/maya2013-x64/bin/python-bin...done.
> (gdb) r
> Starting program: /usr/autodesk/maya2013-x64/bin/python-bin -c import\ 
> maya.standalone\;maya.standalone.initialize\(\)\;import\ 
> maya.cmds\;maya.cmds.playblast\(\)
>
> maya encountered a fatal error
>
> Signal: 11 (Unknown Signal)
> Result: untitled
> Fatal Error. Attempting to save in /usr/tmp/.20160227.0821.ma
> During startup program exited with code 1.
> (gdb)
>
> ​
>
> On 26 February 2016 at 19:58, Justin Israel <justinisr...@gmail.com>
> wrote:
>
>> Yea, I wonder if it is even possible to run this on a Travis CI, unless
>> you can be sure there is a graphics card available on the runner and that
>> your environment has graphic drivers installed.
>>
>> On Sat, Feb 27, 2016 at 12:37 AM Nicolas Chaverou <
>> nicolas.chave...@golaem.com> wrote:
>>
>>> I'd have bet on the graphics drivers / opengl.
>>> Else if your Maya viewport is active, you may try to dump the frame
>>> buffer to images and run a post process to assemble them as a video:
>>>
>>> http://nathanhorne.com/python-api-grab-frame-buffer-to-image/
>>>
>>> ---
>>> [image: Nicolas Chaverou - Golaem Crowd Product Manager - Golaem SA]
>>>
>>> +33 (0)2 99 27 21 44
>>> http://www.golaem.com
>>>
>>> On Fri, Feb 26, 2016 at 8:33 AM, Marcus Ottosson <konstrukt...@gmail.com
>>> > wrote:
>>>
>>>> Thanks Justin.
>>>>
>>>> Passing the display did not make a difference, possibly because the
>>>> docker image is being run in yet another virtual machine that also does not
>>>> have a window manager installed. The goal is to run this on something like
>>>> Travis.
>>>>
>>>> The gdb route seems promising. I just can't wrap my head around how to
>>>> use it with mayapy, or how to pass additional flags to mayapy like a script
>>>> so it can run on its own. :S Passing just the above causes gdb to sit and
>>>> wait until I force quit with CTRL-Z.
>>>>
>>>> What am I doing wrong?
>>>>
>>>> On 26 February 2016 at 00:31, Justin Israel <justinisr...@gmail.com>
>>>> wrote:
>>>>
>>>>> And also, you might get a better idea of what Maya was doing when it
>>>>> crashed if you debug it with gdb?
>>>>>
>>>>> gdb -ex run --args /bin/bash `which mayapy`
>>>>> ...
>>>>> >>> # do stuff
>>>>> [crash]
>>>>> (gdb) bt
>>>>> [back track follow]
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Feb 26, 2016 at 1:26 PM Justin Israel <justinisr...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Maybe you are missing video drivers in the bare bones image? Or maybe
>>>>>> you need to actually pass the display to the docker container:
>>>>>> http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/
>>>>>>
>>>>>> docker run -ti --rm  -e DISPLAY=$DISPLAY  -v
>>>>>> /tmp/.X11-unix:/tmp/.X11-unix mottosso/maya:2013sp1
>>>>>>
>>>>>> If that doesn't work, does it work under an ubuntu image?
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 26, 2016 at 12:01 PM Marcus Ottosson <
>>>>>> konstrukt...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> This one is probably for the Autodesk forums, but I figured I’d give
>>>>>>> it a show.
>>>>>>>
>>>>>>> In a virtual machine, with bare essentials installed, I’m attempting
>>>>>>> to playblast but are running into fatal errors.
>>>>>>>
>>>>>>> [marcus@docker:~$ docker run --rm -ti mottosso/maya:2013sp1
>>>>>>> [root@69e43200bda7 ~]# mayapy
>>>>>>> Python 2.6.4 (r264:75706, Jul 27 2011, 17:36:42)
>>>>>>> [GCC 4.1.2] on linux2
>>>>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>>>> >>> import maya.standalone
>>>>>>> maya.standalone.initialize()>>> maya.standalone.initialize()
>>>>>>> >>> from maya import cmds
>>>>>>> >>> cmds.playblast()
>>>>>>> maya encountered a fatal error
>>>>>>> Signal: 11 (Unknown Signal)
>>>>>>> Result: untitled
>>>>>>> Fatal Error. Attempting to save in /usr/tmp/.20160225.2226.ma
>>>>>>>
>>>>>>> The bare essentials are these:
>>>>>>>
>>>>>>> RUN yum update -y && yum install -y \
>>>>>>>     nano \
>>>>>>>     csh \
>>>>>>>     libXp \
>>>>>>>     libXmu \
>>>>>>>     libXpm \
>>>>>>>     libXi \
>>>>>>>     libtiff \
>>>>>>>     libXinerama \
>>>>>>>     elfutils \
>>>>>>>     gstreamer-plugins-base.x86_64 \
>>>>>>>     gamin \
>>>>>>>     git \
>>>>>>>     mesa-utils \
>>>>>>>     tcsh \
>>>>>>>     xorg-x11-server-Xorg \
>>>>>>>     wget && \
>>>>>>>     yum groupinstall -y "X Window System"
>>>>>>>
>>>>>>>
>>>>>>>    - https://hub.docker.com/r/mottosso/mayabase-centos/~/dockerfile/
>>>>>>>
>>>>>>> My question to you then is:
>>>>>>>
>>>>>>>    - What else could be needed for playblasting to work?
>>>>>>>
>>>>>>> Best,
>>>>>>> Marcus
>>>>>>> ​
>>>>>>> --
>>>>>>> *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/CAFRtmOCzU7a12LmHJv9CXLTEmgKDxt-yDWm_UGWM4tROPUpBkg%40mail.gmail.com
>>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOCzU7a12LmHJv9CXLTEmgKDxt-yDWm_UGWM4tROPUpBkg%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/CAPGFgA1nVmohxvUFm4j3BVujT56Hw%2BkhCHS7iqLxjJqzw8T-7g%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1nVmohxvUFm4j3BVujT56Hw%2BkhCHS7iqLxjJqzw8T-7g%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/CAFRtmOC1AQ6MaTreq0DOiJ1UYsdwqdZeSVRa-no0ZRmNggwANA%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOC1AQ6MaTreq0DOiJ1UYsdwqdZeSVRa-no0ZRmNggwANA%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/CAFS5DCYKEEv4qC9w_RTS8XUq%2BaJ-uOfwzm9zgz-teNQf42NyHw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CAFS5DCYKEEv4qC9w_RTS8XUq%2BaJ-uOfwzm9zgz-teNQf42NyHw%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/CAPGFgA1iUNQDgTDunpbO6mkm4chqTstj6CaE-WJA8vRoyustjw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1iUNQDgTDunpbO6mkm4chqTstj6CaE-WJA8vRoyustjw%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/CAFRtmOAhMWYCzyskSEcosHCsPk0%2BJByYgZ714MsVqKnqC5oD0A%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAhMWYCzyskSEcosHCsPk0%2BJByYgZ714MsVqKnqC5oD0A%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/CAPGFgA0t86je3V8Frg%3DS22%2BioNVM4vUM7XwYt-pnEmxSZWeQWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to