Riders became stuck on an amusement park ride after it broke down, stranding them upside down for hours.