PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 12:59 
But I'm still stuck on 18. At least it's more than 2.


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 13:10 
Are there any error messages by page 18?

Would it be possible to send us (support pd4ml com) the DjVu file to test on our workstations? Hopefully there is no sensitive info in it.


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 14:14 
I sent the file, but I also tried another and it got stuck on p. 14 so I believe the problem is somewhere in my system. I also noticed an error in the command prompt.

Exception in thread "Thread-5" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
n Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at org.zefer.djvupdf.ConversionInProgressDialog.prepareImage(ConversionI
nProgressDialog.java:677)
at org.zefer.djvupdf.ConversionInProgressDialog$RunExport.run(Conversion
InProgressDialog.java:403)


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 14:29 
Yes, that is the reason, I guess. It cannot allocate memory enough to store pre-cached image representations of book pages. Can it be you defined a huge end device screen resolution (WxH)? Or may be it is a big "image scale" value in "Adjust image quality" dialog?

A workaround would be to give a bigger heap size limit to Java. For example replace -Xmx512m with -Xmx980m. It can be done either in the command line or in the shortcut properties (in Start Menu)

BTW: thank you for the DJVU file. On my PC it stuck on page 211 also because of out of memory. It seems we need to optimize memory deallocation/garbage collection.


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 14:46 
I did the -Xmx trick you suggested. I'm halfway there now. A friend had the same problem and it worked for her, too. Thank you again, for the attention. I use 800x600 px and I guess it's not too large. I might offer some more feedback on the product. Sometimes when I switch pages or check some of the checkboxes the application just terminates. Also, when I want to click "cancel" when converting I need to do it twice to work. I don't know if it's intentional. Still, awesome program!


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 15:06 
Ooh, I got the error 10 pages before the end. Can I somehow save what's already converted?


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 15:09 
"Double cancel" is a feature. A first click lets child processes gracefully end. After that the button label changes to "Close". And before a closing you have a chance to save already converted pages as PDF.

Now I see we need to change the behavior to be less visually confusing. Probably it should change the button label quicker.

The occasional application terminations, I guess, are also caused by memory shortage. We'll re-check it.


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 15:11 
> Ooh, I got the error 10 pages before the end. Can I somehow save what's already converted?

In normal situations after "Cancel" you can save. After OutOfMemory error - it depends.


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 15:22 
It doesn't let me save. Isn't there some temporary folder, where the images are stored?

Also, what does -Xmx do? Could it be used with random numbers or just 512 and 980. Is there a bigger amount I can use?


  Subject: Re: Djvu to Pdf eBook converter
   PostPosted: 13 Jul 2012, 15:32 
cd %TEMP% should bring you to the directory with the images. Their names are prefixed with spool

-X512m - requests to limit Java's heap size by 512 MB. You may try -X1500m, or -X2g

Some older Java implementations ignore the parameter if it is greater than 1000MB. Most probably the problem is already solved by modern Java runtimes, but after some bad experience I am still very careful with the values.



[Reply]     [ 31 posts ]  Go to page Previous  1, 2, 3, 4  Next

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share