[gs-bugs] [Bug 692107] New: gswin32c.exe pdfwrite CompatibilityLevel=1.3 with changes in PAPERSIZE produces an unhandled Win32-Exception at runtime

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Tue Mar 29 12:59:31 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=692107

           Summary: gswin32c.exe pdfwrite CompatibilityLevel=1.3 with
                    changes in PAPERSIZE produces an unhandled
                    Win32-Exception at runtime
           Product: Ghostscript
           Version: 9.01
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P4
         Component: General
        AssignedTo: support at artifex.com
        ReportedBy: Robert_Hartmann at gmx.net
         QAContact: gs-bugs at ghostscript.com
   Estimated Hours: 0.0


Created an attachment (id=7407)
 --> (http://bugs.ghostscript.com/attachment.cgi?id=7407)
testfile to reproduce the runtime exception

Hi there, 

the Just-In-Time-Debugger (MS VS 2005) reports "Unbehandelte Win32-Ausnahme in
gswin32c.exe [2280]" (this is german for: unhandled Win32-Exception) 

Unbehandelte Ausnahme bei 0x100c6fe3 in gswin32c.exe: 0xC0000005:
Zugriffsverletzung beim Lesen an Position 0x00e97000. 
(segfault?)

The exception occurs when you use -sPAPERSIZE= 
or -dDEVICEWIDTHPOINTS= and -dDEVICEHEIGHTPOINTS= 
in combination with -dCompatibilityLevel=1.3 and -sDEVICE=pdfwrite. 
Without of changing paperlayout, or using -dCompatibilityLevel=1.4 no exception
occurs.

This exception occurs with gs9.01 but not with gs8.71


To reproduce here a batch-file-contents: And you can test with the attached
file (lecture notes with friendly permission by Prof. Alda).

@echo off
SETLOCAL

set GSDIR=%ProgramFiles%\gs
set GSFONTS=%GSDIR%\fonts
: set GSVersion=%GSDIR%\gs6.50
: set GSVersion=%GSDIR%\gs7.04
: set GSVersion=%GSDIR%\gs8.71
set GSVersion=%GSDIR%\gs9.01


: rem Konvertiere PDF nach PDF 1.3

echo gs: pdf-nach-pdf-1.3 ...
"%GSVersion%\bin\gswin32c.exe" -I"%GSVersion%\bin;%GSVersion%\lib;%GSFONTS%"
-s"FONTMAP#%GSFONTS%\fontmap" -dCompatibilityLevel#1.3 -dDEVICEWIDTHPOINTS#842
-dDEVICEHEIGHTPOINTS#595 -dEmbedAllFonts#true -dSubsetFonts#true
-dCompressFonts#true -dDownsampleColorImages#false -dDownsampleGrayImages#false
-dDownsampleMonoImages#false -dEncodeColorImages#true -dEncodeGrayImages#true
-dEncodeMonoImages#true -sDSCEncoding#PDFDocEncoding  -dPDFSETINGS#/default
-dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sDEVICE#pdfwrite
-s"OutputFile#%CD%\out-v1_3.pdf"  "%CD%\temp03-comp.pdf"

:"%GSVersion%\bin\gswin32c.exe" -I"%GSVersion%\bin;%GSVersion%\lib;%GSFONTS%"
-s"FONTMAP#%GSFONTS%\fontmap" -dCompatibilityLevel#1.3 -dEmbedAllFonts#true
-dSubsetFonts#true -dCompressFonts#true -dDownsampleColorImages#false
-dDownsampleGrayImages#false -dDownsampleMonoImages#false
-dEncodeColorImages#true -dEncodeGrayImages#true -dEncodeMonoImages#true
-sDSCEncoding#PDFDocEncoding  -dPDFSETINGS#/default -dBATCH -dNOPAUSE
-dNOOUTERSAVE -dUseCIEColor -sDEVICE#pdfwrite -s"OutputFile#%CD%\out-v1_3.pdf" 
"%CD%\temp03-comp.pdf"



: rem Konvertiere PDF nach PDF 1.4

echo gs: pdf-nach-pdf-1.4 ...
"%GSVersion%\bin\gswin32c.exe" -I"%GSVersion%\bin;%GSVersion%\lib;%GSFONTS%"
-s"FONTMAP#%GSFONTS%\fontmap" -dCompatibilityLevel#1.4 -dDEVICEWIDTHPOINTS#842
-dDEVICEHEIGHTPOINTS#595 -dEmbedAllFonts#true -dSubsetFonts#true
-dCompressFonts#true -dDownsampleColorImages#false -dDownsampleGrayImages#false
-dDownsampleMonoImages#false -dEncodeColorImages#true -dEncodeGrayImages#true
-dEncodeMonoImages#true -sDSCEncoding#PDFDocEncoding  -dPDFSETINGS#/default
-dBATCH -dNOPAUSE -dNOOUTERSAVE -dUseCIEColor -sDEVICE#pdfwrite
-s"OutputFile#%CD%\out-v1_4.pdf"  "%CD%\temp03-comp.pdf"

: 
:"%GSVersion%\bin\gswin32c.exe" -I"%GSVersion%\bin;%GSVersion%\lib;%GSFONTS%"
-s"FONTMAP#%GSFONTS%\fontmap" -dCompatibilityLevel#1.4 -dEmbedAllFonts#true
-dSubsetFonts#true -dCompressFonts#true -dDownsampleColorImages#false
-dDownsampleGrayImages#false -dDownsampleMonoImages#false
-dEncodeColorImages#true -dEncodeGrayImages#true -dEncodeMonoImages#true
-sDSCEncoding#PDFDocEncoding  -dPDFSETINGS#/default -dBATCH -dNOPAUSE
-dNOOUTERSAVE -dUseCIEColor -sDEVICE#pdfwrite -s"OutputFile#%CD%\out-v1_4.pdf" 
"%CD%\temp03-comp.pdf"



ENDLOCAL

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list