possible memory leak in GeoTiffReader
-------------------------------------

                 Key: GEOT-2217
                 URL: http://jira.codehaus.org/browse/GEOT-2217
             Project: GeoTools
          Issue Type: Bug
    Affects Versions: 2.5.2, 2.4.4
         Environment: linux 64-bit 
sun jdk 1_6.10  
tested with 2.4.4 and 2.5.2
            Reporter: Brent


Running the following program will result in an OutOfMemoryError.  Set the heap 
size smaller than default to cause failure faster.

        public static void main(String[] args) {

                try {
                        int count = 0;
                        File f = new File ("my_image.tif");
                        while (true) {
                                GeoTiffReader reader;
                                reader = new GeoTiffReader(f, null);//new 
Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE));
                                reader.dispose();
                                System.out.println(count++);
                        }
                } catch (Exception e) {
                        e.printStackTrace();
                }
        }



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to