OpenOffice Crashes on Launch

Bug #63676 reported by Paul Williams
74
Affects Status Importance Assigned to Milestone
openoffice.org (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When I try to run any part of OpenOffice.org, it shows the splash for about .5 seconds before crashing. In the terminal, when I run anything (oowriter, ooffice, etc.,) I get this error:

~$ ooffice
/usr/lib/openoffice/program/javaldx: error while loading shared libraries: /usr/lib/libpthread.so.0: invalid ELF header
find: error while loading shared libraries: /usr/lib/libc.so.6: invalid ELF header
dirname: error while loading shared libraries: /usr/lib/libc.so.6: invalid ELF header
/usr/lib/openoffice/program/pagein: error while loading shared libraries: /usr/lib/libc.so.6: invalid ELF header
/usr/lib/openoffice/program/soffice.bin: error while loading shared libraries: /usr/lib/libpthread.so.0: invalid ELF header

** (process:12290): WARNING **: Unknown error forking main binary / abnormal early exit ...

However, when I execute /usr/lib/openoffice/program/soffice.bin, OpenOffice loads fine.
I have all the latest updates on Edgy.

Paul Williams (pwill)
description: updated
Revision history for this message
Matthias Klose (doko) wrote :

please recheck after an update; unreproducible with the current version

Changed in openoffice.org:
status: Unconfirmed → Needs Info
Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

I'm also affected by this behavior of OpenOffice on Edgy64...

$ ooffice

** (process:22257): WARNING **: Unknown error forking main binary / abnormal early exit ...

Executing /usr/lib/openoffice/program/soffice.bin also results in a crash:

$ /usr/lib/openoffice/program/soffice.bin
Floating point exception (core dumped)

I have attached a problem report to this comment...

Revision history for this message
Matthias Klose (doko) wrote :

are the fglrx/nvidia drivers installed/used?

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

Yes, I have installed and I am using the fglrx driver installed by

linux-restricted-modules-2.6.17-10-generic
xorg-driver-fglrx

Revision history for this message
Matthias Klose (doko) wrote :

Please recheck using these packages (add these lines to /et/apt/sources.list):

   deb http://people.ubuntu.com/~doko/ubuntu/ edgy/$(ARCH)/
   deb http://people.ubuntu.com/~doko/ubuntu/ edgy/all/

Please submit bug reports to malone, referencing the exact version and
platform you did use for testing.

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

I have now downloaded and installed the new packages.

Still the same errors when executing ooffice or /usr/lib/openoffice/program/soffice.bin

I have attached another crash report generated from the updated version.

Revision history for this message
Matthias Klose (doko) wrote :

ok, please check two more things:

 - starting with: SAL_NOOPENGL=true ooffice

 - reconfiguring your system to use the ati/radeon driver and check again (and removing the xorg-driver-fglrx package)

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

Unfortunately, first option did not work.

But using the ati driver makes OpenOffice work again.

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

So... I have done some experimenting on my own...
Apparently, adding the following options to your xorg.conf might fix the problem when using the fglrx driver:

in
Section "Device"
add the following two lines:

---
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
---

and append the following lines to your xorg.conf:
---
Section "Extensions"
     Option "Composite" "false"
EndSection
---

I don't know why Video-Overlay options might interfere with OpenOffice (and some other programs, too), but disabling the OpenGL Overlay somehow does the trick...

Revision history for this message
Matthias Klose (doko) wrote :

please could you run

  ls -l /usr/lib/libpthread.so* /usr/lib/libc.so*
  dpkg -S /usr/lib/libpthread.so.0
  dpkg -S /usr/lib/libc.so.6

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

$ ls -l /usr/lib/libpthread.so* /usr/lib/libc.so*
-rwxr-xr-x 1 root root 247 2006-10-10 15:17 /usr/lib/libc.so
-rw-r--r-- 1 root root 218 2006-10-10 15:18 /usr/lib/libpthread.so

# dpkg -S /usr/lib/libpthread.so
libc6-dev: /usr/lib/libpthread.so

# dpkg -S /usr/lib/libc.so.6
dpkg: /usr/lib/libc.so.6 not found.

Revision history for this message
Kai Stempfle (kai-stempfle) wrote :

# dpkg -S /usr/lib/libc.so*
libc6-dev: /usr/lib/libc.so

Revision history for this message
Csigaa (csigaa-deactivatedaccount) wrote :

Prevent setting an $LD_LIBRARY_PATH
[quote=/usr/lib/openoffice/program/soffice]
# set search path for shared libraries
add_moz_lib=
for moz_lib_path in $MOZILLA_LIBRARY_PATH /usr/lib /usr/lib/mozilla /usr/lib/mozilla-firefox /usr/lib/mozilla-
thunderbird /opt/mozilla/lib /opt/MozillaFirefox/lib /opt/MozillaThunderbird/lib; do
        test -f $moz_lib_path/libnss3.so && add_moz_lib=":$moz_lib_path" && break;
done
case $sd_platform in

[...]

  *)
