Перестал печатать "HP LaserJet Professional M1132 MFP"

Ответить
nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 03 май 2024, 10:08

Уважаемые, здравствуйте!

Подскажите пжлст., может кто наталкивался и знает решение?

Ни с того, ни с сего (возможно после очередного обновления), перестал печатать МФУ из сабжа с помощью cups.

При этом, тестовые страницы из утилиты "HP Device..." печатает успешно.

Вот так выглядит ошибка печати через cups:

Код: Выделить всё

мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] JobProgress
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] PrinterStateChanged
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] prnt/hpcups/HPCupsFilter.cpp 600: cupsRasterOpen failed, fd = 0
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] PID 23978 (/usr/lib/cups/filter/hpcups) stopped with status 1.
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] prnt/backend/hp.c 913: ERROR: null print job total=0
Вот так выглядит печать через утилиту "HP Device...":

Код: Выделить всё

мая 03 11:59:30 azapc cupsd[24547]: [Notifier] state=3
мая 03 11:59:30 azapc cupsd[24547]: [Notifier] JobProgress
мая 03 11:59:30 azapc cupsd[24547]: [Notifier] state=3
мая 03 11:59:30 azapc cupsd[24547]: [Notifier] PrinterStateChanged
мая 03 11:59:30 azapc cupsd[24547]: [Job 169] PID 24586 (/usr/lib/cups/filter/hpcups) exited with no errors.
мая 03 11:59:30 azapc cupsd[24547]: [Job 169] PID 24585 (/usr/lib/cups/filter/universal) exited with no errors.
мая 03 11:59:30 azapc cupsd[24547]: [Job 169] prnt/backend/hp.c 913: ERROR: null print job total=0
мая 03 11:59:30 azapc cupsd[24547]: [Job 169] PID 24587 (/usr/lib/cups/backend/hp) exited with no errors.
мая 03 11:59:30 azapc cupsd[24547]: [Job 169] time-at-completed=1714719570

keleg
Сообщения: 5526
Зарегистрирован: 15 сен 2011, 01:58

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение keleg » 08 май 2024, 09:05

А если переставить плагин и включить-выключить принтер из сети?

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 08 май 2024, 10:18

keleg писал(а):
08 май 2024, 09:05
А если переставить плагин и включить-выключить принтер из сети?
Пробовал удалять cups с зависимостями, в том числе и hplip.

МФУ включался и выключался и несколько раз :x

Собрал и пытался анализировать дебажный лог cups, не осилил, но что-то c "PostScript"/ "Ghostscript".

Пока склоняюсь к тому, что проблема может быть в IPP-протоколе, т.к. давеча, настраивая другой МФУ в другой ROSA-системе столкнулся с тем, что по IPP-протоколу некорректно работает "Pantum M7100DN", пришлось подключать его с использованием адреса socket:// и с помощью PS-PPD драйвера (вроде это одно и тоже, но почему-то в URI с IPP этот "Pantum" не заработал (то выдавал ошибку формата бумаги, то задание просто останавливалось с ошибкой "none"), а вот с socket всё нормально).

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 08 май 2024, 11:08

Приложите сюда дебажный лог пожалуйста

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 08 май 2024, 12:58

irton писал(а):
08 май 2024, 11:08
Приложите сюда дебажный лог пожалуйста
Да, конечно - в этом логе запечатлена только одна ошибка задания "Job 168", т.е. никаких других заданий ни ошибочных ни успешных в нём нет.

Вот тут, как понимаю, формируется задание и отправляется на принтер, где возвращается ошибка:

Код: Выделить всё

мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Ghostscript using Any-Part-of-Pixel method to fill paths.
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Ghostscript command line: /usr/bin/gsc -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dUsePDFX3Profile -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -sOutputType=0 -r600x600 -dMediaPosition=7 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 -dcupsRowCount=1 -dcupsRowStep=2 -dcupsInteger0=9 -scupsRenderingIntent=auto -scupsPageSizeName=A4 -dcupsManualCopies -I/usr/share/cups/fonts -c \'<</.HWMargins[18.000000 15.505512 18.000000 15.505493] /Margins[0 0]>>setpagedevice\' -f -_
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Started Ghostscript (PID 23982)
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Started logging (PID 23983)
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Input data feed completed
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Notifier] state=3
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] cfFilterGhostscript: Ghostscript (PID 23982) stopped with status 255
мая 03 11:49:03 azapc cupsd[23846]: cupsdMarkDirty(---J-)
мая 03 11:49:03 azapc cupsd[23846]: cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
мая 03 11:49:03 azapc cupsd[23846]: [Job 168] Set job-printer-state-message to "cfFilterGhostscript: Ghostscript (PID 23982) stopped with status 255", current level=ERROR
Вложения
cupsd.1.log
(160.14 КБ) 13 скачиваний

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 08 май 2024, 16:05

Сейчас на тестовой системе попробовал настроить другой принтер от HP по USB - "HP LaserJet Pro M201-M202 Postscript (recommended)"...

В cups такая же беда:
Остановлено
"cfFilterChain: pdftops (PID 4076) stopped with status 255"
Нда, дела...

Pzz
Сообщения: 2
Зарегистрирован: 09 май 2024, 00:44
Operating system: Fedora Linux

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение Pzz » 09 май 2024, 17:54

nickm писал(а):
08 май 2024, 10:18
Пока склоняюсь к тому, что проблема может быть в IPP-протоколе, т.к. давеча, настраивая другой МФУ в другой ROSA-системе столкнулся с тем, что по IPP-протоколу некорректно работает "Pantum M7100DN",
У пантумов (некоторых, не всех) в прошивке некорректно реализован протокол IPP. M7300FDW точно совершенно из их числа, M7100DN возможно тоже, но я не уверен. Проявляется это в том, что принтер находится, но не печатает (с пропроетарными драйверами печатает).

