I doubt that an ice age will come arround conveniently right after we invented the methods to do food production in small spaces - murphey's law and all - I think the human race will eventually come across the methods required to do so, it's just that too many people will suffer in the process.
But yeah! Vertical farms spam!