# # this is a temporary hack until we can live with the default search paths
# if [ $LD_LIBRARY_PATH ]; then
# SYSTEM_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
# export SYSTEM_LD_LIBRARY_PATH
# LD_LIBRARY_PATH="$sd_prog$add_moz_lib":$LD_LIBRARY_PATH
# else
# LD_LIBRARY_PATH="$sd_prog$add_moz_lib"
# fi
# export LD_LIBRARY_PATH
    ;;
esac

[...]

# extend the ld_library_path for java: javaldx checks the sofficerc for us
if [ -x "$sd_prog/javaldx" ] ; then
    java_ld_library_path=`"$sd_prog/javaldx" $BOOTSTRAPVARS`
    if [ "$java_ld_library_path" != "" ] ; then
        case $sd_platform in

[...]

            *)
# LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
                ;;
        esac
    fi
fi[/quote]

Nasty workaround, but it works for me.

Revision history for this message
Matthias Klose (doko) wrote :

> Nasty workaround, but it works for me.

so what you did was not setting LD_LIBRARY_PATH?

Revision history for this message
Al Hoang (hoanga) wrote :

I have a Feisty system that I just upgraded on 4/13/2007 and Open Office crashes on startup. I'm attachment the crash log I see in the terminal when I tried to start oocalc in the terminal.
Possible Relevant specs on my hardware setup:
Core 2 Duo E6600 System
3GB RAM
ATI Radeon X1300/X1550 based card using the fglrx driver in dual-head mode

$ uname -a
Linux linuxbox1 2.6.20-14-generic #2 SMP Mon Apr 2 20:37:49 UTC 2007 i686 GNU/Linux

Revision history for this message
G. Wang (ek-lem) wrote :

I have been having this problem for many days now. Starting with an update after beta cd. The problem was shortly gone for two days after another update last week and has come back again.

In my case, I have

Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"

and

     Option "Composite" "false"

in my xorg already. But this doesn't solve the problem. Using mesa driver is fine (but I lose 1680x1050 resolution on my laptop which is not okay). If I use SAL_NOOPENGL=true ooffice, then it's okay too. It seems to be just the opengl part of the current fglrx that's not working.

Related bug reports and forum links:

https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/74630
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/90053
http://ubuntuforums.org/showthread.php?t=399515&highlight=open+office

So far none of the above have been addressed or even status confirmed yet... I am not sure why.

I am using an x1300 card by the way. On a side note, suspending my dell E1505 laptop was working great with beta cd, and also became crippled with the latest fglrx/kernel combination...

Revision history for this message
G. Wang (ek-lem) wrote :

I found the problem in my case. It has to do with the combination of fglrx opengl, scim, and open office... kind of weird, and that's why it took me so long to figure out. Apparently this is a LONG existing problem since Dapper or older.

The scim-bridge workaround here works:
https://bugs.launchpad.net/ubuntu/+source/scim/+bug/80551

Revision history for this message
Brunus (bruno-vasta-free) wrote :

Hi All.
Running a Feisty Fawn Ubuntu and have this bug also.
I'm running Scim.

When using the free ATI radeon driver, no problems with Open Office, but when running FGLRX then the crash occurs at start.
It's realy annoying...
I will try to give more infos, but it seems that this bug is around there since a long time...perhaps it's time to switch status on confirmed ?

Sincerely.
Bruno.

Revision history for this message
jhellen (jukka-hellen) wrote :

I have this problem also on Ubuntu 7.04 i386 - 2.6.20-15-generic

$ oocalc
** (process:20135): WARNING **: Unknown error forking main binary / abnormal early exit ...

Revision history for this message
kabapy (kabapy) wrote :

the problem is solved after reinstalling the latest nvidia driver using Envy
http://www.albertomilone.com/nvidia_scripts1.html

i think it is related to the kernel module generation by the default nvidia installer

the problem appeared with me after updating ubuntu 7.04 to the latest pakages around 120 pakages.
after restart x won't start. i reinstalled nvidia prop. driver using the command line as "sudo sh Nvidia.run"
x started and the open office problem appeared.

i hope you find what is it exactly that gone wrong !

Revision history for this message
KrisWillis (kris-osx) wrote :

I have now started to have this problem - I'm not sure what has triggered it, but I can load Open Office fine from the console with:

SAL_NOOPENGL=true ooffice

I'm running 7.04 with two Nvidia cards and 3 monitors, nvidia drivers.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openoffice.org (Ubuntu) because there has been no activity for 60 days.]

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.