При этом в cups-2.4.7 добавлена правка, позволяющая CUPS-у нормально работать с этими пантумами. И я рекомендую, с пантумом, обновить cups и еще раз попробовать через IPP, а не через JetDirect (который через socker://...)

Но там ошибка очень низкоуровневая, на уровне именно самого протокола.

Здесь же выглядит так, словно postscript-овский фильтр почему-то сломался.

И кстати, известные мне пантумы не заявляют поддержку postscript через IPP-протокол (хоть фактически и поддерживают).

В общем, я хочу сказать, что это две разные проблемы. Будем разбираться...

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 09 май 2024, 22:14

Добавлю ещё лог от "HP LaserJet Pro M201n" подключённого по USB и падающего в ошибку:
nickm писал(а):
08 май 2024, 16:05
Остановлено
"cfFilterChain: pdftops (PID 4076) stopped with status 255"
Возможно он заработает по сетевому подключению - проверю на будущей неделе.
Вложения
cups.log
(269.96 КБ) 12 скачиваний

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 09 май 2024, 23:01

По крайнему случаю добавлю такой дебаг:

Код: Выделить всё

$ cupsfilter -P ~/HP_LaserJet_Pro_M201n.ppd -m application/vnd.cups-postscript ~/1.pdf > ~/out.ps
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="det"
DEBUG: argv[3]="1.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/home/det/1.pdf"
DEBUG: envp[0]="CONTENT_TYPE=application/pdf"
DEBUG: envp[1]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[2]=""
DEBUG: envp[3]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[4]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[5]="LANG=ru_RU.UTF8"
DEBUG: envp[6]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[7]="PPD=/home/det/HP_LaserJet_Pro_M201n.ppd"
DEBUG: envp[8]="PRINTER_INFO=cupsfilter"
DEBUG: envp[9]="PRINTER_LOCATION=Unknown"
DEBUG: envp[10]="PRINTER=cupsfilter"
DEBUG: envp[11]="USER=det"
DEBUG: envp[12]="CHARSET=utf-8"
DEBUG: envp[13]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
INFO: universal (PID 26648) started.
DEBUG: ppdFilterLoadPPD: Color profile qualifier determined from job and PPD data '.Unspecified.600dpi'
DEBUG: ppdFilterLoadPPD: No ICC profiles specified in PPD
DEBUG: ppdFilterLoadPPD: Searching for profile "-/Unspecified"...
DEBUG: ppdFilterLoadPPD: Last filter determined by the PPD: hpps; Final data MIME type: application/vnd.cups-postscript => PDF filter will log pages in page_log.
DEBUG: ppdFilterUniversal: "*cupsFilter(2): ..." lines in the PPD file:
DEBUG: ppdFilterUniversal:    application/vnd.cups-raw application/octet-stream 0 -
DEBUG: ppdFilterUniversal:    application/vnd.cups-postscript 0 hpps
DEBUG: ppdFilterUniversal: PPD uses "*cupsFilter: ..." lines, so we always convert to format given by FINAL_CONTENT_TYPE
DEBUG: ppdFilterUniversal: Converting from application/pdf to application/vnd.cups-postscript
INFO: cfFilterChain: Running filter: universal
INFO: cfFilterChain: Running filter: pdftops
INFO: cfFilterChain: universal (PID 26649) started.
DEBUG: cfFilterUniversal: Converting from application/pdf to application/vnd.cups-pdf
DEBUG: cfFilterUniversal: Final output format for job: application/vnd.cups-postscript
DEBUG: cfFilterUniversal: Adding pdftopdf to chain
INFO: cfFilterChain: Running filter: pdftopdf
INFO: cfFilterChain: pdftops (PID 26650) started.
DEBUG: ppdFilterPDFToPS: Copying input to temp file "/tmp/0681a664a5a97"
INFO: cfFilterChain: pdftopdf (PID 26651) started.
DEBUG: cfFilterPDFToPDF: Forced page logging selected by options.
DEBUG: cfFilterPDFToPDF: Processing PDF input with QPDF: Page-ranges, page-set, number-up, booklet, size adjustment, ...
DEBUG: cfFilterPDFToPDF: "print-scaling" IPP attribute: auto
DEBUG: cfFilterPDFToPDF: Page 1 too large for output page size, scaling pages to fit.
DEBUG: cfFilterPDFToPDF: Print scaling mode: Scale to fit printable area
PAGE: 1 1
DEBUG: ppdFilterPDFToPS: Printer make and model: HP LaserJet Pro M201-M202 Postscript (recommended)
DEBUG: cfFilterChain: pdftopdf completed with status 0.
DEBUG: ppdFilterPDFToPS: Using image rendering resolution 600 dpi
DEBUG: ppdFilterPDFToPS: Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /tmp/0681a664a5a97
DEBUG: ppdFilterPDFToPS: Started filter gs (PID 26652)
DEBUG: ppdFilterPDFToPS: Started filter pstops (PID 26653)
DEBUG: Page = 612x792; 12,12 to 600,780
DEBUG: ppdFilterPSToPS: slow_collate=0, slow_duplex=0, slow_order=0
INFO: cfFilterChain: pdftopdf (PID 26651) exited with no errors.
DEBUG: cfFilterChain: universal completed with status 0.
INFO: cfFilterChain: universal (PID 26649) exited with no errors.
DEBUG: ppdFilterPSToPS: The print file is empty.
DEBUG: ppdFilterPDFToPS: PID 26652 (gs) stopped with status 255!
DEBUG: ppdFilterPDFToPS: PID 26653 (pstops) exited with no errors.
DEBUG: ppdFilterPDFToPS: Closing files ...
DEBUG: cfFilterChain: pdftops completed with status 255.
ERROR: cfFilterChain: pdftops (PID 26650) stopped with status 255
ERROR: universal filter failed.
ERROR: universal (PID 26648) stopped with status 1

Код: Выделить всё

$ ls -l ~/out.ps 
-rw-r--r-- 1 det det 0 мая 10 01:20 /home/det/out.ps

Код: Выделить всё

$ ls -l ~/1.pdf
-rw-r--r-- 1 det det 8230 мая 10 01:20 /home/det/1.pdf
Что-то подобное упоминается в этом баге, но исправление уже в библиотеке.

Библиотека в системе такая, и она крайняя (интересно, а Убунтоводы что-то сами патчат и пересобирают оную?):

Код: Выделить всё

$ dnf list installed | grep -i lib64ppd
lib64ppd2.x86_64                                        2.0.0-5                    @mirror-rosa-x86_64-main    

Код: Выделить всё

$ dnf info lib64ppd2
Последняя проверка окончания срока действия метаданных: 0:50:33 назад, Чт 09 мая 2024 23:58:11.
Установленные пакеты
Имя          : lib64ppd2
Версия       : 2.0.0
Выпуск       : 5
Архитектура  : x86_64
Размер       : 720 k
Источник     : libppd-2.0.0-5.src.rpm
Репозиторий  : @System
Из репозитор : mirror-rosa-x86_64-main
Краткое опис : Shared library of libppd
URL          : https://github.com/OpenPrinting/libppd
Лицензия     : Apache 2.0 WITH LLVM-exception
Описание     : Shared library of libppd
Последний раз редактировалось nickm 10 май 2024, 10:19, всего редактировалось 1 раз.

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 10 май 2024, 10:19

На R12 проблем нет:

Код: Выделить всё

$ cupsfilter -P ~/hp-laserjet_pro_m201_m202-ps.ppd -m application/vnd.cups-postscript ~/1.pdf > ~/out.ps
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="det"
DEBUG: argv[3]="1.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/home/det/1.pdf"
DEBUG: envp[0]="CONTENT_TYPE=application/pdf"
DEBUG: envp[1]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[2]=""
DEBUG: envp[3]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[4]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[5]="LANG=ru_RU.UTF8"
DEBUG: envp[6]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[7]="PPD=/home/det/hp-laserjet_pro_m201_m202-ps.ppd"
DEBUG: envp[8]="PRINTER_INFO=cupsfilter"
DEBUG: envp[9]="PRINTER_LOCATION=Unknown"
DEBUG: envp[10]="PRINTER=cupsfilter"
DEBUG: envp[11]="USER=det"
DEBUG: envp[12]="CHARSET=utf-8"
DEBUG: envp[13]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
INFO: universal (PID 111425) started.
DEBUG: ppdFilterLoadPPD: Color profile qualifier determined from job and PPD data '.Unspecified.600dpi'
DEBUG: ppdFilterLoadPPD: No ICC profiles specified in PPD
DEBUG: ppdFilterLoadPPD: Searching for profile "-/Unspecified"...
DEBUG: ppdFilterLoadPPD: Last filter determined by the PPD: hpps; Final data MIME type: application/vnd.cups-postscript => PDF filter will log pages in page_log.
DEBUG: ppdFilterUniversal: "*cupsFilter(2): ..." lines in the PPD file:
DEBUG: ppdFilterUniversal:    application/vnd.cups-raw application/octet-stream 0 -
DEBUG: ppdFilterUniversal:    application/vnd.cups-postscript 0 hpps
DEBUG: ppdFilterUniversal: PPD uses "*cupsFilter: ..." lines, so we always convert to format given by FINAL_CONTENT_TYPE
DEBUG: ppdFilterUniversal: Converting from application/pdf to application/vnd.cups-postscript
INFO: cfFilterChain: Running filter: universal
INFO: cfFilterChain: Running filter: pdftops
INFO: cfFilterChain: universal (PID 111426) started.
INFO: cfFilterChain: pdftops (PID 111427) started.
DEBUG: ppdFilterPDFToPS: Copying input to temp file "/tmp/1b3436645229b"
DEBUG: cfFilterUniversal: Converting from application/pdf to application/vnd.cups-pdf
DEBUG: cfFilterUniversal: Final output format for job: application/vnd.cups-postscript
DEBUG: cfFilterUniversal: Adding pdftopdf to chain
INFO: cfFilterChain: Running filter: pdftopdf
INFO: cfFilterChain: pdftopdf (PID 111428) started.
DEBUG: cfFilterPDFToPDF: Forced page logging selected by options.
DEBUG: cfFilterPDFToPDF: Processing PDF input with QPDF: Page-ranges, page-set, number-up, booklet, size adjustment, ...
DEBUG: cfFilterPDFToPDF: "print-scaling" IPP attribute: auto
DEBUG: cfFilterPDFToPDF: Page 1 too large for output page size, scaling pages to fit.
DEBUG: cfFilterPDFToPDF: Print scaling mode: Scale to fit printable area
PAGE: 1 1
DEBUG: ppdFilterPDFToPS: Printer make and model: HP LaserJet Pro M201-M202 Postscript (recommended)
DEBUG: ppdFilterPDFToPS: Using image rendering resolution 600 dpi
DEBUG: ppdFilterPDFToPS: Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /tmp/1b3436645229b
DEBUG: ppdFilterPDFToPS: Started filter gs (PID 111429)
DEBUG: ppdFilterPDFToPS: Started filter pstops (PID 111430)
DEBUG: cfFilterChain: pdftopdf completed with status 0.
DEBUG: Page = 612x792; 12,12 to 600,780
DEBUG: ppdFilterPSToPS: slow_collate=0, slow_duplex=0, slow_order=0
INFO: cfFilterChain: pdftopdf (PID 111428) exited with no errors.
DEBUG: cfFilterChain: universal completed with status 0.
INFO: cfFilterChain: universal (PID 111426) exited with no errors.
DEBUG: ppdFilterPSToPS: Before copy_comments - %!PS-Adobe-3.0

DEBUG: ppdFilterPSToPS: %!PS-Adobe-3.0
DEBUG: ppdFilterPSToPS: %%Invocation: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=? -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=? -sProcessColorModel=DeviceGray -sColorConversionStrategy=Gray -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE ?
DEBUG: ppdFilterPSToPS: %%+ ? -f ?
DEBUG: ppdFilterPSToPS: %%BoundingBox: 0 0 612 792
DEBUG: ppdFilterPSToPS: %%HiResBoundingBox: 0 0 612.00 792.00
DEBUG: ppdFilterPSToPS: %%Creator: GPL Ghostscript 10021 (ps2write)
DEBUG: ppdFilterPSToPS: %%LanguageLevel: 2
DEBUG: ppdFilterPSToPS: %%CreationDate: D:20240510120825+05'00'
DEBUG: ppdFilterPSToPS: %%Pages: 1
DEBUG: ppdFilterPSToPS: %%EndComments
DEBUG: ppdFilterPSToPS: Before copy_prolog - %%BeginProlog

DEBUG: ppdFilterPSToPS: Before copy_setup - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Before page loop - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Copying page 1...
DEBUG: ppdFilterPSToPS: pagew = 588.0, pagel = 768.0
DEBUG: ppdFilterPSToPS: bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
DEBUG: ppdFilterPSToPS: PageLeft = 12.0, PageRight = 600.0
DEBUG: ppdFilterPSToPS: PageTop = 780.0, PageBottom = 12.0
DEBUG: ppdFilterPSToPS: PageWidth = 612.0, PageLength = 792.0
DEBUG: ppdFilterPSToPS: Wrote 1 pages...
DEBUG: ppdFilterPDFToPS: PID 111430 (pstops) exited with no errors.
DEBUG: ppdFilterPDFToPS: PID 111429 (gs) exited with no errors.
DEBUG: ppdFilterPDFToPS: Closing files ...
DEBUG: cfFilterChain: pdftops completed with status 0.
INFO: cfFilterChain: pdftops (PID 111427) exited with no errors.
INFO: universal (PID 111425) exited with no errors.

Код: Выделить всё

$ cupsfilter -P ~/hp-laserjet_professional_m1132_mfp.ppd -m application/vnd.cups-postscript ~/1.pdf > ~/out.ps
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="det"
DEBUG: argv[3]="1.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/home/det/1.pdf"
DEBUG: envp[0]="CONTENT_TYPE=application/pdf"
DEBUG: envp[1]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[2]=""
DEBUG: envp[3]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[4]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[5]="LANG=ru_RU.UTF8"
DEBUG: envp[6]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[7]="PPD=/home/det/hp-laserjet_professional_m1132_mfp.ppd"
DEBUG: envp[8]="PRINTER_INFO=cupsfilter"
DEBUG: envp[9]="PRINTER_LOCATION=Unknown"
DEBUG: envp[10]="PRINTER=cupsfilter"
DEBUG: envp[11]="USER=det"
DEBUG: envp[12]="CHARSET=utf-8"
DEBUG: envp[13]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
INFO: universal (PID 111453) started.
DEBUG: ppdFilterLoadPPD: Color profile qualifier determined from job and PPD data 'Gray.Plain.'
DEBUG: ppdFilterLoadPPD: No ICC profiles specified in PPD
DEBUG: ppdFilterLoadPPD: Searching for profile "-/Plain"...
ERROR: ppdFilterLoadPPD: Last filter could not get determined, page logging by the PDF filter turned off.
DEBUG: ppdFilterLoadPPD: Last filter determined by the PPD: None; Final data MIME type: application/vnd.cups-postscript => PDF filter will not log pages in page_log.
DEBUG: ppdFilterUniversal: "*cupsFilter(2): ..." lines in the PPD file:
DEBUG: ppdFilterUniversal:    application/vnd.cups-raw application/octet-stream 0 -
DEBUG: ppdFilterUniversal:    application/vnd.cups-raster 0 hpcups
DEBUG: ppdFilterUniversal: PPD uses "*cupsFilter: ..." lines, so we always convert to format given by FINAL_CONTENT_TYPE
DEBUG: ppdFilterUniversal: Converting from application/pdf to application/vnd.cups-postscript
INFO: cfFilterChain: Running filter: universal
INFO: cfFilterChain: Running filter: pdftops
INFO: cfFilterChain: universal (PID 111454) started.
INFO: cfFilterChain: pdftops (PID 111455) started.
DEBUG: ppdFilterPDFToPS: Copying input to temp file "/tmp/1b35f664be6dd"
DEBUG: cfFilterUniversal: Converting from application/pdf to application/vnd.cups-pdf
DEBUG: cfFilterUniversal: Final output format for job: application/vnd.cups-postscript
DEBUG: cfFilterUniversal: Adding pdftopdf to chain
INFO: cfFilterChain: Running filter: pdftopdf
INFO: cfFilterChain: pdftopdf (PID 111456) started.
DEBUG: cfFilterPDFToPDF: Suppressed page logging selected by options.
DEBUG: cfFilterPDFToPDF: Processing PDF input with QPDF: Page-ranges, page-set, number-up, booklet, size adjustment, ...
DEBUG: cfFilterPDFToPDF: "print-scaling" IPP attribute: auto
DEBUG: cfFilterPDFToPDF: Page 1 too large for output page size, scaling pages to fit.
DEBUG: cfFilterPDFToPDF: Print scaling mode: Scale to fit printable area
DEBUG: ppdFilterPDFToPS: Printer make and model: HP LaserJet Professional m1132 MFP, hpcups 3.23.8
DEBUG: ppdFilterPDFToPS: Using image rendering resolution 600 dpi
DEBUG: ppdFilterPDFToPS: Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /tmp/1b35f664be6dd
DEBUG: ppdFilterPDFToPS: Started filter gs (PID 111457)
DEBUG: ppdFilterPDFToPS: Started filter pstops (PID 111458)
DEBUG: cfFilterChain: pdftopdf completed with status 0.
INFO: cfFilterChain: pdftopdf (PID 111456) exited with no errors.
DEBUG: cfFilterChain: universal completed with status 0.
INFO: cfFilterChain: universal (PID 111454) exited with no errors.
DEBUG: Page = 612x792; 12,12 to 600,780
DEBUG: ppdFilterPSToPS: slow_collate=0, slow_duplex=0, slow_order=0
DEBUG: ppdFilterPSToPS: Before copy_comments - %!PS-Adobe-3.0

DEBUG: ppdFilterPSToPS: %!PS-Adobe-3.0
DEBUG: ppdFilterPSToPS: %%Invocation: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=? -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=? -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE ? ? -f ?
DEBUG: ppdFilterPSToPS: %%BoundingBox: 0 0 612 792
DEBUG: ppdFilterPSToPS: %%HiResBoundingBox: 0 0 612.00 792.00
DEBUG: ppdFilterPSToPS: %%Creator: GPL Ghostscript 10021 (ps2write)
DEBUG: ppdFilterPSToPS: %%LanguageLevel: 2
DEBUG: ppdFilterPSToPS: %%CreationDate: D:20240510120900+05'00'
DEBUG: ppdFilterPSToPS: %%Pages: 1
DEBUG: ppdFilterPSToPS: %%EndComments
DEBUG: ppdFilterPSToPS: Before copy_prolog - %%BeginProlog

DEBUG: ppdFilterPSToPS: Before copy_setup - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Before page loop - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Copying page 1...
DEBUG: ppdFilterPSToPS: pagew = 588.0, pagel = 768.0
DEBUG: ppdFilterPSToPS: bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
DEBUG: ppdFilterPSToPS: PageLeft = 12.0, PageRight = 600.0
DEBUG: ppdFilterPSToPS: PageTop = 780.0, PageBottom = 12.0
DEBUG: ppdFilterPSToPS: PageWidth = 612.0, PageLength = 792.0
DEBUG: ppdFilterPSToPS: Wrote 1 pages...
DEBUG: ppdFilterPDFToPS: PID 111458 (pstops) exited with no errors.
DEBUG: ppdFilterPDFToPS: PID 111457 (gs) exited with no errors.
DEBUG: ppdFilterPDFToPS: Closing files ...
DEBUG: cfFilterChain: pdftops completed with status 0.
INFO: cfFilterChain: pdftops (PID 111455) exited with no errors.
INFO: universal (PID 111453) exited with no errors.

Код: Выделить всё

$ dnf list installed | grep -i lib64ppd
lib64ppd2.x86_64                                    2.0.0-6                    @mirror-rosa-x86_64-main

Код: Выделить всё

$ dnf info lib64ppd2

Установленные пакеты
Имя          : lib64ppd2
Версия       : 2.0.0
Выпуск       : 6
Архитектура  : x86_64
Размер       : 708 k
Источник     : libppd-2.0.0-6.src.rpm
Репозиторий  : @System
Из репозитор : mirror-rosa-x86_64-main
Краткое опис : Shared library of libppd
URL          : https://github.com/OpenPrinting/libppd
Лицензия     : Apache 2.0 WITH LLVM-exception
Описание     : Shared library of libppd

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 10 май 2024, 17:09

Тото и оно, ghostscript надо пытать, он же новее в платформе

Pzz
Сообщения: 2
Зарегистрирован: 09 май 2024, 00:44
Operating system: Fedora Linux

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение Pzz » 10 май 2024, 19:04

nickm писал(а):
09 май 2024, 23:01
Библиотека в системе такая, и она крайняя (интересно, а Убунтоводы что-то сами патчат и пересобирают оную?):
Убунтоводы и OpenPrinting - это одни и те же люди. Все двое, ага.

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 10 май 2024, 20:41

irton писал(а):
10 май 2024, 17:09
Тото и оно, ghostscript надо пытать, он же новее в платформе
Да, обратил внимание в самом начале на различие версий "Ghostscript" в R13 и R12.

Надо поискать в сети как отлаживать его, ведь ничего подробного в системный лог не попадает, да и строка:

Код: Выделить всё

DEBUG: ppdFilterPSToPS: The print file is empty.
, тоже сути не раскрывает - какова и где причина умалчивается.

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 12:28

nickm писал(а):
10 май 2024, 20:41
Надо поискать в сети как отлаживать его
Хех, даже простая команда роняет процесс с ошибкой 255 - далее "gs_init.ps" не загружается:

Код: Выделить всё

$ strace gs -dNODISPLAY

Код: Выделить всё

$ strace gs -dNODISPLAY
execve("/usr/bin/gs", ["gs", "-dNODISPLAY"], 0x7ffda7e829d8 /* 38 vars */) = 0
brk(NULL)                               = 0x13f9000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Нет такого файла или каталога)
...
...
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8b11535000
openat(AT_FDCWD, "/usr/share/ghostscript/10.03.0/Resource/Init/gs_init.ps", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=101655, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_CUR)                   = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=101655, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "% Copyright (C) 2001-2023 Artife"..., 4096) = 4096
read(3, "def\n\n% Versions of bind for use "..., 4096) = 4096
read(3, "rentdict /RENDERTTNOTDEF known /"..., 4096) = 4096
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x3), ...}, AT_EMPTY_PATH) = 0
write(1, "GPL Ghostscript 10.03.0 (2024-03"..., 37GPL Ghostscript 10.03.0 (2024-03-06)
) = 37
write(1, "Copyright (C) 2024 Artifex Softw"..., 64Copyright (C) 2024 Artifex Software, Inc.  All rights reserved.
) = 64
write(1, "This software is supplied u", 27This software is supplied u) = 27
write(1, "nder the GNU AGPLv3 and comes wi"..., 82nder the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
) = 82
read(3, "licious code may be able to evad"..., 4096) = 4096
brk(0x1194000)                          = 0x1194000
read(3, "\n        {counttomark array asto"..., 4096) = 4096
read(3, "r input.\n% This is called with a"..., 4096) = 4096
read(3, "ndex /.runexec2 cvx 4 .execn\n} ."..., 4096) = 4096
read(3, "l ] cvx\n        //false .setglob"..., 4096) = 4096
read(3, " is a read-only parameter.\n%\n% /"..., 4096) = 4096
read(3, "ile.  This allows us to distingu"..., 4096) = 4096
close(3)                                = 0
munmap(0x7f8b11535000, 135168)          = 0
exit_group(255)                         = ?
+++ exited with 255 +++

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 13 май 2024, 14:11

