Doubly periodic problem in the theory of cracks