Error when running rviz "undefined symbol error: /opt/ros/hydro/lib/librviz.so: undefined symbol: _ZN3ros7package10getPluginsERKSsS2_RSt6vectorISsSaISsEEb"
This is different from the solutions and questions that are already asked. I even tried to fix this with the already existing solutions although there differed by the "/opt/ros/hydro/lib/librviz.so: undefined symbol: _ZN3ros7package10getPluginsERKSsS2_RSt6vectorISsSaISsEEb" part of the error message.
The whole cmd line says:
developer@haf:~/catkin_ws$ rosrun rviz rviz /opt/ros/hydro/lib/rviz/rviz: symbol lookup error: /opt/ros/hydro/lib/librviz.so: undefined symbol: _ZN3ros7package10getPluginsERKSsS2_RSt6vectorISsSaISsEEb developer@haf:~/catkin_ws$