| <<<Back 1 day (to 2018/03/07) | 20180308 |
chrisl | Ghostscript/GhostPDL 9.23 Release Candidate 1 is available for testing: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases | 09:40.25 |
deekej | chrisl: hello :) ImageMagick haven't created the C reproducer as you asked... :-/ | 10:08.34 |
| instead they have just described the issue there more thoroughly: | 10:08.49 |
| https://github.com/ImageMagick/ImageMagick/issues/948#issuecomment-371334086 | 10:08.50 |
| there's a big chance this is a problem with glibc/gcc | 10:09.25 |
| because the same source code works in F27, but it doesn't in f28 | 10:09.41 |
chrisl | They've said they'll try when they have time - which is fair enough | 10:10.06 |
deekej | ah, you're right :) | 10:10.29 |
chrisl | FWIW, if/when I get time, I'll try to take a look at it | 10:10.53 |
deekej | anyway, I'll try to do a scratch build for 9.23 RC later today | 10:11.00 |
| to see if there are any error/warnings there | 10:11.13 |
kens | Thanks deekej | 10:12.26 |
| FWIW we seem to have uncovered a regression so there will probably have to be at least one more RC | 10:13.00 |
| Its still worth checking the current one though | 10:13.14 |
pedahzur | Howdy! I had, before today, a working install of drivers for an EPSON WF-3620. Tried to print today; got "filter failed." Deleted, re-added printer. Same thing. Now, the call to Ghostscript is failing. I'm not really sure why. Any tips on how to debug this? The error (appears) to start here: https://gist.github.com/jkugler/1544a9dbe521e11bfcc9c70ab556d57e#file-gistfile1-txt-L107 | 18:32.53 |
chrisl | pedahzur: It's probably because cups is using a ghostscript command line option it shouldn't be | 18:34.51 |
| cups has been using -DDEBUG in a "normal" environment | 18:35.26 |
| Admittedly, there was a ghostscript bug that caused -dDEBUG to cause the problem, but the reason we missed it was because our QA testing does set a debug option | 18:36.57 |
pedahzur | chrisl: Thanks. I don't see that option being passed to gs here: https://gist.github.com/jkugler/1544a9dbe521e11bfcc9c70ab556d57e#file-gistfile1-txt-L72 Is there somewhere else I should look? | 18:38.40 |
chrisl | No, you are correct, I don't see it either.... hmmm | 18:39.55 |
pedahzur | I have plenty of free disk space. /tmp has 4.2GB free. And it seems to fail *immediately*, so it's not like it processes for a while. Even simple pages (like a printer info page in CUPS web admin) fail. | 18:41.30 |
chrisl | Hmm, it also says Ghostscript 9.18..... | 18:41.39 |
pedahzur | This is Ubuntu 16.04. I couldn't find a PPA with anything newer. Really would rather not compile my own, but.... | 18:42.37 |
| And it *was* working. Yes, I have updated packages, (security, etc). But man...I don't know what else could have changed. Seems weird. What can I do to pull more detail out of the error? | 18:43.40 |
| My last ghostscript update was 2017-08-28. I know I've printed since then. :) | 18:45.17 |
chrisl | The problem is, I can't guess what particular patches are in the Ghostscript package. | 18:46.31 |
| If you look at https://wiki.ubuntu.com/DebuggingPrintingProblems there's a section called: "Capturing print job data". Following that should get you the file Ghostscript is trying to interpret when it errors out. | 18:47.39 |
| Although, the "Some glyphs of the font DejaVuSans requires a patented True Type interpreter." warnings are strange, because it shouldn't be using that code...... | 18:51.15 |
pedahzur | chrisl: Yeah, there is a d00190-001 file in /var/spool/cups. It's the "printer status page" that I tried to print. Do you want it? :) | 18:51.29 |
chrisl | can you view that file? | 18:52.24 |
| I'd guess it's PDF | 18:52.33 |
pedahzur | Yup, I can view it. | 18:53.37 |
chrisl | With ? | 18:53.44 |
pedahzur | And yes, it's PDF according to `file` | 18:53.45 |
| okular | 18:53.50 |
chrisl | Okay, does gs open it? | 18:54.03 |
pedahzur | Yup. Just fine. Same warnings about the "patented" fonts. But opens it just fine. | 18:58.14 |
chrisl | Well, that's baffling :-( | 18:58.44 |
| pedahzur: My next suggestion would be try the gs command line from your log, but it's need changed slightly | 19:00.39 |
| Assuming the file is still in the same place, I'd try the following: | 19:02.43 |
| gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=out.cups -r360x360 -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -dcupsCompression=1 -scupsPageSizeName=Letter -I/usr/share/cups/fonts -c '<</.HWMargins[8.400000 8.400000 8.400024 8.400024] /Margins[0 0]>>setpagedevice' -f /var/spool/cups/d00190-001 | 19:02.47 |
pedahzur | ARRGHHH.... INFO: Rendering completed. echo $? returns 0. | 19:04.20 |
| Whuh? | 19:04.21 |
chrisl | It's possible there's some environment variable having an influence, but seems a bit out there | 19:05.13 |
pedahzur | Well, this is frustrating.... | 19:05.48 |
chrisl | Maybe failing to create a temp file due to permissions | 19:06.00 |
pedahzur | drwxrwxrwt 78 root root 49152 Mar 8 10:05 tmp | 19:06.26 |
| All the env vars are in that gist I posted, if that helps. | 19:07.27 |
| I'd blame the Epson wrapper, but I see "Error: /unregistered in --run--" and "GPL Ghostscript 9.18: Unrecoverable error, exit code 1" before the epson wrapper exits with 1. | 19:08.12 |
chrisl | The only one I see that Ghostscript (or more accurately the cups device) will read is RIP_MAX_CACHE=128m | 19:08.32 |
| So, you could try running the gs command with that in the environment | 19:08.54 |
pedahzur | OK. I found one reference to the "/unregistered" error message here: https://ubuntuforums.org/showthread.php?t=2338940&p=13553546#post13553546 but their solution was to compile and install GS 9.20. :) | 19:09.37 |
| Rendering complete, $? is 0 (with RIP_MAX_CACHE=128m) | 19:10.52 |
chrisl | I guess it's worth checking you and cups are using the same Ghostscript? | 19:13.19 |
| I can't imagine not.... | 19:13.29 |
pedahzur | WAIT! | 19:16.36 |
| IT *IS* rip_max_cache. After I ran 'export RIP_MAX' I accidentally invoked it with sudo...which didn't translate the environment. | 19:17.42 |
| Got the same failure running it as my user with that setting; unset it, and it ran fine. | 19:18.00 |
| Siiiiigh...but WHY!?! | 19:18.06 |
| OK....where do I adjust that setting? | 19:18.14 |
chrisl | Unfortunately, I have no idea - that's a cups thing. | 19:18.45 |
pedahzur | Works fine with 512m. | 19:18.52 |
| Yaaaaaaaaaaaaaaaaaaaay! | 19:23.20 |
| It works! | 19:23.21 |
chrisl | You found how to change it? | 19:23.32 |
pedahzur | chrisl: RIPCache in cupsd.conf | 19:23.32 |
| Set it to 512m | 19:23.36 |
| It works now! | 19:23.39 |
chrisl | Ah, great. | 19:23.41 |
pedahzur | So, for some reason the default of 128m was no longer enough. Oooookaaaay. | 19:23.53 |
| Thank you so much!!! | 19:23.55 |
chrisl | You did the hard work | 19:24.02 |
pedahzur | And I learned some more cups/gs debugging knowledge. I greatly appreciate it! | 19:24.23 |
chrisl | Glad it's working | 19:24.38 |
| And just in time, as I have to go! | 19:25.15 |
velix | Sorry for asking in here. I'm a commercial user. Am I allowed to create PDFs with invoices using Ghostscript with the free license and give it to customers (private, commercial) or do I need to purchase a license? | 21:31.30 |
pedahzur | velix: Ghostscript if GPL. That means if you make modifications to Ghostscript, and give that to your customers, you *must* give them your source code. However, anything you make with Ghostcript (in this case, your invoices) have no restrictions. No need to purchase a license. | 21:34.16 |
velix | pedahzur: But check your license: "Use Ghostscript to translate old PostScript files into PDF files for use in generating internal reports or documents (within organization)." | 21:34.47 |
| "Use Ghostscript within an IT department for internal uses only." | 21:34.52 |
| pedahzur: Ghostscript changed from GPL to AGPL a while ago. | 21:35.13 |
pedahzur | velix: Yes, but are providing a service that generates PDFs? That is, does your service allow people to come to create arbitrary PDFs? Or are you creating invoices and sending them to customers? | 21:36.11 |
velix | I am creating invoices and send them to customers. | 21:36.35 |
| I'm printing to PS or create PS by a script and use Ghostscript to create a PDF from PS. | 21:36.59 |
pedahzur | Then you're fine. | 21:37.04 |
velix | pedahzur: the license information is very missleading here,) | 21:37.20 |
| ;) | 21:37.21 |
| pedahzur: thanks for your help :) | 21:37.37 |
pedahzur | velix: Also, if you're not making any changes to the Ghostscript code, then there is nothing you're obligated to distribute. The license carries *no* restrictions on use. | 21:39.05 |
velix | pedahzur: Nah, I won't do that. thanks a lot. | 21:39.25 |
| I like that Ghostscript keeps track of bookmarks when splitting a document. But since I'm splitting a 6,000 page document into 10 page chunks, it takes a while. Ghostscript goes through the whole document at each extract process :D | 21:55.10 |
| Does this work better if the document is linearized? | 22:29.42 |
| Anyone with an idea? | 23:26.26 |
| Forward 1 day (to 2018/03/09)>>> | |