I am using the longtable package to span tables across multiple pages. However sometimes (to me randomly, however so far only i quite complex documents) the longtable doesn't break like intended, but continues into the footer.

![Longtable penetrating the footer instead of breaking correctly (image)](https://i.stack.imgur.com/KehJe.png)

I tried to come up with a simple minimal example, but the tex files contained in Example1.7z file (link below) was the best i could do.

[Example tex files (deep link)](http://peecee.dk/upload/download/392262)