-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP GS 8.15 dumps core when using "ijs_server_epsonepl" (Epson EPLxxxxL driver) #1077
Comments
CUPS.org User: mike OK, none of the changes to write messages to stderr should have this effect, since the "-sOutputFile=-" will send the output to the real stdout, just like with the CUPS device... I don't have the EPL IJS server installed, and I don't have time to do so, however if you can come up with a traceback via gdb, we might have a chance of tracking the problem down... |
CUPS.org User: till.kamppeter Works perfectly with GPL GhostScript 8.16 (from CVS). |
CUPS.org User: till.kamppeter Here is the gdb output of the current ESP GhostScript (subversion rev 46): root@localhost g]# cat /usr/share/cups/data/testprint.ps | gs -dBATCH -dSAFER -dNOPAUSE -sProcessColorModel=DeviceGray -dBitsPerSample=1 -sDEVICE=ijs -sIjsServer=ijs_server_epsonepl -dIjsUseOutputFD -sDeviceManufacturer=Epson -sDeviceModel=EPL6100L -sIjsParams="EplFlowControl=off,EplDpi=600,EplDensity=3,EplRitech=on,EplTonerSave=off," -sOutputFile=- - > testfile warning: core file may not match specified executable file. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /usr/lib/libz.so.1...done. [root@localhost g]# |
CUPS.org User: mike ESP Ghostscript has a much different IJS driver than GPL Ghostscript CVS; the ESPGS driver has KRGB support while the CVS one does not. Can you try the current Subversion code - I just imported a lot of bug fixes from there, but I didn't touch the IJS driver due to the number of differences... |
CUPS.org User: till.kamppeter The segfault still persists. Here is a new gdb backtrace: [root@localhost g]# cat /usr/share/cups/data/testprint.ps | gs -dBATCH -dSAFER -dNOPAUSE -sProcessColorModel=DeviceGray -dBitsPerSample=1 -sDEVICE=ijs -sIjsServer=ijs_server_epsonepl -dIjsUseOutputFD -sDeviceManufacturer=Epson -sDeviceModel=EPL6100L -sIjsParams="EplFlowControl=off,EplDpi=600,EplDensity=3,EplRitech=on,EplTonerSave=off," -sOutputFile=- - > testfile warning: core file may not match specified executable file. warning: current_sos: Can't read pathname for load map: Input/output error Reading symbols from /usr/lib/libz.so.1...done. [root@localhost g]# |
CUPS.org User: till.kamppeter Works perfectly when one replaces src/gdevijs.c by the file from GPL GhostScript. Problem is that one would ditch HP's KRGB support which means printout quality loss and uneconomic behaviour for most well-spread HP inkjets, but one gets the Epson EPL-xxxxL series working. So a real fix is needed, both HP and Epson users should be served. |
CUPS.org User: till.kamppeter Reported problem to David Suffield and Cory Meisch from HP, as they have written the KRGB patch. |
CUPS.org User: till.kamppeter Here is Dave Suffields answer to the problem: Hi Till, Given the following test case. KRGB mode should never be enabled for cat /usr/share/cups/data/testprint.ps | gs -dBATCH -dSAFER -dNOPAUSE The gsijs_set_krgb_mode() must not be working. This function does two Your traceback looks like it sigfaults in gsijs_fill_rectangle, but The KRGB patch worked find in gpl gs 7.07, but I personally have never -dave
http://www.cups.org/espgs/str.php?L1077+P0+S-2+C0+I0+E0+Q Especially note that removing the KRGB support would fix this bug. Can Mandrakelinux 10.2 (release of Community Edition by the end of this Thank you very much in advance.
|
CUPS.org User: till.kamppeter Here a comment from Hin-Tak Leung: Hi Till, That's interesting. The segfault problem with some version of ghostscript If you haven't really taken any notice about the issues surrounding Regards, Till Kamppeter wrote:
|
CUPS.org User: mike Fixed in Subversion repository. |
CUPS.org User: till.kamppeter I have tested it and works for me now. I have updated the GhostScript package for Mandrakelinux now. |
CUPS.org User: mike Great! |
"str1077.patch": Index: gdevijs.c--- gdevijs.c (revision 50)
/* ---------------- High-level graphic procedures ---------------- */
/* Save buffer (vector) procedures so that we can hook them during banding playback. */ |
Version: 8.15rc1
CUPS.org User: till.kamppeter
If I use the IJS server "ijs_server_epsonepl" for the Epson EPL L series (http://sourceforge.net/projects/epsonepl/) I get
cat /usr/share/cups/data/testprint.ps | gs -dBATCH -dSAFER -dNOPAUSE -sProcessColorModel=DeviceGray -dBitsPerSample=1 -sDEVICE=ijs -sIjsServer=ijs_server_epsonepl -dIjsUseOutputFD -sDeviceManufacturer=Epson -sDeviceModel=EPL6100L -sIjsParams="EplFlowControl=off,EplDpi=600,EplDensity=3,EplRitech=on,EplTonerSave=off," -sOutputFile=- - > testfilegetting page header
ijs_server_get_page_header failed: -2
Segmentation fault (core dumped)
ls -l testfile
-rw-r--r-- 1 root root 174 Feb 10 20:14 testfile
I have asked already on the epsonepl developer mailing list. Hin-Tak Leung, the project leader, answered:
Hmm, in this case, I wonder if it is due to some of ESP ghostscript's
changes to do with stderr. GPL ghostscript 8.15 does work with epson epl.
So it seems to be in some ESP-GhostScript-specific stuff.
The text was updated successfully, but these errors were encountered: