commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SANSELAN-3) OutOfMemoryError while loading metadata of a jpeg image
Date Tue, 20 Dec 2011 10:37:31 GMT

     [ https://issues.apache.org/jira/browse/SANSELAN-3?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Bourg updated SANSELAN-3:
----------------------------------

    Fix Version/s: 0.97
    
> OutOfMemoryError while loading metadata of a jpeg image
> -------------------------------------------------------
>
>                 Key: SANSELAN-3
>                 URL: https://issues.apache.org/jira/browse/SANSELAN-3
>             Project: Commons Sanselan
>          Issue Type: Bug
>            Reporter: Philippe Gassmann
>            Assignee: Charles Matthew Chen
>            Priority: Blocker
>             Fix For: 0.97
>
>         Attachments: 2127422194_4734e30dcb_o.jpg
>
>
> the code executed : 
> IImageMetadata metadata = Sanselan.getMetadata(new File(sourcePath));
> the stacktrace : 
> java.lang.OutOfMemoryError: Java heap space
> at org.cmc.sanselan.common.byteSources.ByteSourceArray.getBlock(ByteSourceArray.java:51)
> at org.cmc.sanselan.formats.tiff.TiffField.fillInValue(TiffField.java:356)
> at org.cmc.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:164)
> at org.cmc.sanselan.formats.tiff.TiffReader.readDirectory(TiffReader.java:105)
> at org.cmc.sanselan.formats.tiff.TiffReader.readDirectories(TiffReader.java:96)
> at org.cmc.sanselan.formats.tiff.TiffReader.read(TiffReader.java:416)
> at org.cmc.sanselan.formats.tiff.TiffReader.readContents(TiffReader.java:406)
> at org.cmc.sanselan.formats.tiff.TiffImageParser.getMetadata(TiffImageParser.java:127)
> In the method fillInValue, the method getBlock is called with a length of more than 1,300,000,000
thus resulting in an OOME (the method tries to allocate a byte array of more than 1.3 gigabytes)
> I will attach the guilty picture that triggers this issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message