Bug 65751

Summary: (G550) Open Office 1.0 crashes X sometimes
Product: [Retired] Red Hat Linux Reporter: Need Real Name <neugens>
Component: XFree86Assignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 7.3CC: wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-22 20:08:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
copy of the .xsession-errors after the first crash
none
another .xsession-errors, this time after 3 attempts to make a crash
none
copy of the XFree86.0.log just after the crash
none
my fonts configuration
none
ps -A output, called just before the last crash
none
Default font server configuration file
none
fonst.dir from usr/X11R6/lib/X11/fonts/TrueType/Fonts (see config)
none
fonts.scale from /usr/X11R6/lib/X11/fonts/TrueType/Fonts (see config)
none
directory listing none

Description Need Real Name 2002-05-31 08:56:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020513

Description of problem:
This is a situation that happens sometimes, not always.

The problem is in the Antialiasing (AA) rendering, I think.
What happens exactly is that when I try to import a powerpoint file into
OpenOffice (OO), the file is loaded correctly, but just when the presentation is
displayed for the first time, OO "restart" the X server, killing the current
session. Files are not saved, that's why I think this is X related, because when
OO crashes, it tries to restore the session on the next startup. This means no
signals are generated that OO can caught.

I have tested only the Italian OpenOffice 1.0 release, with red hat linux 7.3,
all updates via up2date.

I know that Red Hat doesn't support Open Office, so ignore this report if you feel.

One more think, the problem arises only under certain condition. I have a
Powerpoint file that makes this happenall the time, but Word and Excel files
tested are rendered correctly. More over, I can fix this by simply setting off
the AA rendering. When AA is off, I can import Powerpoint files, and after
restore AA rendering, that's another reason to think this is something related to X.

I repeat: only tested with the Italian version (you can get it from:
http://ftp.linux.it/pub/mirrors/openoffice/OOo_1.0.0_LinuxIntel_install_it.tar.gz)


Version-Release number of selected component (if applicable):


How reproducible:
Sometimes

Steps to Reproduce:
1. set Anitaliasing on
2. load PowerPoint files
3. Crash
	

Actual Results:  X server crashes

Expected Results:  Power Point files displayed

Additional info:

OpenOffice.org 1.0, italian version
Workaround: disable Antialiasing, load Powerpoint files, enable Antialiasing

Comment 1 Need Real Name 2002-05-31 09:01:36 UTC
Ops, one more thing, I can submit the powerpoint files that makes X crash, but
they are copyrighted (not by me), so they should not be downloaded from others,
and that's something that I hate to say (and to do).

I can even try to write a power point presentation and reproduce the problem, but
i not have quick and easy access to powerpoint now.

Comment 2 Mike A. Harris 2002-06-01 08:09:04 UTC
Indeed, if X gets killed, then it is an X bug somewhere.  Definitely not
an OpenOffice bug.

Please do not attach copyright material to the bug report (illegal, I'd
have to have it removed from bugzilla), however if you are comfortable
with providing a URL link to some file which causes the same thing to
happen, that would be helpful.

Can you also please attach your X config file and X log file from after
a crash (without starting up X in the process as that causes the new X
to erases the log from the crash).

Comment 3 Need Real Name 2002-06-01 18:23:41 UTC
Ok, these are my log files.

The xsession-errors-crash is taken after a first start of the X server, init 5.

The xsession-errors-crash-2 was taken after the first crash. This time, OO
opened the same powerpoint file successfully for 3 times. The 4 time, X crashed
again.

I have some small powerpoint presentation here, all around 250k, and they are
opened successfully. I think there is a problem with the size of these files.
Failure are always around the 1.500k, i.e. opening a file larger than 1mb
crashes X. This can be the problem, giving the fact that OO loads the whole file
in memory, maybe it tries to render the presentation and fails, that's why I
never have a crash when I disable Antialiasing.

Another important thing I forgot to say, is that I use Microsoft fonts. they are
taken from an XP installation (now gone away from my computer! :). Follow an
attachment of the /etc/X11/fs/config file and of the fonts.dir/fonts.scale files
in the directory of these fonts.

As a side note, I have tried with both gnome and kde, gnome with kdeinit, or
WindowMaker (with and without kdeinit).



Comment 4 Need Real Name 2002-06-01 18:24:30 UTC
Created attachment 59225 [details]
copy of the .xsession-errors after the first crash

Comment 5 Need Real Name 2002-06-01 18:26:52 UTC
Created attachment 59226 [details]
another .xsession-errors, this time after 3 attempts to make a crash

Comment 6 Need Real Name 2002-06-01 18:29:14 UTC
Created attachment 59227 [details]
copy of the XFree86.0.log just after the crash

Comment 7 Need Real Name 2002-06-01 18:35:54 UTC
Created attachment 59228 [details]
my fonts configuration

Comment 8 Need Real Name 2002-06-01 18:37:52 UTC
Created attachment 59229 [details]
ps -A output, called just before the last crash

Comment 9 Need Real Name 2002-08-06 10:08:37 UTC
Sorry for the long time without news...

I have changed my video card, now I have a matrox G550, and OpenOffice to 1.0.1,
and all seem to get a bit better. But crashes continues in different places,
now they happen often when I scroll a page (specially if zooming is set to 200
or so), or when I move images or tables.

After several tests, I can say it's a matter of fonts. I gave a try to the
drivers released by matrox, and they gave me the same problem. Then, I removed
every entry in my X11/fs/config, and I start OpenOffice with some crash tests
(rapidly move up and down the page, crazy moves of tables and so on).

I only have crashes when I restore the windows XP fonts. Specially Arial and Times.

Now, I have removed these fonts, and taken the true type from a very old win98
machine, a test machine with nothing installed except windows 98 (no Office, no
StarOffice, only 300 megs original and useless windows stuff).

It seems that these true types have not problems under X.

I'm using OpenOffice for about 3 hours without an X crash, so this can be a
coincidence, but it seems that these fonts are really the solution.

More over, M$ gives away, and for free download and use, true types for the web,
and these are the same that usually are stored in Office documents. I don't have
these fonts, so I cannot say if they are the same of winXP, but win98 fonts are
ok for me.

Hope that help.

Comment 10 Mike A. Harris 2002-08-08 00:01:37 UTC
The info about fonts could be useful in determining the problem, but
I want to also clear up one thing, so there is no confusion.

Anything that results in the X server and or computer crashing, is
either 1) an X server bug or X driver bug, 2) kernel bug, or 3) hardware
bug (or flaky hardware or bad hardware combination)

