Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Duplicate
-
Affects Version/s: 6.1
-
Fix Version/s: 6.1.1
-
Component/s: Core/Rendering, Examples
-
Labels:None
-
Environment:All
-
Support Case References:Support Case #13720 - https://icesoft.my.salesforce.com/5007000001ZM39L
Description
With the provided PDF file, if it is run through the PageCapture.java sample, it crashes the JRE:
An unrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x5737863a, pid=8144, tid=3104
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) Client VM (24.65-b04 mixed mode windows-x86 )
# Problematic frame:
# C [dcpr.dll+0x863a]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\ICEpdf\ICEpdf-pro-6.1.0-src\ICEpdf-Pro-6.1.0\hs_err_pid8144.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Java Result: 255
The same PDF file renders fine using the Viewer code. It seems to be crashing on the following code:
page.paint(g, GraphicsRenderingHints.PRINT,
Page.BOUNDARY_CROPBOX, rotation, scale);
An unrecoverable stack overflow has occurred.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x5737863a, pid=8144, tid=3104
#
# JRE version: Java(TM) SE Runtime Environment (7.0_67-b01) (build 1.7.0_67-b01)
# Java VM: Java HotSpot(TM) Client VM (24.65-b04 mixed mode windows-x86 )
# Problematic frame:
# C [dcpr.dll+0x863a]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\ICEpdf\ICEpdf-pro-6.1.0-src\ICEpdf-Pro-6.1.0\hs_err_pid8144.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Java Result: 255
The same PDF file renders fine using the Viewer code. It seems to be crashing on the following code:
page.paint(g, GraphicsRenderingHints.PRINT,
Page.BOUNDARY_CROPBOX, rotation, scale);
Issue Links
- is duplicated by
-
PDF-966 Rendering PDF causes JRE crash
- Closed
For the customer it crashes with the following code: "Document.getPageImage(0, GraphicsRenderingHints.PRINT, Page.BOUNDARY_CROPBOX, 0.0, 1.0)"