Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40475 - libgnomeprint does not work with upgraded evolution
Summary: libgnomeprint does not work with upgraded evolution
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 06:24 UTC by Mauricio L. Pilla (RETIRED)
Modified: 2005-06-16 19:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
PS file created with evolution's print (does not open in gv) (output.ps,58.97 KB, image/postscript)
2004-10-18 18:09 UTC, Mauricio L. Pilla (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mauricio L. Pilla (RETIRED) gentoo-dev 2004-02-05 06:24:55 UTC
I emerged libgnomeprint 2.4.2 and started to have problems with printing (evolution could not even preview and crashed when trying to print).

Going back to 2.4.0 seems to work. Reemerging evolution does not fix the problem.

Reproducible: Always
Steps to Reproduce:
emerge libgnomeprint 2.4.2. See also http://forums.gentoo.org/viewtopic.php?p=836663#836663 about evolution problems (nobody else confirmed until now).
Actual Results:  
Evolution does not print anymore. Haven't tested other applications (as I need
it printing now).

Expected Results:  
Evolution should be able to print.

Portage 2.0.49-r21 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.22-ck2)
=================================================================
System uname: 2.4.22-ck2 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
Gentoo Base System version 1.4.3.10p1
distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -mmmx -msse -pipe "
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-march=pentium3 -Os -fomit-frame-pointer -mmmx -msse -pipe "
DISTDIR="/usr/portage//distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://adelie.polymtl.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa apm arts artswrappersuid avi berkdb bonobo breakme cdr
crypt cups dga doc dvd encode evo fbcon foomaticdb gdbm ggi gif gphoto2 gpm gps
gtk gtk2 gtkhtml guile icc imlib jpeg kde ldap leim libg++ libwww mad motif
moznoirc moznomail mpeg mule nas ncurses nls oggvorbis opengl oss pam pcmcia
pdflib perl pic plotutils png pnp prebuilt python qt quicktime readline sdl
slang spell sse ssl svga tcltk tcpd tetex threads tiff truetype type1 usb wmf
x86 xml2 xmms xv zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-02-05 07:37:10 UTC
preview works for me. Try compiling with lower optimizations (without -Os at least).
Comment 2 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-02-05 07:58:08 UTC
-O2 still does not work, now I am trying without omit-frame-pointer
Comment 3 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-02-05 08:30:26 UTC
Went as low as CFLAGS="-O1" and it still does not work for me. 
Comment 4 foser (RETIRED) gentoo-dev 2004-02-05 08:45:10 UTC
all relevant deps really... evolution as well. When you do compile with debugging support so you can get a backtrace.
Comment 5 John Christian Stoddart (RETIRED) gentoo-dev 2004-02-06 04:09:39 UTC
Or with abiword-2.0.3, or with gnumeric-1.2.5 ... going back to 2.4.0 does actually get you printing again.

I'll report back when I've brought my gnome installation up to 2.4.2.
Comment 6 John Christian Stoddart (RETIRED) gentoo-dev 2004-02-06 07:55:31 UTC
emerge -u gnome doesn't help this problem ... I'm going back to emerge =gnome-base/libgnomeprintui-2.4.0.
Comment 7 foser (RETIRED) gentoo-dev 2004-02-06 15:58:33 UTC
c'mon, thats a terribly uninformative comment from a dev. '-u gnome' on any given machine on any given time is different, it sais nothing.

Anyway, i already gave some hints on what would be useful in comment #4 towards figuring out the problem. Going back to a version that is 'know to work for you' isn't, why do i have to state the obvious here ?
Comment 8 John Christian Stoddart (RETIRED) gentoo-dev 2004-02-07 08:28:09 UTC
     c'mon, thats a terribly uninformative comment from a dev.
     '-u gnome' on any given machine on any given time is different,
     it sais nothing.

You're right, of course ... I'm running an ~x86 athlon xp machine here and since there has been a trickle of new gnome-2.4.2 packages, libgnomeprint being one of the first to actually have ebuilds in Portage, I thought it might be helpful if I updated other 2.4.2 packages at this point. Just my luck that this was not the case.

     Anyway, i already gave some hints on what would be useful in comment
     #4 towards figuring out the problem. Going back to a version that is
     'know to work for you' isn't, why do i have to state the obvious here ?

You did. At that particular juncture, I couldn't take any detours, because I had to *urgently* print out some spreadsheets with gnumeric and letters with abiword, which weren't printing, so I had to make it work *anyhow*.

