Open ParaView File Fatal error if paraview launched with –multi-servers option
Dear experts, running paraview with –multi-servers option generates a fatal error if user opens a file, after disconnecting from a server.
The issue can be reproduced as follows:
in a terminal, start pvserver
in a second terminal, type: paraview --multi-servers
in the main menu bar, click on connect and connect to server
in the pipeline, select the server and click on disconnect
in the main menu bar, select File - Open
==> Paraview crash.
Digging this out, it seems that in method pqLoadDataReaction::loadData(), pqServer server = pqActiveObjects::instance().activeServer();* returns NULL which leads to the crash.
pqServer* server = pqActiveObjects::instance().activeServer()
pqServer* server = pqApplicationCore::instance()->getActiveServer()
seems to fix the issue which can be reproduced with Paraview 5.9 Thanks.