Bug 3805 - [OpenOffice.org-BIN] installation (not e-build) breaks mozilla
Bug#: 3805 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: major Priority: P1
Resolution: WORKSFORME Assigned To: phosphan@gentoo.org Reported By: dries@familie-dokter.net
Component: Applications
URL: 
Summary: [OpenOffice.org-BIN] installation (not e-build) breaks mozilla
Keywords:  
Status Whiteboard: 
Opened: 2002-06-17 05:34 0000
Description:   Opened: 2002-06-17 05:34 0000
After installation of OpenOffice, Mozilla does not show webpages correctly.
All text in webpages is gone, images are still there but text is not.
This is NOT because of X color maps. 

For example www.gentoo.org is shown in the correct format but no text is 
shown. Hyperlinks can still be used. I suspect something is wrong with fonts.
Selecting text does not make it appear.

How I did it:

1. Installed a clean gentoo system (using stage1)
2. Installed latest versions (on 2002-06-15) of KDE3, Xfree4, mozilla 
   using emerge.
3. Retrieved installation binary from www.openoffice.org for OpenOffice1.0

Mozilla working perfectly

4. Untarred openoffice tarball and ran setup

Mozilla not ok anymore.

After all this I have tried a number of things that did NOT solve the problem:
A. Removed OpenOffice (using OpenOffice setup tool)
B. Changed XftConfig
C. Removed XftConfig and rebuild Mozilla completely inc. dependencies 
   (emerge --emptyree mozilla)
D. Rebooted a number of times


My configuration:
Proc: AMD 750Mhz Athlon, Mobo: Asus K7V, Video: Asus6800 DDR

If needed I can make some screenshots of errornous situation.

Pretty soon I will completely reinstall my machine so if more 
info needed for analysis be quick! If necessary I will leave my
system as is so analyses can be performed.

------- Comment #1 From Dries Dokter 2002-06-18 15:19:20 0000 -------
I have found out after a complete new installation of my gentoo system 
starting from a stage 1 iso. All works fine until I installed acroread: 
Latest version Installed: 5.05-r4. 
 
Then the exact same problem occurs! 
 
So in stead of using OpenOffice also a standard gentoo package can be used to 
reproduce this problem. 
 

------- Comment #2 From Dries Dokter 2002-06-18 15:23:38 0000 -------
Created an attachment (id=1596) [details]
A snapshot of mozilla having the describe problem

Attached is a snapshot of mozilla while the problems occurs.
Because all links are still available (but unreadable I really think
this problem is font related)

------- Comment #3 From Dries Dokter 2002-06-18 15:27:15 0000 -------
 I have found out after a complete new installation of my gentoo system 
starting from a stage 1 iso. All works fine until I installed acroread: 
Latest version Installed: 5.05-r4. 
 
Then the exact same problem occurs! 
 
So in stead of using OpenOffice also a standard gentoo package can be used to 
reproduce this problem. 
 

------- Comment #4 From Dries Dokter 2002-08-15 01:28:31 0000 -------
I have also emerge-d mozilla version 1.1b and than the problem does not
go away.

I have also downloaded version 1.1b as a binary (from mozilla.org) 
and then there is no problem. So it seems it is related to gentoo linux. 

For any extra info: just ask.

