Created attachment 23602 [details] Problem file Attached Excel file gives the following OOME when getting all pictures: java.lang.OutOfMemoryError: Java heap space at org.apache.poi.ddf.UnknownEscherRecord.fillFields(UnknownEscherRecord.java:76) at org.apache.poi.ddf.EscherContainerRecord.fillFields(EscherContainerRecord.java:56) at org.apache.poi.ddf.EscherContainerRecord.fillFields(EscherContainerRecord.java:56) at org.apache.poi.hssf.record.AbstractEscherHolderRecord.convertToEscherRecords(AbstractEscherHolderRecord.java:108) at org.apache.poi.hssf.record.AbstractEscherHolderRecord.decode(AbstractEscherHolderRecord.java:348) at org.apache.poi.hssf.usermodel.HSSFWorkbook.getAllPictures(HSSFWorkbook.java:1521)
Fixed in r786793 The culprit was EscherMetafileBlip. This class returned incorrect record size breaking reading and causing OOM. Should work now. Yegor