voyent
OutOfMemory With version 5.0.1  XML
Forum Index -> ICEpdf General
Author Message
lfcnassif

Joined: 22/Apr/2013 07:44:16
Messages: 5
Offline


Hello,

I am evaluating some PDF Viewer libraries and one of them is IcePDF. But as I sequentially open and dispose a number of files, some of them with large images or with thousands of text pages, the application becomes slow and hits outofmemory exceptions. This problem does not happen with version 4.4 (which by its turn does render images slowly), so I think it is related with the new memory manager with soft references. The problem is that the pdf resources are consuming all the heap and is not being garbage collected by jvm properlly and there is no free memory left for the main app and other components. With version 4 there was a very usefull minmemory parameter that did work and was gone. Is there a chance to put minmemory back?

Regards,
Luis Nassif
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1970
Offline


Thanks for the feedback. I'll get you some more information on the issue shortly.
[Email]
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1970
Offline


Thanks again for bringing this to our attention as this is a very high priority issue. I've created http://jira.icesoft.org/browse/PDF-590 and check in a fix on the 5.0.1 branch. The fix will be part of a 5.0.2 release which will be released in the next couple of days.
[Email]
lfcnassif

Joined: 22/Apr/2013 07:44:16
Messages: 5
Offline


Thanks for attention, Patrick. You are right, I was using the Viewer RI. I will check 5.0.2 and post feedback.
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1970
Offline


ICEpdf 5.0.2 is available for download. This release should address the memory usage issue you were seeing.
[Email]
lfcnassif

Joined: 22/Apr/2013 07:44:16
Messages: 5
Offline


Thank you very much. I tested 5.0.2 but now it is not opening a lot of PDF's that were being opened with 5.0.1 and 4.4. Here is the stack trace:

Jun 03, 2013 8:29:07 PM org.icepdf.core.pobjects.Resources getFont
WARNING: Error initializing font.
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
at org.icepdf.core.pobjects.fonts.ofont.Font.init(Font.java:304)
at org.icepdf.core.pobjects.Resources.getFont(Resources.java:147)
at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:722)
at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:169)
at org.icepdf.core.pobjects.Page.init(Page.java:367)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
at org.icepdf.core.pobjects.fonts.ofont.Font.init(Font.java:304)
at org.icepdf.core.util.content.AbstractContentParser.consume_Tf(AbstractContentParser.java:743)
at org.icepdf.core.util.content.OContentParser.parse(OContentParser.java:169)
at org.icepdf.core.pobjects.Page.init(Page.java:367)
at org.icepdf.ri.common.views.PageViewComponentImpl$PageInitializer.run(PageViewComponentImpl.java:1017)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Regards,
Luis
jdhenckel

Joined: 03/Jun/2013 16:46:11
Messages: 1
Offline


I have the same error. I am a first time user, and this is NOT making a good first impression.

I simply copy paste the sample code ViewerComponentExample into a java file, and then compile and run. I get a blank page displayed and a stack trace (same as above).

I am linking with the two jars icepdf-core and icepdf-viewer. Am I missing something?

John
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1970
Offline


I would like like to apologies on behalf of the ICEpdf team. The issue in question is related to changes made to PDF-592 and only effects the open source version.

A patch 5.0.2_P01 will be released later today. Once again we are sorry for any inconvenience during your evaluation of the open source product.
[Email]
lfcnassif

Joined: 22/Apr/2013 07:44:16
Messages: 5
Offline


Thank you very much, Patrick. Problem solved. The library is very good and has a very nice api.

Regards,
Luis Nassif
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team