[Paraview] Unable to generate animations with pvbatch (repost)

Kent Eschenberg eschenbe at psc.edu
Tue Oct 17 11:12:29 EDT 2006


Utkarsh,

As per your suggestion (at the bottom of this message) I added this call to the pvb file created by paraview 2.4.4 (running on Redhat Linux Fedora Core 5 and a Pentium 4):

   $pvTemp115 SaveImages test jpg 1920 1080 5 90

For testing, I ran pvbatch directly, on my workstation. The script creates a sphere; cuts it; and then animations the offset for the cut. Here's the output:

======
$ pvbatch anim.pvb
Process SphereSource [...........]
Process PVClipDataSet [...........]
Process DataSetSurfaceFilter [...........]
Segmentation fault (core dumped)
======

Here is some information from gdb, edited a little for readability. Note that the value of "this" at level #0 is null!

======
# 0  in vtkRenderer::ComputeVisiblePropBounds
    (this=0x0,allBounds=0xbffac508)
    at Src2.4.4/VTK/Rendering/vtkRenderer.cxx:720
# 1  in vtkRenderer::ResetCameraClippingRange
    (this=0x0)
    at Src2.4.4/VTK/Rendering/vtkRenderer.cxx:804
# 2  in vtkSMRenderModuleProxy::StillRender (this=0xc68f258)
    at Src2.4.4/Servers/ServerManager/vtkSMRenderModuleProxy.cxx:474
# 3  in vtkSMAnimationSceneProxy::StartCueInternal
    (this=0xc6a0068, info=0xbffac668)
    at Src2.4.4/Servers/ServerManager/vtkSMAnimationSceneProxy.cxx:617
# 4  in vtkSMAnimationCueProxy::ExecuteEvent
    (this=0xc6a0068, obj=0xc6a21b0, event=52, calldata=0xbffac668)
    at Src2.4.4/Servers/ServerManager/vtkSMAnimationCueProxy.cxx:201
# 5  in vtkSMAnimationCueProxyObserver::Execute
    (this=0xc69d528, wdg=0xc6a21b0, event=52, calldata=0xbffac668)
    at Src2.4.4/Servers/ServerManager/vtkSMAnimationCueProxy.cxx:54
# 6   in vtkSubjectHelper::InvokeEvent
    (this=0xc6a0040, event=52, callData=0xbffac668, self=0xc6a21b0)
    at Src2.4.4/VTK/Common/vtkObject.cxx:433
# 7  in vtkObject::InvokeEvent
    (this=0xc6a21b0, event=52, callData=0xbffac668)
    at Src2.4.4/VTK/Common/vtkObject.cxx:576
# 8  in vtkAnimationCue::StartCueInternal (this=0xc6a21b0)
    at Src2.4.4/VTK/Common/vtkAnimationCue.cxx:44
# 9  in vtkAnimationScene::StartCueInternal (this=0xc6a21b0)
    at Src2.4.4/VTK/Common/vtkAnimationScene.cxx:242
# 10 in vtkAnimationCue::Tick (this=0xc6a21b0, currenttime=0, deltatime=0)
    at Src2.4.4/VTK/Common/vtkAnimationCue.cxx:79
# 11 in vtkSMAnimationSceneProxy::SetAnimationTime
    (this=0xc6a0068, time=0)
    at Src2.4.4/Servers/ServerManager/vtkSMAnimationSceneProxy.cxx:691
# 12 in vtkSMAnimationSceneProxy::SaveImages
    (this=0xc6a0068, fileRoot="test", ext="jpg", width=1920, height=1080,
    framerate=5, quality=90)
    at Src2.4.4/Servers/ServerManager/vtkSMAnimationSceneProxy.cxx:211
======

Are there commands I can add to the pvb file to update something or otherwise avoid this problem? Thanks in advance for your help!

Kent
Pittsburgh Supercomputing Center



--On 10/11/2006 05:10:38 PM -0400 utkarsh.ayachit at kitware.com wrote:
> Locate the pvTemp* variable assigned to the AnimationScene proxy as under:
> 
>    set pvTemp28 [$proxyManager NewProxy animation AnimationScene]
> 
> at the end of the batch file but before:
>    $proxyManager UnRegisterProxies
> 
> add:
>    pvTemp28 Play ;# to play the animation.
> 
> pvTemp28 is vtkSMAnimationSceneProxy, so you can call any other method on it as well, such as SaveImages.
> 
> Utkarsh.



More information about the ParaView mailing list