ASSInspector: check for ass_image height or width == 0.
ASSInspector: check for ass_image height or width == 0.

Apparently these values are possible under certain circumstances.

TypesettingTools/SubInspector