[Paraview] Fwd: saving screen shot as a PNG image, Paraview-3.8.0
Rakesh Hammond
rakesh.hammond at googlemail.com
Thu Aug 19 18:47:49 EDT 2010
I thought I will share my findings on this bug.
It appears to affect 64 bit platforms only when saving in PNG format.
I have managed to track down the bug to Intel compiler (works ok with gcc).
If any of you come across this bug, you need
Intel compiler 11.1 (patch 72) for it to work.
However if you compile in Debug mode, Paraview-3.8 is not affected with
Intel 11.1 and patch 59 (or 69 for that matter).
Hope this helps,
Regards,
On 13 August 2010 19:41, Dave Partyka <dave.partyka at kitware.com> wrote:
> Hi Rakesh,
>
> You mentioned CVS. I just want to double check are you really still using
> CVS ParaView? or are you on the git release branch? Or using the source
> tarball from the webpage?
>
>
> On Fri, Aug 13, 2010 at 2:26 PM, Rakesh Hammond <
> rakesh.hammond at googlemail.com> wrote:
>
>>
>>
>> ---------- Forwarded message ----------
>> From: Rakesh Hammond <rakesh.hammond at googlemail.com>
>> Date: 13 August 2010 19:26
>> Subject: Re: [Paraview] saving screen shot as a PNG image, Paraview-3.8.0
>> To: pat marion <pat.marion at kitware.com>
>>
>>
>> Hi Pat,
>>
>> Thanks for your suggestion - but didn't help, PV-3.8 still crashed.
>>
>> I am able to save the screen shot using other formats (jpg, bmp etc).
>>
>> I looked into it a little bit further and I think this is where its seg
>> faulting
>> (I am on 3.8 release branch, not the latest CVS)
>>
>> in vtkPNGWriter.cxx
>>
>> line 278 - the following for loop
>>
>> for (ui = 0; ui < height; ui++)
>> {
>> row_pointers[height - ui - 1] = (png_byte *)outPtr;
>> outPtr = (unsigned char *)outPtr + rowInc;
>> }
>>
>> However, if I put a print statement inside the for loop(Hello world for
>> example), PV doesn't crash. This may be due to a memory leak some where
>> else.
>>
>> Can some one please comment on what sort of modifications I should make to
>> the above code?
>>
>> I think this may be a nasty bug to recreate - has any one else encountered
>> this problem?
>>
>> This is what I tried to do
>>
>> start PV
>> Load some data
>> File->SaveScreenShot->
>> Now choose the .PNG format and my PV-3.8 crashes
>>
>> Regards,
>>
>>
>> On 12 August 2010 19:26, pat marion <pat.marion at kitware.com> wrote:
>>
>>> Hi Rakesh,
>>>
>>> In Edit -> Settings -> Render View there is an option "Use Offscreen
>>> Rendering for Screenshots." On some systems, this option will cause a crash
>>> when enabled.
>>>
>>> Pat
>>>
>>> On Thu, Aug 12, 2010 at 1:42 PM, Rakesh Hammond <
>>> rakesh.hammond at googlemail.com> wrote:
>>>
>>>> Hi
>>>>
>>>> I have a .pvti file which I can visualize in Paraview-3.8.0.
>>>>
>>>> I would like to save a slice from my data set and able to display the
>>>> results correctly.
>>>> However, when I select SaveScreen option with PNG format, it seg faults.
>>>>
>>>> I am able to get this to work correctly on 3.6.2 without seg faulting.
>>>>
>>>> I am on SuSe-10.2.
>>>>
>>>> Do I need to turn on the USE_SYSTEM_PNG flag in CMake and re-compile?
>>>> I haven't done this for 3.6.2 and works OK.
>>>>
>>>> Has any one else come across this problem before?
>>>>
>>>> Any pointers would be greatly appreciated.
>>>>
>>>> Regards,
>>>>
>>>> Rakesh
>>>>
>>>> _______________________________________________
>>>> 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
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100819/04ba9cb3/attachment-0001.htm>
More information about the ParaView
mailing list