gedit always prints in black and white on color printer

Bug #1313283 reported by Eugene Lazutkin
108
This bug affects 20 people
Affects Status Importance Assigned to Milestone
gtksourceview3 (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

[Impact]
Code printed from gedit (or similar programs) will be black & white, even for printing PDFs and also the printer is capable of printing colors.

[Test Case]
1) Open any source file with gedit, verify that you see colored highlighting
2) Print to a PDF file
3) Open the PDF with evince. It should have the same colors.

[Regression Potential]

Nothing evident, the patch is pretty simple and has been applied upstream for over a year.

[Original Description follows]

gedit shows syntax highlighting (with default Classic color scheme) properly, yet prints/previews text as black-and-white for a color printer (Xerox Phaser 6180DN in this case). Before 14.04 it used to print properly in color.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: gedit 3.10.4-0ubuntu4
ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
Uname: Linux 3.13.0-22-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Apr 27 03:47:14 2014
ExecutablePath: /usr/bin/gedit
InstallationDate: Installed on 2014-04-03 (24 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
ProcEnviron:
 LANGUAGE=en_US
 PATH=(custom, user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gedit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :
affects: gedit (Ubuntu) → cups (Ubuntu)
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please follow the instructions of the sections "CUPS error_log" and "Capturing print job data" on https://wiki.ubuntu.com/DebuggingPrintingProblems. Also attach your printer's PPD file (from /etc/cups/ppd/) to this bug report.

Attach all files one by one, do not compress them and do not package them together.

Changed in cups (Ubuntu):
status: New → Incomplete
Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :
Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :
Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :
Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :

All three files (error_log, printout, ppd) are attached as requested. printout appears to be a PDF file, and it shows the output as I get it: black and white, while on the screen it is colored. I double-checked printer and gedit settings --- color is on in both of them.

Printing to PDF directly leads to the same result: black and white.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Moving to gedit, as gedit sends the job data already in black and white regardless of that the printer is color.

affects: cups (Ubuntu) → gedit (Ubuntu)
Revision history for this message
John Hutchison (jchutch2) wrote :

Print Preview in gedit also shows the file in black and white, as well.

Revision history for this message
Eugene Lazutkin (eugene-lazutkin-gmail) wrote :

Status of this ticket is incomplete: "Cannot be verified, the reporter needs to give more info" --- what kind of info is required? I submitted everything I was asked for in the manner it was requested. Please let me know what is missing, and I'll give more info.

Changed in gedit (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
alberich (alberich) wrote :

Hello,
I experienced this behaviour (b/w printing despite explicit selection of colour printing) in all editors I tried for circumventing that issue (drpython, gecrit, gedit) except for emacs.
Perhaps it helps to find the culprit...
al

Revision history for this message
Paul Mackinney (sq-paul) wrote :

On Ubuntu 14.04, Gedit print preview shows in B/W, prints in B/W.
Test page on Ubuntu 14.04 is fine (color, duplex)
LibreOffice on 14.04 previews color and prints color (after faking syntax highlghting manually, but you know I don't want to do that.)

SSH +X into Ubuntu 10.04 system with my home folder mounted via NFS
Same printer, same settings, same document.
Gedit previews color and prints color.

Revision history for this message
Tobias Bradtke (webwurst) wrote :

It seems to work on Ubuntu-14.10, even though versions do not really differ:
http://changelogs.ubuntu.com/changelogs/pool/main/g/gedit/gedit_3.10.4-0ubuntu6/changelog

But gtksourceview got some new releases, so maybe it is fixed there. Could match report from @alberich:
http://changelogs.ubuntu.com/changelogs/pool/main/g/gtksourceview3/gtksourceview3_3.12.3-1ubuntu1/changelog

Revision history for this message
Shiba (shiba89) wrote :

Forcing the upgrade to gtksourceview 3.12 fix it for me.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue was likely fixed by that commit
https://git.gnome.org/browse/gtksourceview/commit/?id=bb16be551274521952a0d9e2ff6af1c04d3a4031

We should probably SRU to trusty

affects: gedit (Ubuntu) → gtksourceview3 (Ubuntu)
Changed in gtksourceview3 (Ubuntu):
importance: Undecided → Low
status: Confirmed → Fix Released
Revision history for this message
Shiba (shiba89) wrote :

@Sebastian I confirm that commit fix the issue. Just finished building and testing it on my system.

Revision history for this message
Dianwen Zhang (zhangdw) wrote :

I am a new user of ubuntu 14.04, and I am suffering the same problem too. Can anyone tell me how to upgrade gtksourceview to 3.12?

Revision history for this message
Shiba (shiba89) wrote :

DO NOT TRY TO FORCE UPGRADE TO 3.12, I did it being aware it would have broken things and knowing how to fix them.

The safe way for those who don't want to wait until this gets into official repo: https://launchpad.net/~shiba89/+archive/ubuntu/gtksourceview3-bwfix

Revision history for this message
Kerry E Lynn (kerlyn-b) wrote : Re: [Bug 1313283] Re: gedit always prints in black and white on color printer

Hi Fabrizio,

Thanks for providing this patch. It works pretty well, but I seem to have
a repeatable
segfault while trying to print one file in a 3rd party golang package. Let
me know if you're
interested in looking at this and I work with you to reproduce the issue.

Regards, Kerry Lynn

On Thu, Jan 15, 2015 at 7:09 AM, Fabrizio Narni <email address hidden>
wrote:

> DO NOT TRY TO FORCE UPGRADE TO 3.12, I did it being aware it would have
> broken things and knowing how to fix them.
>
> The safe way for those who don't want to wait until this gets into
> official repo:
> https://launchpad.net/~shiba89/+archive/ubuntu/gtksourceview3-bwfix
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1313283
>
> Title:
> gedit always prints in black and white on color printer
>
> Status in gtksourceview3 package in Ubuntu:
> Fix Released
>
> Bug description:
> gedit shows syntax highlighting (with default Classic color scheme)
> properly, yet prints/previews text as black-and-white for a color
> printer (Xerox Phaser 6180DN in this case). Before 14.04 it used to
> print properly in color.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 14.04
> Package: gedit 3.10.4-0ubuntu4
> ProcVersionSignature: Ubuntu 3.13.0-22.44-generic 3.13.8
> Uname: Linux 3.13.0-22-generic x86_64
> NonfreeKernelModules: nvidia
> ApportVersion: 2.14.1-0ubuntu3
> Architecture: amd64
> CurrentDesktop: Unity
> Date: Sun Apr 27 03:47:14 2014
> ExecutablePath: /usr/bin/gedit
> InstallationDate: Installed on 2014-04-03 (24 days ago)
> InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
> ProcEnviron:
> LANGUAGE=en_US
> PATH=(custom, user)
> XDG_RUNTIME_DIR=<set>
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SourcePackage: gedit
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gtksourceview3/+bug/1313283/+subscriptions
>

Revision history for this message
Margarita Manterola (marga-9) wrote :

I've applied the patch to the version of gtksourceview3 in trusty and verified that it indeed fixes the issue. I'm attaching here the debdiff with the patch applied.

it would be really nice if this could be updated in trusty.

Thanks!

description: updated
Revision history for this message
Roberto Zanetto (zanetto) wrote :

I'm using ubuntu 14.04 with gnome flashback mode and gedit prints in black and white and not in colors. How can I do?

Revision history for this message
Paddy Landau (paddy-landau) wrote :

May I ask why this is marked "Fix released" when gedit still has this problem?

I'm using Ubuntu 14.04, which has gedit version 3.10.4.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.