ну вот не вижу я никакой радиации в трасировщике :(

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 14:25

Ага, походу этот инструмент - strace, в этой ситуации не помощник, но на "9.54.0" вычитывается "gs_init.ps", а после последующие модули и трассировщик останавливается в ожидании чтения команды с клавиатуры:

Код: Выделить всё

...
openat(AT_FDCWD, "/usr/lib64/ghostscript/9.54.0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (Нет такого файла или каталога)
brk(0x1b37000)                          = 0x1b37000
brk(0x1b62000)                          = 0x1b62000
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f113d248000
openat(AT_FDCWD, "/usr/share/ghostscript/9.54.0/Resource/Init/gs_init.ps", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94881, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_CUR)                   = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94881, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "% Copyright (C) 2001-2021 Artife"..., 4096) = 4096
read(3, "DFALLBACK exch def\n/.bind /bind "..., 4096) = 4096
read(3, "by -dOverprint={enable|disable|s"..., 4096) = 4096
newfstatat(1, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}, AT_EMPTY_PATH) = 0
write(1, "GPL Ghostscript 9.54.0 (2021-03-"..., 36GPL Ghostscript 9.54.0 (2021-03-30)
) = 36
write(1, "Copyright (C) 2021 Artifex Softw"..., 64Copyright (C) 2021 Artifex Software, Inc.  All rights reserved.
) = 64
write(1, "This software is supplied un", 28This software is supplied un) = 28
write(1, "der the GNU AGPLv3 and comes wit"..., 81der the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
) = 81
read(3, "aycount .delaycount 1 add put\n  "..., 4096) = 4096
read(3, "null ne { /BeginPage .knownget }"..., 4096) = 4096
read(3, "d signalerror }\n          ifelse"..., 4096) = 4096
brk(0x1b86000)                          = 0x1b86000
read(3, "      } if\n        } if\n        "..., 4096) = 4096
read(3, ".copydict\t\t% <fromdict> <todict>"..., 4096) = 4096
read(3, "the C code uses for running file"..., 4096) = 4096
read(3, "tack array execstack dup length "..., 4096) = 4096
read(3, " =only }\n            ifelse\n    "..., 4096) = 4096
read(3, "ndef\n  //systemdict /.SAFERERROR"..., 4096) = 4096
openat(AT_FDCWD, "/usr/share/ghostscript/9.54.0/Resource/Init/gs_std_e.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3143, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_CUR)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=3143, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "% Copyright (C) 2001-2021 Artife"..., 4096) = 3143
read(4, "", 4096)                       = 0
brk(0x1ba8000)                          = 0x1ba8000
brk(0x1bd7000)                          = 0x1bd7000
brk(0x1c06000)                          = 0x1c06000
brk(0x1c34000)                          = 0x1c34000
brk(0x1c63000)                          = 0x1c63000
brk(0x1c92000)                          = 0x1c92000
brk(0x1cc1000)                          = 0x1cc1000
brk(0x1c44000)                          = 0x1c44000
brk(0x1bc7000)                          = 0x1bc7000
close(4)                                = 0
...
...
openat(AT_FDCWD, "/usr/share/ghostscript/9.54.0/iccprofiles/default_gray.icc", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2460, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_CUR)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2460, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=2460, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\0\0\t\234\0\0\0\0\2\20\0\0mntrGRAYXYZ \0\0\0\0\0\0\0\0"..., 2460) = 2460
lseek(4, 2460, SEEK_SET)                = 2460
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\0\0\t\234\0\0\0\0\2\20\0\0mntrGRAYXYZ \0\0\0\0\0\0\0\0"..., 4096) = 2460
lseek(4, 2460, SEEK_SET)                = 2460
close(4)                                = 0
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=760, ...}, AT_EMPTY_PATH) = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=760, ...}, AT_EMPTY_PATH) = 0
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 760
lseek(4, -709, SEEK_CUR)                = 51
read(4, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 709
close(4)                                = 0
read(3, "t\t\t% PageSize in Policies\nput\t\t\t"..., 4096) = 4096
sysinfo({uptime=30192, loads=[276224, 275744, 278976], totalram=16456835072, freeram=591237120, sharedram=583524352, bufferram=199397376, totalswap=0, freeswap=0, procs=829, totalhigh=0, freehigh=0, mem_unit=1}) = 0
mmap(NULL, 544768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1c740f000
mmap(NULL, 237568, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb1c73d5000
brk(0x958000)                           = 0x958000
read(3, "ir get] (*)\n        .generate_di"..., 4096) = 4096
read(3, "ksafeglobal exec\n  }\n  {\n    //."..., 4096) = 4096
read(3, "putdevice\n  /.type /.writecvs /."..., 4096) = 4096
read(3, "undef .forceundef\t\t% ditto\n  //s"..., 4096) = 4096
brk(0x97a000)                           = 0x97a000
read(3, "rint\n       (               limi"..., 4096) = 673
read(3, "", 4096)                       = 0
close(3)                                = 0
write(1, "GS>", 3GS>)                      = 3
read(0,

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 13 май 2024, 14:29

щас соберу версию без патча, может поможет.
Мы накладываем какой-то патч на этот gs_init.ps

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 14:39

nickm писал(а):
10 май 2024, 20:41

Код: Выделить всё

DEBUG: ppdFilterPSToPS: The print file is empty.
, тоже сути не раскрывает - какова и где причина умалчивается.

Код: Выделить всё

INFO: cfFilterChain: pdftops (PID 26650) started.
DEBUG: ppdFilterPDFToPS: Copying input to temp file "/tmp/0681a664a5a97"
Настроил перехватчик на tmp-директорию, убедился, что указанный файл этой строчкой кода создаётся (т.е. исключил отсутствие именно этого темпового файла в цепочке фильтров) + обламывается запуск gc --> вся проблема в "Ghostscript" :cry:

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 14:44

irton писал(а):
13 май 2024, 14:29
щас соберу версию без патча, может поможет.
Мы накладываем какой-то патч на этот gs_init.ps
Спасибо, хотелось бы попробовать, а вдруг? :beer:

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 13 май 2024, 15:25

пробуйте ghostscript-10.03.0-4 из репозитария

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 15:39

irton писал(а):
13 май 2024, 15:25
пробуйте ghostscript-10.03.0-4 из репозитария
Поведение изменилось и продвинулись чуть дальше, дальше инита "gs_init.ps", но снова падаем:

Код: Выделить всё

openat(AT_FDCWD, "/usr/share/ghostscript/10.03.0/Resource/Init/gs_epsf.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12239, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_CUR)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=12239, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "% Copyright (C) 2001-2023 Artife"..., 4096) = 4096
read(4, ".min exec\n  dup scale           "..., 4096) = 4096
read(4, "any {\n        EPSDEBUG { (EPSCom"..., 4096) = 4047
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/ghostscript/10.03.0/Resource/Init/gs_pdfwr.ps", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=33496, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_CUR)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=33496, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "% Copyright (C) 2001-2024 Artife"..., 4096) = 4096
read(4, "//true\n  /PreserveOverprintSetti"..., 4096) = 4096
read(4, "eserve\n%% Deprecated in 9.06\n%% "..., 4096) = 4096
brk(0x1b37000)                          = 0x1b37000
read(4, "readonly def\n/pdf===only {\t% <fi"..., 4096) = 4096
read(4, "%% dict array name object dict\n "..., 4096) = 4096
read(4, "\t% <file> <DSC string> <dsc dict"..., 4096) = 4096
read(4, "\n  /ColorImageDownsampleThreshol"..., 4096) = 4096
read(4, "y visible\n% if the pdfwrite devi"..., 4096) = 4096
read(4, "slation_table\n            /DSCEn"..., 4096) = 728
read(4, "", 4096)                       = 0
close(4)                                = 0
openat(AT_FDCWD, "/usr/share/ghostscript/10.03.0/Resource/Init/Fontmap", O_RDONLY) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=216, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_CUR)                   = 0
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=216, ...}, AT_EMPTY_PATH) = 0
lseek(4, 0, SEEK_SET)                   = 0
read(4, "%!\n% See Fontmap.GS for the synt"..., 4096) = 216
read(4, "", 4096)                       = 0
openat(AT_FDCWD, "/usr/share/ghostscript/10.03.0/Resource/Init/Fontmap.GS", O_RDONLY) = 5
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=13200, ...}, AT_EMPTY_PATH) = 0
lseek(5, 0, SEEK_CUR)                   = 0
newfstatat(5, "", {st_mode=S_IFREG|0644, st_size=13200, ...}, AT_EMPTY_PATH) = 0
lseek(5, 0, SEEK_SET)                   = 0
read(5, "% Copyright (C) 2001-2023 Artife"..., 4096) = 4096
read(5, "his Fontmap file for licensing t"..., 4096) = 4096
read(5, " Free Software Foundation; eithe"..., 4096) = 4096
read(5, "-Greek-Simplex\t\t\t(hrgks.gsf)\t;\n\n"..., 4096) = 912
read(5, "", 4096)                       = 0
close(5)                                = 0
close(4)                                = 0
write(1, "Fontmap entry for Fontmap.local "..., 62Fontmap entry for Fontmap.local ends prematurely!  Giving up.
) = 62
close(3)                                = 0
brk(0x1b0c000)                          = 0x1b0c000
munmap(0x7fec2ef76000, 135168)          = 0
brk(0x19b5000)                          = 0x19b5000
exit_group(1)                           = ?
+++ exited with 1 +++

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 13 май 2024, 15:47