------- Comment #5 From Martin Schlemmer (RETIRED) 2002-08-16 12:59:57 0000 -------
Well, I cannot recreate it.  Ill be happy to apply a fix if found, but it is
near impossible to fix if not knowing the cause :(

------- Comment #6 From James Crasta 2002-10-18 10:14:34 0000 -------
I was able to reproduce the problem on my laptop, but strangely enough not my
desktop.  The only conceivable difference between the two is that the laptop
runs DRI-radeon drivers and the desktop nvidia drivers, but that shouldn't make
a difference.
I believe the problem has something to do with type1 fonts.  After going nutso
trying to get openoffice-bin to work, I decided it must be something with the
fonts.  so I removed the load "type1" from my XF86Config, and voila it works!  

------- Comment #7 From Seth Chandler 2002-11-28 12:43:13 0000 -------
Is this really an OOo bug?  It seems more like something the X people should 
handle (if it has to do with fonts).  I haven't ever had trouble like this, 
i'll leave it open.  Azarah if you have any suggestions let me know...


seth

------- Comment #8 From adam morley 2003-02-05 12:21:41 0000 -------
FWIW --- I just upgraded to mozilla-1.2.1-r5.  I noticed the fonts in mozilla
were much larger now.  And they were also bold.

I was semi-worried, and launched open office.  All the drop down menus lacked
fonts.  So did all the menus.  Acrobat can't open pdf files, it barfs on not
being able to find fonts.  (crap, now open office just hangs with an empty
border.  seems like a font issue to me.

Adobe errors:

 $ /opt/Acrobat5/acroread foo.pdf
Warning: Cannot convert string
"-adobe-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Cannot convert string
"-adobe-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1" to type FontList
Warning: Cannot convert string
"-adobe-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1" to type FontList
Warning: Cannot convert string
"-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Cannot convert string
"-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontList
Warning: Cannot convert string
"-*-helvetica-medium-r-normal-*-10-*-*-*-*-*-iso8859-1" to type FontList
Abort 

(independant of file, in fact barfs as its loading.)

# emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/kde/3/share/config:/usr/X11R6/lib/X11/xkb:/opt/jakarta/tomcat/conf:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="directfb alsa tetex bonobo guile ruby mysql perl esd mozilla gphoto2 x86
oss 3dnow apm arts avi berkdb crypt cups encode gdbm gif gpm gtk imlib java
jpeg kde gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl
pam pdflib png python qt qtmt quicktime readline sdl slang spell ssl svga tcpd
truetype X xml2 xmms xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

net-www/mozilla-1.2.1-r5
app-office/openoffice-bin-1.0.1
app-text/acroread-5.06-r1
x11-base/xfree-4.2.1-r2
bash-2.05b# emerge -pu world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild    U ] x11-libs/qt-3.1.0-r3 [3.1.0-r1]
[ebuild    U ] media-video/realplayer-8-r4 [8-r2]
[ebuild    U ] x11-misc/bbappconf-0.0.2 [0.0.1-r1]


relevant images:

http://home.cwru.edu/~axm135/mozilla.png
http://home.cwru.edu/~axm135/openoffice.png

Thanks. . .

------- Comment #9 From Patrick Kursawe 2003-06-12 05:02:37 0000 -------
Adam, maybe I have a solution for you:

Type
xset fp /usr/X11R6/lib/X11/fonts/misc
to make sure that OpenOffice can't find any problematic font.
Then follow the instructions from http://lists.suse.com/archive/m17n/2002-Aug/0015.html that say:

| From the OpenOffice menu select
|
|    Tools -> Options -> OpenOffice.org -> Font Replacement
|
| Check the check-box "Apply replacement table", and write
|
|    "Andale Sans UI"
|
| into the list-box entry field below. "Andale Sans UI" *must* be typed,
| you cannot select it from the list. Select your favorite font for the
| user interface in the list box to the right, labeled "Replace with".
|
| Apply your changes.

Now everything should be readable even when you restore your original FontPath.
(About the Adobe stuff:
Please try putting all Type1 and TrueType fonts to the end of your FontPath. Just a wild guess.)
Please tell me if something of this helps you.



------- Comment #10 From Patrick Kursawe 2003-06-20 02:07:21 0000 -------
Adam? Are you there?

------- Comment #11 From adam morley 2003-06-20 11:40:08 0000 -------
Oh, whoa.  Holly cow.  Yeah, I'm here --- but I can't remember what I did to
fix it, as that was four months ago.  It does work now, but I have no idea what
I changed to fix it.

Thanks for those tips, I'm putting them in my folder of things to do if it
happens again.

Now I'm running:
app-office/openoffice-bin-1.0.2
net-www/mozilla-1.3-r1
app-text/acroread-5.06-r3

And I'm not sure if I could recreate it.

------- Comment #12 From Patrick Kursawe 2003-06-23 03:29:51 0000 -------
So, folks... is anybody here who still has a problem which can be reproduced?

------- Comment #13 From Patrick Kursawe 2003-06-30 00:33:44 0000 -------
No reaction for a week. Setting to NEEDINFO.

------- Comment #14 From Patrick Kursawe 2003-10-02 01:07:29 0000 -------
I guess this bug is dead...