Tried to find the source of the freezing problem and it seems like it's a randomly caused deadlock or something.
Tracked the problem into the handling of an menubackgroundeffectcreator. The multiple test prints must be removed after the problem has been solved.