Закомментировал последнюю строку, работает!

Код: Выделить всё

 $ cat /usr/share/ghostscript/10.03.0/Resource/Init/Fontmap
%!
% See Fontmap.GS for the syntax of real Fontmap files.
%% Replace 1 (Fontmap.GS)
(Fontmap.GS) .runlibfile
% must be at the bottom of line to allow people overriding everything.
% (Fontmap.local) .runlibfileifexists
Надо будет тестировать на живом принтере!

Код: Выделить всё

$ gs -q -dNODISPLAY
GS>quit

Код: Выделить всё

$ /usr/sbin/cupsfilter -P ~/hp-laserjet_professional_m1132_mfp.ppd -m application/vnd.cups-postscript ~/1.pdf > ~/out.ps
DEBUG: argv[0]="cupsfilter"
DEBUG: argv[1]="1"
DEBUG: argv[2]="det"
DEBUG: argv[3]="1.pdf"
DEBUG: argv[4]="1"
DEBUG: argv[5]=""
DEBUG: argv[6]="/home/det/1.pdf"
DEBUG: envp[0]="CONTENT_TYPE=application/pdf"
DEBUG: envp[1]="CUPS_DATADIR=/usr/share/cups"
DEBUG: envp[2]=""
DEBUG: envp[3]="CUPS_SERVERBIN=/usr/lib/cups"
DEBUG: envp[4]="CUPS_SERVERROOT=/etc/cups"
DEBUG: envp[5]="LANG=ru_RU.UTF8"
DEBUG: envp[6]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
DEBUG: envp[7]="PPD=/home/det/hp-laserjet_professional_m1132_mfp.ppd"
DEBUG: envp[8]="PRINTER_INFO=cupsfilter"
DEBUG: envp[9]="PRINTER_LOCATION=Unknown"
DEBUG: envp[10]="PRINTER=cupsfilter"
DEBUG: envp[11]="USER=det"
DEBUG: envp[12]="CHARSET=utf-8"
DEBUG: envp[13]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
INFO: universal (PID 70522) started.
DEBUG: ppdFilterLoadPPD: Color profile qualifier determined from job and PPD data 'Gray.Plain.'
DEBUG: ppdFilterLoadPPD: No ICC profiles specified in PPD
DEBUG: ppdFilterLoadPPD: Searching for profile "-/Plain"...
ERROR: ppdFilterLoadPPD: Last filter could not get determined, page logging by the PDF filter turned off.
DEBUG: ppdFilterLoadPPD: Last filter determined by the PPD: None; Final data MIME type: application/vnd.cups-postscript => PDF filter will not log pages in page_log.
DEBUG: ppdFilterUniversal: "*cupsFilter(2): ..." lines in the PPD file:
DEBUG: ppdFilterUniversal:    application/vnd.cups-raw application/octet-stream 0 -
DEBUG: ppdFilterUniversal:    application/vnd.cups-raster 0 hpcups
DEBUG: ppdFilterUniversal: PPD uses "*cupsFilter: ..." lines, so we always convert to format given by FINAL_CONTENT_TYPE
DEBUG: ppdFilterUniversal: Converting from application/pdf to application/vnd.cups-postscript
INFO: cfFilterChain: Running filter: universal
INFO: cfFilterChain: Running filter: pdftops
INFO: cfFilterChain: universal (PID 70523) started.
DEBUG: cfFilterUniversal: Converting from application/pdf to application/vnd.cups-pdf
DEBUG: cfFilterUniversal: Final output format for job: application/vnd.cups-postscript
DEBUG: cfFilterUniversal: Adding pdftopdf to chain
INFO: cfFilterChain: Running filter: pdftopdf
INFO: cfFilterChain: pdftops (PID 70524) started.
DEBUG: ppdFilterPDFToPS: Copying input to temp file "/tmp/1137c664e1f59"
INFO: cfFilterChain: pdftopdf (PID 70525) started.
DEBUG: cfFilterPDFToPDF: Suppressed page logging selected by options.
DEBUG: cfFilterPDFToPDF: Processing PDF input with QPDF: Page-ranges, page-set, number-up, booklet, size adjustment, ...
DEBUG: cfFilterPDFToPDF: "print-scaling" IPP attribute: auto
DEBUG: cfFilterPDFToPDF: Page 1 too large for output page size, scaling pages to fit.
DEBUG: cfFilterPDFToPDF: Print scaling mode: Scale to fit printable area
DEBUG: cfFilterChain: pdftopdf completed with status 0.
DEBUG: ppdFilterPDFToPS: Printer make and model: HP LaserJet Professional m1132 MFP, hpcups 3.23.12
DEBUG: ppdFilterPDFToPS: Using image rendering resolution 600 dpi
DEBUG: ppdFilterPDFToPS: Running command line for gs: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=%stderr -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=%stdout -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE -c 'save pop' -f /tmp/1137c664e1f59
DEBUG: ppdFilterPDFToPS: Started filter gs (PID 70526)
INFO: cfFilterChain: pdftopdf (PID 70525) exited with no errors.
DEBUG: cfFilterChain: universal completed with status 0.
DEBUG: ppdFilterPDFToPS: Started filter pstops (PID 70527)
DEBUG: Page = 612x792; 12,12 to 600,780
DEBUG: ppdFilterPSToPS: slow_collate=0, slow_duplex=0, slow_order=0
INFO: cfFilterChain: universal (PID 70523) exited with no errors.
DEBUG: ppdFilterPSToPS: Before copy_comments - %!PS-Adobe-3.0

