Gazebo | Ignition | Community
Ask Your Question
0

Protobuf version mismatch error [terminate called after throwing an instance of 'google::protobuf::FatalException']

asked 2020-08-07 18:14:06 -0500

pkot gravatar image

Ubuntu 18.04, Ros melodic and gazebo-9.

When launching gazebo-ros using this launch file, It throws the following error,

   [libprotobuf FATAL google/protobuf/stubs/common.cc:67] This program requires version 3.12.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "google/protobuf/any.pb.cc".)
    terminate called after throwing an instance of 'google::protobuf::FatalException'
      what():  This program requires version 3.12.0 of the Protocol Buffer runtime library, but the installed version is 3.0.0.  Please update your library.  If you compiled the program yourself, make sure that your headers are from the same version of Protocol Buffers as your link-time library.  (Version verification failed in "google/protobuf/any.pb.cc".)
    [spawn_multirotor-4] process has finished cleanly
    log file: /home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/spawn_multirotor-4*.log
    Aborted (core dumped)
    [gazebo-2] process has died [pid 5081, exit code 134, cmd /opt/ros/melodic/lib/gazebo_ros/gzserver -e ode worlds/empty.world __name:=gazebo __log:=/home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/gazebo-2.log].
    log file: /home/kotaru/.ros/log/835b290a-d900-11ea-a9b6-d07e353b7469/gazebo-2*.log

I can see that issue is with the protobuf version, and I tried sudo apt-get install libprotobuf-dev, it shows that,

libprotobuf-dev is already the newest version (3.0.0-9.1ubuntu1).

I also installed 3.12.0 from https://github.com/protocolbuffers/protobuf, that doesn't seem to help as well.

Any help/thoughts/solutions to fix this issue is greatly appreciated.

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-08-09 17:18:36 -0500

pkot gravatar image

Couldn't fix the protobuf issue!

Uninstalled everything (google-protobuf, libprotobuf-dev, ros, gazebo) and reinstalled ros and gazebo-ros. It's working now.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-08-07 18:14:06 -0500

Seen: 363 times

Last updated: Aug 09 '20