Confirming this information could conceivably be of use to somebody.
Comment 9 foser (RETIRED) gentoo-dev 2004-02-29 09:47:51 UTC
i need info to work on this

reopen when info is provided.
Comment 10 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-11 07:37:00 UTC
It seems like using libgnomeprint{,ui} 2.8.0 brings me back the same problem. I have compiled libgnomeprint{,ui} and evolution with -O0 and with USE=debug. Please tell me what you want as extra informations. 
Comment 11 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-11 08:58:04 UTC
Example of output from Evolution (printed files are just like that):

http://gppd.inf.ufrgs.br/~pilla/output.pdf
Comment 12 foser (RETIRED) gentoo-dev 2004-10-11 09:06:37 UTC
does it crash ? if it crashes get a backtrace

Also get the console output of evo if there is any..
Comment 13 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-11 09:13:04 UTC
It does not crash at all.

There is no output related to printing in the console.  Do you want me to pass any specific --debug= string to it?
Comment 14 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-11 09:30:31 UTC
It complains about not finding ppd files for CUPS printers... it does not looks like these are related to my problem, however I'll let it to your judgement.

GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/evolution-2.0
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
[Thread debugging using libthread_db enabled]
[New Thread 1000716608 (LWP 27237)]
asked to activate component_id `OAFIID:GNOME_Evolution_Addressbook_Component:2.0'
Detaching after fork from child process 27246.
[New Thread 1018833840 (LWP 27247)]
asked to activate component_id `OAFIID:GNOME_Evolution_Addressbook_Component:2.0'
[New Thread 1031801776 (LWP 27274)]
[New Thread 1040194480 (LWP 27279)]
Keys List:
  Height
  Width
Options List:
  Height
  Width

IS IN BOTH Height
IS IN BOTH Width
Keys List:
  Height
  Width
Options List:
  Height
  Width

IS IN BOTH Height
IS IN BOTH Width

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer fundos could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer color could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer color@143.54.13.67 could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer frente could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer frente1 could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer frente@143.54.13.67 could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer fundos@143.54.13.67 could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer meio could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer Meio@143.54.13.67 could not be loaded.

(evolution-2.0:27237): GnomePrintCupsPlugin-WARNING **: The ppd file for the CUPS printer Printer could not be loaded.
Comment 15 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-11 09:35:13 UTC
gedit gives the same messages but prints the correct output.
Comment 16 Alastair Tse (RETIRED) gentoo-dev 2004-10-17 11:27:09 UTC
does the font appear right in the "print preview"?
Comment 17 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-17 15:40:47 UTC
No, it doesn't.
Printed output is the same for printer/PDF/printer preview.
Comment 18 Alastair Tse (RETIRED) gentoo-dev 2004-10-17 15:58:32 UTC
what version of pango libgnomeprint are you using now? also, can you try switching your fonts? if the fonts appear tiny, it usually means that the fonts weren't loaded correctly.
Comment 19 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-17 16:08:34 UTC
epm -qa | grep pango:
pango-1.6.0
pango-1.2.1-r1

epm -qa | grep libgnomeprint:
libgnomeprint-1.116.1
libgnomeprint-2.8.0
libgnomeprintui-1.116.0
libgnomeprintui-2.8.0

Chaging fonts in gnome-control-center does not make any difference at all.

Comment 20 foser (RETIRED) gentoo-dev 2004-10-18 09:16:56 UTC
you have 2 versions of pango ? you should have only 1 (1.6.0)
Comment 21 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-18 12:08:14 UTC
I have unmerged the older version of pango, reemerged pango libgnomeprint libgnomeprintui gtk+ librsvg libgnomecanvas pygtk (in this order) and now it freezes my evolution when I try to preview some printing...

Any suggestions?
Comment 22 Alastair Tse (RETIRED) gentoo-dev 2004-10-18 12:48:36 UTC
i'm convinced its a font problem, can you tell us what font you are using, what encoding it is, have you tried with just latin characters (eg, ascii), what LANG, LC_* settings?

Comment 23 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-18 12:56:35 UTC
export | grep LC
declare -x LC_ADDRESS="pt_BR"
declare -x LC_COLLATE="pt_BR"
declare -x LC_CTYPE="pt_BR"
declare -x LC_MEASUREMENT="pt_BR"
declare -x LC_MONETARY="pt_BR"
declare -x LC_NAME="pt_BR"
declare -x LC_PAPER="pt_BR"
declare -x LC_TELEPHONE="pt_BR"
declare -x LC_TIME="pt_BR"