DEBUG: ppdFilterPSToPS: %!PS-Adobe-3.0
DEBUG: ppdFilterPSToPS: %%Invocation: gs -q -dNOPAUSE -dBATCH -dSAFER -dNOMEDIAATTRS -sstdout=? -sDEVICE=ps2write -dShowAcroForm -sOUTPUTFILE=? -dLanguageLevel=3 -r600 -dCompressFonts=false -dNoT3CCITT -dNOINTERPOLATE ? ? -f ?
DEBUG: ppdFilterPSToPS: %%BoundingBox: 0 0 612 792
DEBUG: ppdFilterPSToPS: %%HiResBoundingBox: 0 0 612.00 792.00
DEBUG: ppdFilterPSToPS: %%Creator: GPL Ghostscript 10030 (ps2write)
DEBUG: ppdFilterPSToPS: %%LanguageLevel: 2
DEBUG: ppdFilterPSToPS: %%CreationDate: D:20240513175348+05'00'
DEBUG: ppdFilterPSToPS: %%Pages: 1
DEBUG: ppdFilterPSToPS: %%EndComments
DEBUG: ppdFilterPSToPS: Before copy_prolog - %%BeginProlog

DEBUG: ppdFilterPSToPS: Before copy_setup - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Before page loop - %%Page: 1 1

