It looks like your AABB isn't surrounding your ramp... I'm guessing that you're rotating the ramp AFTER creating the b2Polygon from the b2PolygonDefinition, rather than before, and maybe static shapes don't update their AABBs after they are created. If that isn't the problem, can we see the code where you create the b2Body and b2Shape?
problems with a rotated static body
FlashThat works. If you want to update the angle later, you're supposed to set the angle with the (mysteriously named) SetXForm(position, angle) function.
Original thread: https://box2d.org/forum/viewtopic.php?t=959