pvbatch core dump

Hi,

I am working on Ubuntu 18.04 LTS with Paraview 5.7.
I have saved my python script p.py while I was performing all my operations and saving screenshots.
When i try to execute with pvbatch I got this error:

terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc

Loguru caught a signal: SIGABRT

Please, let me know what could be the problem.
Thanks in advance,
Danna

ParaView 5.47 is not an existing verison of ParaView.
Did you install ParaView using apt-get ? If so, please download our official release instead :
https://www.paraview.org/download/

Also, include a simple script to reproduce your issue.

Sorry, a typo.
I mean 5.7

w.py (4.8 KB)

I uploaded my python script and the following is the error message which I got:

terminate called after throwing an instance of ‘std::bad_alloc’
what(): std::bad_alloc

Loguru caught a signal: SIGABRT
Stack trace:
63 0x401f91 pvbatch() [0x401f91]
62 0x7fe37901ab97 __libc_start_main + 231
61 0x4024c4 pvbatch() [0x4024c4]
60 0x7fe3769ff5b8 vtkPythonInterpreter::PyMain(int, char**) + 408
59 0x7fe371852641 Py_Main + 3169
58 0x7fe37183bdb5 PyRun_SimpleFileExFlags + 213
57 0x7fe37183a9da PyRun_FileExFlags + 138
56 0x7fe371816439 PyEval_EvalCode + 25
55 0x7fe37181633c PyEval_EvalCodeEx + 2236
54 0x7fe3718124c6 PyEval_EvalFrameEx + 24310
53 0x7fe37181633c PyEval_EvalCodeEx + 2236
52 0x7fe371813d35 PyEval_EvalFrameEx + 30565
51 0x7fe3422d95a5 .../ParaView-5.7.0-MPI-Linux-Python2.7-64bit/lib/python2.7/site-packages/paraview/modules/vtkPVServerManagerRenderingPython.so(+0x3c5a5) [0x7fe3422d95a5]
50 0x7fe36e5c1dca vtkSMRenderViewProxy::ResetCamera() + 218
49 0x7fe3775d6695 vtkPVSessionBase::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 53
48 0x7fe3775d78db vtkPVSessionCore::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 59
47 0x7fe3775d7aa5 vtkPVSessionCore::ExecuteStreamInternal(vtkClientServerStream const&, bool) + 245
46 0x7fe376c12a9d vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 29
45 0x7fe376c1276e vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 1198
44 0x7fe376c11caa vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 330
43 0x7fe376c119b5 vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 325
42 0x7fe378080a9 .../software/ParaView-5.7.0-MPI-Linux-Python2.7-64bit/bin/…/lib/libvtkPVServerManagerApplication-pv5.7.so.1(+0x285a92) [0x7fe378080a92]
41 0x7fe36dc79261 vtkPVRenderView::ResetCamera() + 17
40 0x7fe36dc813a8 vtkPVRenderView::Update() + 216
39 0x7fe36dc8870e vtkPVView::Update() + 286
38 0x7fe36dc87798 vtkPVView::CallProcessViewRequest(vtkInformationRequestKey*, vtkInformation*, vtkInformationVector*) + 200
37 0x7fe36dc26e48 vtkGeometryRepresentationWithFaces::ProcessViewRequest(vtkInformationRequestKey*, vtkInformation*, vtkInformation*) + 24
36 0x7fe36dc22d5b vtkGeometryRepresentation::ProcessViewRequest(vtkInformationRequestKey*, vtkInformation*, vtkInformation*) + 27
35 0x7fe36dc515f3 vtkPVDataRepresentation::ProcessViewRequest(vtkInformationRequestKey*, vtkInformation*, vtkInformation*) + 83
34 0x7fe3736661ff vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 255
33 0x7fe3736272ba vtkDemandDrivenPipeline::UpdateData(int) + 138
32 0x7fe373664ca1 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 801
31 0x7fe373628787 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 1447
30 0x7fe373622de1 vtkCompositeDataPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 257
29 0x7fe373625be7 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 55
28 0x7fe37362b650 vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 64
27 0x7fe36dc232af vtkGeometryRepresentation::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 239
26 0x7fe3736661ff vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 255
25 0x7fe3736272ba vtkDemandDrivenPipeline::UpdateData(int) + 138
24 0x7fe373664ca1 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 801
23 0x7fe3736282e6 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 262
22 0x7fe373621b5a vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 330
21 0x7fe373664ca1 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 801
20 0x7fe3736282e6 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 262
19 0x7fe373621b5a vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 330
18 0x7fe373664ca1 vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 801
17 0x7fe373628787 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 1447
16 0x7fe373622de1 vtkCompositeDataPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 257
15 0x7fe373625be7 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 55
14 0x7fe37362b650 vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 64
13 0x7fe36d426f53 vtkPVGeometryFilter::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 131
12 0x7fe36d42733e vtkPVGeometryFilter::RequestDataObjectTree(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 782
11 0x7fe36d42648c vtkPVGeometryFilter::UnstructuredGridExecute(vtkUnstructuredGridBase*, vtkPolyData*, int) + 1612
10 0x7fe374a9eaef vtkDataSetSurfaceFilter::UnstructuredGridExecute(vtkDataSet*, vtkPolyData*) + 8703
9 0x7fe374a9c46d vtkDataSetSurfaceFilter::InsertQuadInHash(long long, long long, long long, long long, long long) + 237
8 0x7fe374a9c33c vtkDataSetSurfaceFilter::NewFastGeomQuad(int) + 524
7 0x7fe370fb029c /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x9329c) [0x7fe370fb029c]
6 0x7fe370fafd24 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92d24) [0x7fe370fafd24]
5 0x7fe370fafaf1 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92af1) [0x7fe370fafaf1]
4 0x7fe370fafab6 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x92ab6) [0x7fe370fafab6]
3 0x7fe370fa9957 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x8c957) [0x7fe370fa9957]
2 0x7fe379039801 abort + 321
1 0x7fe379037e97 gsignal + 199
0 0x7fe379037f20 /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7fe379037f20]
( 4.705s) [main thread ] :0 FATL| Signal: SIGABRT
Aborted (core dumped)

could you please try to :

  • provide a file to test your script with
  • identify which line of your script causes the crash
  • remove unnecessary element from your script.