Not enough memory exception when subscribing to RTPS topics

I recently have been trying to upgrade to the PX4 master on PX4-Autopilot, px4_ros_com, and px4_msgs from a version I cloned in January. In the newer versions the BatteryStatus and VehicleStatus messages seem to have changed slightly. When I try and subscribe to these topics or echo them from the command line the following exception occurs after receiving a couple of messages:

terminate called after throwing an instance of 'eprosima::fastcdr::exception::NotEnoughMemoryException'
  what():  Not enough memory in the buffer stream

Is anyone else having these issues or have an idea of what may be occurring?

Thanks!

Nevermind, I actually fixed it by doing a fresh install. There must have been some left over generated files.

I am running into the same problem. I have reinstalled everything related to micrortps_agent by deleting the folders and building them again,. but i still have the same problem.
how did you do a fresh install?

It generates some files from templates, so you have to delete those also. I would recommend just recloning the repository if those are causing problems.