Saving the State after a server disconnection make ParaView crash
With master branch, using ParaView in client/server mode (at least one server).
When a problem occurs on the servers, ParaView proposes to save the current state:
When clicking on Save State and Exit
, ParaView crashes with the following stack:
( 25.646s) [paraview ] vtkSocket.cxx:535 ERR| vtkClientSocket (0x5601e4b0c1c0): Socket error in call to send. Relais brisé (pipe).
( 25.648s) [paraview ] vtkSocket.cxx:535 ERR| vtkClientSocket (0x5601e4b0c1c0): Socket error in call to send. Relais brisé (pipe).
( 25.648s) [paraview ] vtkSocket.cxx:535 ERR| vtkClientSocket (0x5601e4b0c1c0): Socket error in call to send. Relais brisé (pipe).
paraview: /path/to/paraview/VTK/Parallel/Core/vtkMultiProcessStream.cxx :718 : vtkMultiProcessStream& vtkMultiProcessStream::operator>>(std::string&): l'assertion « this->Internals->Data.front() == vtkInternals::string_value » a échoué.
[UN00315131:760753] *** Process received signal ***
[UN00315131:760753] Signal: Abandon (6)
[UN00315131:760753] Signal code: (-6)
[UN00315131:760753] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x3c460)[0x7f82faa3c460]
[UN00315131:760753] [ 1] /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x11b)[0x7f82faa9152b]
[UN00315131:760753] [ 2] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x16)[0x7f82faa3c3b6]
[UN00315131:760753] [ 3] /lib/x86_64-linux-gnu/libc.so.6(abort+0xd7)[0x7f82faa2287c]
[UN00315131:760753] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x2279b)[0x7f82faa2279b]
[UN00315131:760753] [ 5] /lib/x86_64-linux-gnu/libc.so.6(+0x33b66)[0x7f82faa33b66]
[UN00315131:760753] [ 6] /path/to/paraview_build/bin/../lib/libvtkParallelCore-pv5.12.so.1(_ZN21vtkMultiProcessStreamrsERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x77)[0x7f8304ab94e3]
[UN00315131:760753] [ 7] /path/to/paraview_build/bin/../lib/libvtkRemotingServerManager-pv5.12.so.1(_ZN18vtkSMSessionClient9PullStateEPN17paraview_protobuf7MessageE+0x1f9)[0x7f8304eee605]
[UN00315131:760753] [ 8] /path/to/paraview_build/bin/../lib/libvtkRemotingServerManager-pv5.12.so.1(_ZN17vtkSMRemoteObject9PullStateEPN17paraview_protobuf7MessageE+0xe4)[0x7f8304ee318a]
[UN00315131:760753] [ 9] /path/to/paraview_build/bin/../lib/libvtkRemotingServerManager-pv5.12.so.1(_ZN10vtkSMProxy33UpdatePropertyInformationInternalEP13vtkSMProperty+0x21d)[0x7f8304e90c17]
[UN00315131:760753] [10] /path/to/paraview_build/bin/../lib/libvtkRemotingServerManager-pv5.12.so.1(_ZN10vtkSMProxy25UpdatePropertyInformationEv+0x3d)[0x7f8304e90959]
[UN00315131:760753] [11] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(+0x1596e1)[0x7f83061596e1]
[UN00315131:760753] [12] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(_ZN17pqFileDialogModelC2EP8pqServerP7QObject+0x64)[0x7f83061561ca]
[UN00315131:760753] [13] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(+0x145e23)[0x7f8306145e23]
[UN00315131:760753] [14] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(_ZN12pqFileDialogC2EP8pqServerP7QWidgetRK7QStringS6_S6_bb+0x36c)[0x7f830613522a]
[UN00315131:760753] [15] /path/to/paraview_build/bin/../lib/libpqApplicationComponents-pv5.12.so.1(_ZN19pqSaveStateReaction9saveStateEv+0x1ee)[0x7f83076a1046]
[UN00315131:760753] [16] /path/to/paraview_build/bin/../lib/libpqApplicationComponents-pv5.12.so.1(_ZN23pqCrashRecoveryBehavior18onServerDisconnectEv+0x1ff)[0x7f83075a3a2f]
[UN00315131:760753] [17] /path/to/paraview_build/bin/../lib/libpqApplicationComponents-pv5.12.so.1(+0xfd505)[0x7f83074fd505]
[UN00315131:760753] [18] /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f39dc)[0x7f83054f39dc]
[UN00315131:760753] [19] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(_ZN8pqServer22serverSideDisconnectedEv+0x2d)[0x7f83060a00ff]
[UN00315131:760753] [20] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(_ZN8pqServer16onConnectionLostEP9vtkObjectmPvS2_+0x2c)[0x7f83061d1fb2]
[UN00315131:760753] [21] /path/to/paraview_build/bin/../lib/libpqCore-pv5.12.so.1(+0x9fa63)[0x7f830609fa63]
[UN00315131:760753] [22] /lib/x86_64-linux-gnu/libQt5Core.so.5(+0x2f39dc)[0x7f83054f39dc]
[UN00315131:760753] [23] /path/to/paraview_build/bin/../lib/libvtkGUISupportQt-pv5.12.so.1(+0x2c75a)[0x7f830730475a]
[UN00315131:760753] [24] /path/to/paraview_build/bin/../lib/libvtkGUISupportQt-pv5.12.so.1(+0x6a75b)[0x7f830734275b]
[UN00315131:760753] [25] /path/to/paraview_build/bin/../lib/libvtkGUISupportQt-pv5.12.so.1(+0x6a6e4)[0x7f83073426e4]
[UN00315131:760753] [26] /path/to/paraview_build/bin/../lib/libvtkCommonCore-pv5.12.so.1(_ZN18vtkCallbackCommand7ExecuteEP9vtkObjectmPv+0x4b)[0x7f82fd4bfd73]
[UN00315131:760753] [27] /path/to/paraview_build/bin/../lib/libvtkCommonCore-pv5.12.so.1(+0x23e9a82)[0x7f82fd5e9a82]
[UN00315131:760753] [28] /path/to/paraview_build/bin/../lib/libvtkCommonCore-pv5.12.so.1(_ZN9vtkObject11InvokeEventEmPv+0x41)[0x7f82fd5ea079]
[UN00315131:760753] [29] /path/to/paraview_build/bin/../lib/libvtkRemotingServerManager-pv5.12.so.1(_ZN18vtkSMSessionClient16OnConnectionLostEP9vtkObjectmPv+0x34)[0x7f8304eeffa0]
[UN00315131:760753] *** End of error message ***
Abandon (core dumped)
No state file is written.
I git bisected and found:
# possible first bad commit: [f1dbe0a22de4863dfe9d039fc08604ccbc98fb05] Support Loading States from Client and Server
# possible first bad commit: [99527d37d81ff7bcdb15790779c46d3bfe36237d] Support Saving States to Client and Server