You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/11/11 03:44:18 UTC

DO NOT REPLY [Bug 46182] New: PowerPointExtractor immediately throws OutOfMemoryError

https://issues.apache.org/bugzilla/show_bug.cgi?id=46182

           Summary: PowerPointExtractor immediately throws OutOfMemoryError
           Product: POI
           Version: 3.2-dev
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: HSLF
        AssignedTo: dev@poi.apache.org
        ReportedBy: charlie.hubbard@gmail.com


Trying to extract the text from a power point presentation throws an
OutOfMemoryError immediately.  Trying to increase the Heap proved useless. 
Trying to create a VM of 2Gigs fails because the VM can't allocate enough
space, and anything smaller still provides an OutOfMemoryError.

Here is the following code being executed:

public class Test {
    public static void main(String[] args) throws Exception{
        try {
            PowerPointExtractor _extractor = new PowerPointExtractor(new
FileInputStream("Presentation - Spani#113D94.ppt"));
            String _text = _extractor.getText();
            System.out.print(_text);
        } catch( Throwable e ) {
            e.printStacktrace();
            System.out.println( Runtime.getRuntime().freeMemory() + " free out
of " + Runtime.getRuntime().totalMemory() );
        }
    }
}


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 46182] PowerPointExtractor immediately throws OutOfMemoryError

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46182


Charlie Hubbard <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |ftp://www.workgroupsolutions
                   |                            |.com/pub/charlie/Presentatio
                   |                            |n-Spani.ppt




--- Comment #1 from Charlie Hubbard <ch...@gmail.com>  2008-11-10 18:54:30 PST ---
The expectation would be that it would parse correctly given that this
powerpoint presentation is only 5MB so it seems like even given 20MB of RAM it
could parse it without a problem.  This file won't even parse if you give it 1
Gig!  If you can't parse it then I would expect some more predictable exception
to thrown rather than OutOfMemory.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 46182] PowerPointExtractor immediately throws OutOfMemoryError

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46182


Yegor Kozlov <ye...@dinom.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Yegor Kozlov <ye...@dinom.ru>  2008-11-11 02:07:36 PST ---
Fixed in r713009 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=713009 )

Yegor


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org