Dump file:
Please login to see this link.
Context:
It's a simple function to save surface to file and stretch to given size.
If the target surface is HWA, it will be converted to bitmap first, then create a bitmap surface with wanted size, then stretch target surface to it.
the stretched surface is saved by ExportImage.
Crash is caught in stretch, which is provided by surface class, and it's a bit random: sometime crash each time exporting and sometime won't crash after several savings.
Thanks in advance.