[Paraview] pvbatch view.StillRender() crashing

bcurtis3 bcurtis3 at masonlive.gmu.edu
Thu Aug 8 13:39:39 EDT 2013


Still no luck with this new issue, would it be easiest to make a new thread for this (the pastebin's are below) or keep it in here?

The issue is still a crash with my view.StillRender() but now it happens only when using mpirun and pvbatch. If i just use pvbatch without mpirun, the crash does not occur.

> Code: http://paste.ubuntu.com/5960325/
> Crash: http://paste.ubuntu.com/5960330/
> CMakeCache.txt: http://paste.ubuntu.com/5960331/

Thanks,
~Brian
________________________________________
From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] on behalf of bcurtis3 [bcurtis3 at masonlive.gmu.edu]
Sent: Wednesday, August 07, 2013 5:21 PM
To: Burlen Loring
Cc: paraview at paraview.org
Subject: Re: [Paraview] pvbatch view.StillRender() crashing

I went ahead and removed the servermanager.Connect() and that had no change.

What seems to be causing the issue is the view.StillRender() (and/or) view.WriteImage(...) and using mpirun with pvbatch.
(Code works fine when not using mpirun)

I hope someone more familiar with this can help.

Thanks,
~Brian
________________________________________
From: Burlen Loring [bloring at lbl.gov]
Sent: Wednesday, August 07, 2013 5:21 PM
To: bcurtis3
Cc: paraview at paraview.org
Subject: Re: [Paraview] pvbatch view.StillRender() crashing

Hmm, haven't seen that one, but since it's a failed assertion, it may be
that you're attempting something that's not legit.

Are you running this using pvbatch? I don't think you need to call
Connect/Disconnect with pvbatch. Does removing those calls help?

You might also simplify and bulletproof your code by using the functions
in "simple.py" (see source tree). I'm not familiar enough with pv python
to say whether or not your doing something illegal in your code by
accessing servermanager directly.

On 08/07/2013 01:58 PM, bcurtis3 wrote:
> OK great, that seems to have fixed that crash. Now onto another crash
>
> Code: http://paste.ubuntu.com/5960325/
> Crash: http://paste.ubuntu.com/5960330/
> CMakeCache.txt: http://paste.ubuntu.com/5960331/
>
> Thanks again for all your help,
> ~Brian
> ________________________________________
> From: Burlen Loring [bloring at lbl.gov]
> Sent: Wednesday, August 07, 2013 1:40 PM
> To: bcurtis3
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] pvbatch view.StillRender() crashing
>
> I saw in your CMake config that both libGL and libOSMesa are used.
> Because you are not using X11 you really only need OS Mesa. I'm
> wondering if the mixing of libGL and libOSMesa is the source of the
> issue here?
>
> would you mind re-building but change your cmake config using the
> following as a guide? When you run I think you can safely omit the
> --use-offscreen-rendering flag.
>
> #!/bin/bash
> MESA=/work/apps/mesa-dev/
> cmake \
> ...
>     -DPARAVIEW_BUILD_QT_GUI=OFF \
>     -DVTK_USE_X=OFF \
>     -DVTK_OPENGL_HAS_OSMESA=ON \
>     -DOPENGL_INCLUDE_DIR=$MESA/include \
>     -DOPENGL_gl_LIBRARY=$MESA/lib/libOSMesa32.so \
>     -DOPENGL_glu_LIBRARY="" \
>     -DOPENGL_glut_LIBRARY="" \
>     -DGLUT_glut_LIBRARY="" \
>     -DGLUT_INCLUDE_DIR="" \
>     -DGLUT_Xi_LIBRARY="" \
>     -DGLUT_Xmu_LIBRARY="" \
>     -DGLUT_glut_LIBRARY="" \
>     -DOPENGL_xmesa_INCLUDE_DIR=$MESA/include \
>     -DOSMESA_INCLUDE_DIR=$MESA/include \
>     -DOSMESA_LIBRARY=$MESA/lib/libOSMesa32.so \
> ...
>     $*
>
>
> On 08/07/2013 10:22 AM, bcurtis3 wrote:
>> Sorry, this file was what I was meaning to attach:
>> CMakeCache.txt: http://paste.ubuntu.com/5959636/
>> ________________________________________
>> From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] on behalf of bcurtis3 [bcurtis3 at masonlive.gmu.edu]
>> Sent: Wednesday, August 07, 2013 1:16 PM
>> To: Burlen Loring
>> Cc: paraview at paraview.org
>> Subject: Re: [Paraview] pvbatch view.StillRender() crashing
>>
>> Hi Burlen,
>>
>> This is a source build.
>>
>> CMakeOutput.log: http://paste.ubuntu.com/5959617/
>>
>> ~Brian
>> ________________________________________
>> From: Burlen Loring [bloring at lbl.gov]
>> Sent: Wednesday, August 07, 2013 1:00 PM
>> To: bcurtis3
>> Cc: paraview at paraview.org
>> Subject: Re: [Paraview] pvbatch view.StillRender() crashing
>>
>> Hi,
>>
>> I think this happens because VTK failed to create a valid rendering
>> context. There could be some issue with Open GL on your system, or some
>> interaction with PV and your Open GL install.
>>
>> Have you built PV from sources here or is this a binary download?
>>
>> Burlen
>>
>> On 08/07/2013 09:13 AM, bcurtis3 wrote:
>>> Hi there,
>>>
>>> I am trying to use the following command to print an image of a sliceFilter I create:
>>> /home/bcurtis/Downloads/Paraview/bin/pvbatch --use-offscreen-rendering /home/bcurtis/Desktop/newscreenshots.py
>>> (eventually i'll use mpirun for all my other legacy VTK files)
>>>
>>> I run the following code which crashes at view.StillRender(). I have also pasted the code and crash below.
>>>
>>> CODE: http://paste.ubuntu.com/5959376/
>>> CRASH: http://paste.ubuntu.com/5959378/
>>>
>>> I have read a lot of online resources and I just can not pinpoint what the issue is. I hope you can help me out!
>>>
>>> ~Brian C.
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list