DEBUG: ppdFilterPSToPS: Copying page 1...
DEBUG: ppdFilterPSToPS: pagew = 588.0, pagel = 768.0
DEBUG: ppdFilterPSToPS: bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
DEBUG: ppdFilterPSToPS: PageLeft = 12.0, PageRight = 600.0
DEBUG: ppdFilterPSToPS: PageTop = 780.0, PageBottom = 12.0
DEBUG: ppdFilterPSToPS: PageWidth = 612.0, PageLength = 792.0
DEBUG: ppdFilterPSToPS: Wrote 1 pages...
DEBUG: ppdFilterPDFToPS: PID 70526 (gs) exited with no errors.
DEBUG: ppdFilterPDFToPS: PID 70527 (pstops) exited with no errors.
DEBUG: ppdFilterPDFToPS: Closing files ...
DEBUG: cfFilterChain: pdftops completed with status 0.
INFO: cfFilterChain: pdftops (PID 70524) exited with no errors.
INFO: universal (PID 70522) exited with no errors.

irton
Сообщения: 706
Зарегистрирован: 30 окт 2021, 04:17
Operating system: Rosa Fresh Xfce

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение irton » 14 май 2024, 02:13

спасибо, в ghostscript 10.03.0-5 исправил

nickm
Сообщения: 332
Зарегистрирован: 31 май 2016, 07:08
Operating system: ROSA Fresh 2023.1

Перестал печатать "HP LaserJet Professional M1132 MFP"

Сообщение nickm » 14 май 2024, 07:07

nickm писал(а):
13 май 2024, 15:47
Надо будет тестировать на живом принтере!
Тест пройден, спасибо!

Ответить

Вернуться в «Обсужденине ROSA Fresh R13 (альфа-версии на новой платформе)»