[Paraview-developers] Possible pvbatch bug?

Pat Marion pat.marion at kitware.com
Mon Jan 23 13:17:28 EST 2012


Do you still get an error if you remove the call to Connect() near the top
of the script?

Pat
On Jan 23, 2012 12:03 PM, "Paul Melis" <paul.melis at sara.nl> wrote:

> Hi,
>
> I'm wondering if the behaviour below is a bug. I have a pvbatch test
> script that runs fine under PV 3.10.1 and is actually based on an older
> PV tutorial:
>
> paulmlocal at sara11006:~/examples/paraview$ cat pvbatch_sphere.py
> # spherepic.py
> from paraview.simple import *
>
> sm = servermanager
> sm.Connect()
>
> sphere = Sphere()
> sphere.ThetaResolution = 100
> sphere.PhiResolution = 100
>
> pidscal = ProcessIdScalars(sphere)
>
> view = sm.CreateRenderView()
> rep = Show(pidscal, view)
>
> nbprocs = sm.ActiveConnection.GetNumberOfDataPartitions()
> lt = MakeBlueToRedLT(0, nbprocs-1)
> lt.NumberOfTableValues = nbprocs
>
> rep.LookupTable = lt
> rep.ColorAttributeType = 'POINT_DATA'
> rep.ColorArrayName = "ProcessId"
>
> bar = CreateScalarBar(LookupTable=lt, Title='PID')
>
> view.Representations.append(bar)
> view.ResetCamera()
> view.StillRender()
> view.WriteImage("Sphere.0.png","vtkPNGWriter", 0)
>
>
> When running this with the binary distro of 3.12.0 on a Linux x86_64
> system I get:
>
> paulmlocal at sara11006:~/examples/paraview$
> ~/software/ParaView-3.12.0-Linux-x86_64/bin/pvbatch pvbatch_sphere.py
> ERROR: In
>
> /home/kitware/Dashboards/MyTests/ParaView-master/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx,
> line 324
> vtkPVSessionCore (0x1a7f560): Attempt to assign existing ID 1.
> while processing
> Message 0 = Assign
>  Argument 0 = id_value {1}
>  Argument 1 = vtk_object_pointer {vtkPVSessionCoreInterpreterHelper
> (0x2f6b310)}
>
>
> ERROR: In
>
> /home/kitware/Dashboards/MyTests/ParaView-master/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx,
> line 325
> vtkPVSessionCore (0x1a7f560): Aborting execution for debugging purposes.
>
> Aborted (core dumped)
>
>
>
> Looking at the stack trace this seems to be something in the
> underwater message handling? Should I file a bug report?
>
> Regards,
> Paul
>
>
>
> (gdb) bt
> #0  0x00007f0e1ce20a75 in *__GI_raise (sig=<value optimized out>) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #1  0x00007f0e1ce245c0 in *__GI_abort () at abort.c:92
> #2  0x00007f0e2bb5fada in
> vtkPVSessionCore::OnInterpreterError(vtkObject*, unsigned long, void*)
> () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerImplementation.so
> #3  0x00007f0e1e2e3976 in vtkSubjectHelper::InvokeEvent(unsigned long,
> void*, vtkObject*) () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkCommon.so.pv3.12
> #4  0x00007f0e235cacb7 in
> vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream
> const&, int) () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkClientServer.so
> #5  0x00007f0e235cb0d3 in
> vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&)
> () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkClientServer.so
> #6  0x00007f0e2bb5dd3f in vtkPVSessionCore::vtkPVSessionCore() () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerImplementation.so
> #7  0x00007f0e2bb5e63f in vtkPVSessionCore::New() () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerImplementation.so
> #8  0x00007f0e2bb5ba56 in vtkPVSessionBase::vtkPVSessionBase() () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerImplementation.so
> #9  0x00007f0e2de4e83e in vtkSMSession::vtkSMSession(bool) () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerManager.so
> #10 0x00007f0e2de4e96c in vtkSMSession::New() () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPVServerManager.so
> #11 0x00007f0e20279fc1 in PyVTKObject_New () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPythonCore.so.pv3.12
> #12 0x00007f0e20278394 in PyVTKClass_Call(_object*, _object*, _object*)
> () from
>
> /home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/libvtkPythonCore.so.pv3.12
> #13 0x00007f0e1d8e3be7 in PyObject_Call (func=0x210cef0, arg=0x1bf0050,
> kw=0x0) at Objects/abstract.c:2529
> #14 0x00007f0e1d986441 in call_function (f=0x21c5650, throwflag=<value
> optimized out>) at Python/ceval.c:4231
> #15 PyEval_EvalFrameEx (f=0x21c5650, throwflag=<value optimized out>) at
> Python/ceval.c:2666
> #16 0x00007f0e1d989f99 in PyEval_EvalCodeEx (co=0x1e475b0,
> globals=<value optimized out>, locals=<value optimized out>, args=0x4,
> argcount=0, kws=0x1de8cc0, kwcount=0, defs=0x217d9b0, defcount=4,
> closure=0x0) at Python/ceval.c:3253
> #17 0x00007f0e1d9884e5 in call_function (f=0x1de8b40, throwflag=<value
> optimized out>) at Python/ceval.c:4109
> #18 PyEval_EvalFrameEx (f=0x1de8b40, throwflag=<value optimized out>) at
> Python/ceval.c:2666
> #19 0x00007f0e1d989f99 in PyEval_EvalCodeEx (co=0x1d948b0,
> globals=<value optimized out>, locals=<value optimized out>, args=0x0,
> argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at
> Python/ceval.c:3253
> #20 0x00007f0e1d98a292 in PyEval_EvalCode (co=0x2a95, globals=0x2a95,
> locals=0x6) at Python/ceval.c:667
> #21 0x00007f0e1d9ad7b1 in run_mod (fp=0x1dc2970, filename=0x1bef5e0
> "pvbatch_sphere.py", start=<value optimized out>, globals=0x1caed50,
> locals=0x1caed50, closeit=1, flags=0x7fff7ae62660) at
> Python/pythonrun.c:1346
> #22 PyRun_FileExFlags (fp=0x1dc2970, filename=0x1bef5e0
> "pvbatch_sphere.py", start=<value optimized out>, globals=0x1caed50,
> locals=0x1caed50, closeit=1, flags=0x7fff7ae62660) at
> Python/pythonrun.c:1332
> #23 0x00007f0e1d9ada87 in PyRun_SimpleFileExFlags (fp=0x1dc2970,
> filename=0x1bef5e0 "pvbatch_sphere.py", closeit=1, flags=0x7fff7ae62660)
> at Python/pythonrun.c:936
> #24 0x00007f0e1d9bfb27 in Py_Main (argc=<value optimized out>,
> argv=<value optimized out>) at Modules/main.c:599
> #25 0x0000000000402152 in ParaViewPython::Run(int, int, char**) ()
> #26 0x00007f0e1ce0bc4d in __libc_start_main (main=<value optimized out>,
> argc=<value optimized out>, ubp_av=<value optimized out>, init=<value
> optimized out>, fini=<value optimized out>, rtld_fini=<value optimized
> out>, stack_end=0x7fff7ae627c8) at libc-start.c:226
> #27 0x0000000000401cfa in _start () at ../sysdeps/x86_64/elf/start.S:113
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120123/8de5447e/attachment.htm>


More information about the Paraview-developers mailing list