Accidentally met such a situation. Aspose compare crash when html have symbol  
String source="<p></p>"; String incoming="<p><span style=\"font-family: Times New Roman; font-size: 11pt;\"> ​ Third party recipients</span></p>"; DocumentBuilder dbSource = new DocumentBuilder(); DocumentBuilder dbIncoming = new DocumentBuilder(); dbSource.insertHtml(source); Document docSource = dbSource.getDocument(); dbIncoming.insertHtml(incoming); Document docIncoming = dbIncoming.getDocument(); docSource.compare(docIncoming, "test", new Date());
Replace  
with “” or
before procces html fix problem for me. I don’t know if this case needs to be corrected.