[Paraview] pvpython WriteImage output corrupted

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Apr 12 18:38:29 EDT 2013


I wonder if has something to do with the offscreen rendering. Try the
following before Writeimage():

view.UseOffscreenRenderingForScreenshots = 0

Does that help?

Utkarsh


On Thu, Apr 11, 2013 at 2:37 PM, Masquelet, Matthieu (GE Global
Research) <masquelet at ge.com> wrote:
> I have experienced similar issues to a lesser level. Say if I'm looping over 20 files to generate snapshots for a movie, sometimes, 1 or 2 of these will be corrupted in a fashion similar to what is reported here. Also using 3.98.1 on Linux 64-bit, writing png files.
>
> Hope this helps,
>
> Matthieu
>
> -----Original Message-----
> From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Taylor, Erin M.
> Sent: Thursday, April 11, 2013 11:11 AM
> To: Taylor, Erin M.; ParaView
> Subject: Re: [Paraview] pvpython WriteImage output corrupted
>
> I should also add that I can output images from the ParaView GUI in the linux machine with no problems.  It's just pvpython WriteImage output that is corrupted.
>
>
>
> On 4/11/13 11:08 AM, "Taylor, Erin M." <Erin.Taylor at jhuapl.edu> wrote:
>
>>Hi all,
>>
>>I have a pvpython script that I've been developing and running
>>successfully on Mac OSX 10.6.8.  It renders a csv data set as points, then
>>saves an image to file.    It basically boils down to this:
>>
>>cr = CSVReader()
>>cr.FileName = filename
>>cr.UpdatePipeline()
>>tp = TableToPoints(cr)
>>tp.XColumn = 'x'
>>tp.YColumn = 'y'
>>tp.ZColumn = 'z'
>>tp.UpdatePipeline()
>>
>>Render()
>>view = GetRenderView()
>>WriteImage(image_path, view, Magnification = 2)
>>
>>
>>This works on the mac using pvpython.  However when I try to run the
>>same script on a 64 bit linux machine (same version of paraview,
>>3.98.1), the image that is output from WriteImage is corrupted.  By
>>that I mean the image is a mess of black and white noise.  Sometimes
>>the images have a portion of the script output rendered correctly in a
>>tile of the image.  I should note that the image is rendered properly
>>in the view window on this linux machine, it is just the saved output
>>that is corrupted.  I have tried .png and .jpg image output with the same result.
>>
>>I appreciate any ideas anyone might have on the cause of this!
>>
>>Many thanks,
>>
>>Erin
>>
>>
>>_______________________________________________
>>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