Cucumbers!!

They have huge white bits and those parts have gone soft. Im guessing its sun damage?

Anyway of preventing this in the future?? Im so sad