Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.0
-
Component/s: None
-
Labels:None
-
Environment:ICEpdf 4.3.4
-
Salesforce Case Reference:
-
Workaround Description:There are some pretty big images in this PDF actually one per page. I need to bump the heap up to 512mb in order to decode the images. For now I suggest setting the system property -Xmx512m .
Description
Even after allocating additional memory, the PDF file does not render and the following exception is thrown:
Feb 4, 2013 3:41:36 PM org.icepdf.core.views.swing.PageViewComponentImpl$PageIni
tilizer run
WARNING: Error initiating page: 0
java.lang.OutOfMemoryError: Java heap space
at jj2000.j2k.image.DataBlkFloat.<init>(DataBlkFloat.java:97)
at jj2000.j2k.wavelet.synthesis.InvWTFull.getInternCompData(InvWTFull.java:272)
at jj2000.j2k.image.ImgDataConverter.getData(ImgDataConverter.java:249)
at jj2000.j2k.image.ImgDataConverter.getInternCompData(ImgDataConverter.java:20
5)
at jj2000.j2k.image.invcomptransf.InvCompTransf.invICT(InvCompTransf.java:577)
at jj2000.j2k.image.invcomptransf.InvCompTransf.getInternCompData(InvCompTransf
.java:364)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.readSubsampledRaster
(J2KReadState.java:831)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.readBufferedImage(J2
KReadState.java:384)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.read(J2KImageReade
r.java:454)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at org.icepdf.core.pobjects.Stream.jpxDecode(Stream.java:973)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2443)
Feb 4, 2013 3:41:36 PM org.icepdf.core.views.swing.PageViewComponentImpl$PageIni
tilizer run
WARNING: Error initiating page: 0
java.lang.OutOfMemoryError: Java heap space
at jj2000.j2k.image.DataBlkFloat.<init>(DataBlkFloat.java:97)
at jj2000.j2k.wavelet.synthesis.InvWTFull.getInternCompData(InvWTFull.java:272)
at jj2000.j2k.image.ImgDataConverter.getData(ImgDataConverter.java:249)
at jj2000.j2k.image.ImgDataConverter.getInternCompData(ImgDataConverter.java:20
5)
at jj2000.j2k.image.invcomptransf.InvCompTransf.invICT(InvCompTransf.java:577)
at jj2000.j2k.image.invcomptransf.InvCompTransf.getInternCompData(InvCompTransf
.java:364)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.readSubsampledRaster
(J2KReadState.java:831)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KReadState.readBufferedImage(J2
KReadState.java:384)
at com.sun.media.imageioimpl.plugins.jpeg2000.J2KImageReader.read(J2KImageReade
r.java:454)
at javax.imageio.ImageIO.read(ImageIO.java:1422)
at org.icepdf.core.pobjects.Stream.jpxDecode(Stream.java:973)
at org.icepdf.core.pobjects.Stream.getImage(Stream.java:2443)
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
The PDF in question can be loaded successfully in 5.0 using 256MB of ram. Closing this issue. There may be future optimization in future to bring the max memory down.