Strangely there was some error in my code that was not found when it crashed but found when recompiling from scratch.