no LANG set (the default is C, right?).

I use the Bitstream Vera fonts (Sans, Sans Mono for terminals).




Comment 24 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-18 13:42:46 UTC
Sorry, the previous crash was related to my CUPS daemon (that is working again). However, changing LC_ALL and LANG to pt_BR or C didn't make any difference.

I've tried also changing character encodings in Tools->Settings but without results.

Comment 25 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-18 18:09:38 UTC
Created attachment 42135 [details]
PS file created with evolution's print (does not open in gv)

gv cannot open it. Please see the fonts that are suposedly being created. As a
matter of fact, the problem is more with the size than with shape (which seems
to be correct, at least in print previews).

%%BeginResource: font (GnomeUni-BitstreamVeraSans-Oblique) cvn
%!PS-TrueTypeFont-1.0-2.0
%%Creator: SunTypeTools-TT 1.0 gelf
%- Font subset generated from a source font file:
'/usr/share/fonts/TTF/VeraIt.ttf'
%- Original font name: BitstreamVeraSans-Oblique
%- Original font family: Bitstream Vera Sans
%- Original font sub-family: Oblique
11 dict begin
/FontName /GnomeUni-BitstreamVeraSans-Oblique def
Comment 26 Alastair Tse (RETIRED) gentoo-dev 2004-10-19 01:33:36 UTC
ok. that's different from the first pdf you attached. the first pdf had only squares as the characters, which indicates either bad character set or missing font.
Comment 27 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-19 06:01:54 UTC
But I can read that PDF (at least when I zoom it enough).
Comment 28 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-10-21 12:40:42 UTC
So, I am using the same versions of evolution and libgnomeprint{,ui} in another machine and it prints OK. 

I'am trying to play around with things that are different to see if I can bring more data. For instance, setting LC_* does not change the output. I've also played with /etc/fonts/* but nothing has changed.
Comment 29 Alastair Tse (RETIRED) gentoo-dev 2004-10-22 12:12:30 UTC
i can't reproduce this behaviour on evolution or any other gnome app. does do this on any other gnome apps, like gedit and such?
Comment 30 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-11-11 03:58:14 UTC
The other applications work as far as I've tested. BTW, I discovered something by comparing the PS outputs of two boxes (one that works and the other that doesn't)

This does not work:
%- Font subset generated from a source font file: '/var/lib/defoma/fontconfig.d/B/Bitstream-Vera-Sans.ttf'

This works:
%- Font subset generated from a source font file: '/usr/share/fonts/ttf-bitstream-vera/VeraIt.ttf'


The wierd thing is that I don't even have a /var/lib/defoma directory!

Right now I am doing a search for "defoma" in my config files (but it may take some time).
Comment 31 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-11-11 04:14:26 UTC
I just discovered by googling defoma that it stands for "DEbian FOnt MAnager". However, I have never had debian installed in this notebook.

Maybe it is something that came from a previous version of evolution -- I have had  many development versions installed in this machine.


Comment 32 Alastair Tse (RETIRED) gentoo-dev 2004-11-15 07:30:02 UTC
thanks for looking further in to this. i can't see where defoma would of been involved with gentoo. i'm tempted to close this as WORKSFORME.
Comment 33 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-11-15 15:51:58 UTC
I understand if you close it as WORKFORME because I have tried many things without coming to a full understanding of the problem. However, there are a couple of other guys having the same problem here: http://forums.gentoo.org/viewtopic.php?t=70113&start=25

Hopefully it will be working in the next release. 
Comment 34 Mauricio L. Pilla (RETIRED) gentoo-dev 2004-11-26 11:36:30 UTC
Can it be something with the flags? I am using -march=pentium3 -Os -pipe -fomit-frame-pointer and in a brand new install it is broken too.
Comment 35 Mike Gardiner (RETIRED) gentoo-dev 2005-03-12 19:27:52 UTC
This sounds like a dupe of 80985 (or that's a dupe of this) - can you try the newest pango in portage (1.8.1)? Thanks.
Comment 36 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-04 16:08:11 UTC
Did you try with the latest pango? Can you still reproduce this problem?
Comment 37 John N. Laliberte (RETIRED) gentoo-dev 2005-06-16 19:12:44 UTC
no response from reporter, need info.