How to debug export crashing?