This happens on 14.12 as well, after going into, or out of a factory it causes a hard crash, it doesn't matter whether the materials were created inside, or brought inside and then compressed.
The issue also includes going from a nested factory to a different factory.
Do you need more details?