Closed Shirkit closed 5 years ago
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
@Shirkit can you please let us know if you are using the 32-bit or 64-bit version of Java? As explained in this comment, the 32-bit version of Java has a much, much lower heap space.
I was able to print your HTML content fine using AdoptOpenJDK 11.0.4 64-bit
Yep, I feel kinda stupid right now. Installing the 64bits Java solved the issue.
Thanks for this awesome software!
Yep, I feel kinda stupid right now. Installing the 64bits Java solved the issue.
Oracle doesn't really explain why, but they made the 64-bit version of Java grab a heap spaced based on available memory. 32-bit is based on a fixed value. It's very confusing! 😄
Hey,
So it seems that the fix commited on #27 did not solve the issue fully. I'm trying to print a page that's not on my server, it's page response from an API I'm using.
The URL in quesiton I'm trying to print is this: http://nfe.webmaniabr.com/danfe/29190734260638000183650010000000661195144527/
So my implementation is doing an AJAX request to that page, grabbing the HTML code and passing to QZ as
type: html
andformat: plain
.While I can do a
java -Xms1024m -Xmx1024m -jar "C:\Program Files\QZ Tray\qz-tray.jar"
, that will not work if QZ-Tray is closed and is launched via the browser (via thewss
protocol), which is very likely to happen.I'm running Windows 10, latest update. Java(TM) SE Runtime Environment (build 1.8.0_211-b12) Google Chrome Canary V77
Any help is appreciated.