I found that happened when there was washing powder build up and the urine seemed to react with the washing powder and make them smell awful.
Easily fixed with a strip wash:
Hot wash with 1/2 cup of vinegar
Rinse with 1/2 cup of baking soda
Another rinse after that.
Should fix the prob for a while. It did for me anyway
(I started washing on hot at least once every few weeks as a preventative measure as I found that build up was more likely to occur with cold washes. Just my opinion though)