Clogged filter
The filter at the bottom of the tub catches food and broken glass. When it clogs, dirty water keeps circulating, glasses come out cloudy and water may stay in the tub after the cycle.
Take out the filter as the owner's manual shows, rinse it under the tap and lock it back in place.
