If so, then most likely it's in the main loop. This usually happens when you're trying to publish in a faster rate( ie publishing multiple sensor readings continuously without controlling the polling rate) . Or something's hogging the code befor a publisher publish your message ( ie publishing IMU data but there's no IMU connected in the pin and it's waiting for the IMU data).