It is possible that some fonts might be incorrect and/or buggy, and there
are some known buggy fonts in the wild, such as mtsorts.ttf  (sp?), but
if a font causes the X server to crash, wether or not it is a buggy font,
the X server or some component of it is also buggy, as it should never
allow bad input to crash it.



Comment 11 Mike A. Harris 2002-08-08 00:03:58 UTC
Also, just a note - please submit log files, etc. in the English language
only.  Some of the attached log files contain non-English entries, and
I am an English only speaker, so the information is somewhat useless to
me.



Comment 12 Mike A. Harris 2002-08-08 00:12:53 UTC
fonts_configs.tar - please don't tarball files, just attach each file
individually.  It is too much effort to download tarballs, uncompress
them, then keep track of them throughout the life of a bug report, or
alternatively download them every time you look at a bug report.



Comment 13 Need Real Name 2002-08-12 10:36:05 UTC
Ok, here follow the unpacked version of my font config directory.

Mike, where I can get a new build of the XFree package that you feel stable
enough for daily use in my system? The problem may reside in the mga drivers, I
think this is surely an X problem (refer to the sig 11 at the end of the XFree
log file).

About the logs, I will test with the english locale, if I'll get more crashes, I
will post the logs in english here.

Comment 14 Need Real Name 2002-08-12 10:38:05 UTC
Created attachment 69986 [details]
Default font server configuration file

Comment 15 Need Real Name 2002-08-12 10:41:13 UTC
Created attachment 69987 [details]
fonst.dir from usr/X11R6/lib/X11/fonts/TrueType/Fonts (see config)

Comment 16 Need Real Name 2002-08-12 10:42:32 UTC
Created attachment 69988 [details]
fonts.scale from /usr/X11R6/lib/X11/fonts/TrueType/Fonts (see config)

Comment 17 Need Real Name 2002-08-12 10:43:29 UTC
Created attachment 69989 [details]
directory listing

Comment 18 Need Real Name 2002-11-21 10:03:34 UTC
Hi mike,

Please, see Issuezilla issue 5447 for updates. This problem seem to be common to
other people with the mga drivers.

------ quoting ----------

Adding the following line to the mga Device section in XF86Config

  Option "XaaNoScreenToScreenColorExpandFill"

appears to fix this bug. See

http://cvs.debian.org/oo-deb/debian/Attic/README.Debian?logsort=date&cvsroot=debian-openoffice&rev=1.15&sortby=date&hideattic=1&search=None&hidecvsroot=1&diff_format=u

for more info.

-----------------------------------------------------------------------------

I'll try as soon as I can restart the X server. Will this affect the way the
antialiased fonts work?
--
neugens

Comment 19 Mike A. Harris 2002-11-24 10:57:05 UTC
Please download and test the following driver:

Rename your existing driver /usr/X11R6/lib/modules/drivers/mga_drv.o
to mga_drv.o.orig first, then put the new one in place. Then edit
your config file, and remove any options that disable acceleration, 
etc.

ftp://people.redhat.com/mharris/test-drivers/mga_drv.o

Test it fully until you are sure it works or does not work.  Once I've
gotten feedback from that, I can explore the problem deeper, and try
to possibly fix the root cause

Thanks


Comment 20 Mike A. Harris 2002-12-22 20:08:32 UTC
I've had other users report the Matrox mga driver crashing when using
Openoffice as well.  I've also had various other reports of Matrox G400,
G450, and G550 problems all of which had some similarity.  I have made
the above test driver in order to try and resolve this issue, and it works
for me properly.  I have now had several other Matrox users claim that this
driver fixes all of their crashing problems, as well as display corruption
problems using Xinerama, and some without Xinerama as well.

I'm assuming that this issue is also fixed by the new driver, and closing
it as fixed in RAWHIDE.  If you continue to experience problems with the mga
driver, and rawhide XFree86 does not resolve them, please feel free to
reopen this bug report and provide updated information of your latest
results and I'd be happy to troubleshoot further to try and find a resolution.

Thanks.