Skip to content
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

Unable to print from web browsers in Cooker #2967

Open
edwardp3 opened this issue Mar 12, 2024 · 11 comments
Open

Unable to print from web browsers in Cooker #2967

edwardp3 opened this issue Mar 12, 2024 · 11 comments
Labels
cooker OpenMandriva Cooker in progress The issue is being processed upstream Not our bug

Comments

@edwardp3
Copy link

edwardp3 commented Mar 12, 2024

OpenMandriva version:

Cooker (both Plasma 6 and Plasma 5)

Describe the bug:

Installed CUPS and HPLIP to add printer (HP OfficeJet Pro 8210). Upon installation of packages related to HPLIP, foomatic-filters reported a script error, see #2966.

Was able to add printer using both CUPS and HPLIP. Although printing works when sending a test page from either the CUPS or HPLIP interfaces, or if printing from LibreOffice, printing does not work from the web browsers (Chromium, Vivaldi).

If I attempt to print a web page, the printer is listed in their user interfaces (UI), but nothing is sent to the printer. I had the CUPS interface open when printing a web page, it did not show any job for it.

If selecting the system print dialog (screenshot below), no printers are listed.

Steps to reproduce:

  • Install CUPS and HPLIP, including their dependencies.
  • Add printer using either CUPS (localhost:631) or HPLIP.
  • Printer is successfully added and accepts test print pages from either interface.
  • Open a web browser (Chromium, Vivaldi), print a web page, printer is listed in its UI, but nothing is sent to the printer.
  • Then attempt to print again, but select to use the system print dialog, no printers are listed.

Observed behavior:

Printer did not receive print jobs from the web browsers.

Expected behavior:

Printer should have received print jobs from the web browsers.

Additional comment:

Logs and screenshots if relevant
System print dialog:

printer-dialogue-omcooker

@edwardp3 edwardp3 added the new New bug submitted label Mar 12, 2024
@edwardp3
Copy link
Author

edwardp3 commented Mar 13, 2024

Discovered task-printing-hp was not installed. Package was installed with its dependencies, resulting in no change. Test pages continue to print from CUPS/HPLIP, nothing from the web browsers.

Attaching a screenshot showing what Chromium displays when the system print dialog is selected.

Screenshot_20240313_174319

@rugyada rugyada added the cooker OpenMandriva Cooker label Mar 14, 2024
@benbullard79
Copy link

benbullard79 commented Mar 14, 2024

P6: If you check you may find you can print from Firefox and Falkon. You can not print from any Chrome based browser. Here that includes Chromium, Google-Chrome-Stable and Brave. They all show the same dialog as Chromium in other words they only offer choice of "Save to pdf" but no printer recognized.

Edit:
P5: I need to check this. I recall it working yesterday but need to confirm after dsyncing system.

@benbullard79
Copy link

Same problem in Cooker Plasma5.

@edwardp3
Copy link
Author

With Cooker/Plasma 5, I ran both Vivaldi (Chromium-based) and Chromium from a terminal window. When I attempted to print something simple, this is what appeared in the terminal from each browser:

Vivaldi:

Warning: disabling flag --expose_wasm due to conflicting flags

Chromium:

Warning: disabling flag --expose_wasm due to conflicting flags
[40660:40660:0314/193354.177248:ERROR:device_event_log_impl.cc(192)] [19:33:54.176] Printer: print_job_worker.cc:318 Failure to render printed document - error kFailed
[40660:40660:0314/193354.177661:ERROR:device_event_log_impl.cc(192)] [19:33:54.177] Printer: print_error_dialog.cc:61 Something went wrong when trying to print.  Please check your printer and try again.

@benbullard79
Copy link

benbullard79 commented Mar 15, 2024

Report filed upstream: https://issues.chromium.org/issues/329476338

For now the workaround is to select "print to pdf" and then print the .pdf.

This report labled "in progress" because OM is looking in to this. What Chromium devs will do with this I do not know but we can hope for a quick resolution.

@benbullard79 benbullard79 added upstream Not our bug in progress The issue is being processed labels Mar 15, 2024
@edwardp3
Copy link
Author

I saw it, thank you.

I just attempted to add the printer back in using CUPS and it appears to have succeeded in not getting the list of printer drivers...

Screenshot_20240315_161245

@edwardp3
Copy link
Author

edwardp3 commented Mar 15, 2024

I found an old bug report here that for an HP Photosmart printer, removing the ipp-usb and usbmuxd packages fixed the issue. However, upon removing both now and rebooting, there is no change in behavior.

I also added a second HP printer (Deskjer D1660) and am seeing the same behavior, test pages from CUPS and HPLIP will print, nothing from the browsers.

EDIT: Tried Save as PDF from Chromium, it didn't display where it was saved. It was not in the default download directory. Have no idea where it is.

EDIT 2: No .pdf files exist anywhere in my /home directory. Another bug...

@edwardp3
Copy link
Author

I've been testing other distributions (also using KDE Plasma) and am not having printing issues with any Chromium-based browser with any of them.

I believe this problem is unique to OpenMandriva.

@edwardp3
Copy link
Author

I reinstalled the hplip packages and separately, cups. dnf reported the following upon completion of the reinstall:

"/dev/lp1" already exists and is not a device node.

@edwardp3
Copy link
Author

This apparently has been a long-term issue with OpenMandriva.

I found this thread on the Forum from 2017, involving your 2014.2 release. A package lib64gtk-modules3.0 solved the issue for that person back then. However, when installing this same package today, it does not solve the problem.

@rugyada rugyada removed the new New bug submitted label Jul 7, 2024
@edwardp3
Copy link
Author

edwardp3 commented Jul 8, 2024

With the latest KDE Cooker (build 3209), I now see the printer in the (Vivaldi) print dialog, in addition to Print To PDF, however I am not presently able to test the printer, as one cartridge ran out of ink. It's designed not to print unless all four cartridges report an ink level.

I noticed the Chromium bug that @benbullard79 reported, was assigned to someone last month.

But in the system print dialog, it remains as displayed above, no printers listed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cooker OpenMandriva Cooker in progress The issue is being processed upstream Not our bug
Projects
None yet
Development

No branches or pull requests

3 participants