Non-uniformities and pore formation