[R420] system freezes when starting openoffice writer

Bug #371296 reported by Wilbert Volkers
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xserver-xorg-driver-ati
Fix Released
Medium
xserver-xorg-video-ati (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: openoffice.org

Linux wilbert-desktop 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux
openoffice.org 1:3.0.1-9ubuntu3(jaunty)

After upgrading from ubuntu 8.10 to 9.4, starting openoffice writer will freeze the system, the mouse will still move but stutters. Music will keep playing but stutters. Nothing will work but a hard reset.

The following item seems related but didn't help me:
  https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/319700

The system will freeze with other actions in ooffice tools, for example:
  openoffice calc -> Tools -> Options -> OpenOffice.org -> Java-> parameters

Opening a fileof RTF type will show the contents, doing anything will cause the freeze
Opening ODT will show an empty oowriter screen and freeze immediately

Editing section "Device" in xorg.conf prevents the freeze when using Driver "vesa" in stead of "ati" or add Option "NoAccel" "true".

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: openoffice.org 1:3.0.1-9ubuntu3
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openoffice.org
Uname: Linux 2.6.27-11-generic i686

[lspci]
00:00.0 Host bridge [0600]: Silicon Integrated Systems [SiS] 655 Host [1039:0655] (rev 50)
     Subsystem: ASUSTeK Computer Inc. Device [1043:80aa]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc R420 JK [Radeon X800] [1002:4a4b]
     Subsystem: ATI Technologies Inc Device [1002:4422]

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :
Revision history for this message
Chris Cheney (ccheney) wrote :

Does moving/removing ~/.openoffice.org* resolve the problem? This is almost certainly an OOo bug since it can't really do anything that should be able to freeze the system, so it is probably some sort of an issue with the kernel or xorg. I'm not sure what though.

Changed in openoffice.org (Ubuntu):
status: New → Incomplete
Revision history for this message
Chris Cheney (ccheney) wrote :

I meant to say above "This is almost certainly _NOT_ an OOo bug..."

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Thanks for the response. Yes i tried that. Also did remove & install :
  sudo apt-get remove openoffice.org*
  sudo apt-get update
  sudo apt-get autoremove
  mv ~/.openoffice.org* ~/remove_openoffice.org
  sudo apt-get install openoffice.org
  oowriter

Then i see the same thing. I think it is an X Windows related problem, no response pressing any terminal keys (CTRL+ALT+Fn) and can't restart X Windows with (ALT+SYSRQ+K) however, doing that i see it picks up the keypress (normally the background color changes a bit when i restart X) the screen stays and the mouse is frozen as well.

Tried with Compiz disabled - same result. Maybe i can add some logfile? Please let me know.

Chris Cheney (ccheney)
affects: openoffice.org (Ubuntu) → xorg (Ubuntu)
Changed in xorg (Ubuntu):
status: Incomplete → New
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi wilbertvolkers,

Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log (or Xorg.0.log.old) from after reproducing the issue?

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
Changed in xorg (Ubuntu):
status: New → Incomplete
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :
Revision history for this message
Martin Olsson (mnemo) wrote :

@Wilbert Volkers, can you also attach the output of "dpkg -l" please.

I tried to open "openoffice calc -> Tools -> Options -> OpenOffice.org -> Java-> properties" as suggested above but I could not repro any xorg issue. Also I assume you meant the "Parameters" in that dialog and not "Properties", right?

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

No it really says Parameters (screenshot). I'm not completely convinced this is an xorg issue but it seems to hang.

Changed in xorg (Ubuntu):
status: Incomplete → New
Bryce Harrington (bryce)
affects: xorg (Ubuntu) → xserver-xorg-video-ati (Ubuntu)
Changed in xserver-xorg-video-ati (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Thanks for the help so far, to test your classification "xserver-xorg-video-ati" i edited xorg.conf:
Section "Device"
  Driver "vesa" # changed from value "ati" to "vesa"
  ...

After this change restarted x windows and open office writer worked perfectly. There are no related problems in any of the other tools i use, but all of the openoffice.org tools seem to freeze x windows at some point. That makes me wonder what is different in openoffice in relation to the ati driver.

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Martin Olsson, i meant to say YES, you are right. It should be parameters, i updated the description - my mistake.

description: updated
Revision history for this message
Martin Olsson (mnemo) wrote :

Can you also attach you /etc/X11/xorg.conf and also the output of "lspci -vvnn" please?

What happens if you use the -ati driver normally but you turn off compiz (i.e. if you select "None" in the dialog "System::Preferences::Appearence::Visual Effects"). Does OOo trigger the bug using that config?

What happens if you use the -ati driver but you add:
Option "NoAccel" "true"
inside the "Device" section of your xorg.conf? Does OOo trigger the bug using that config?

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Hi thanks for the try. I tried compiz off previously - no difference, xorg.conf is already there (2009-05-05), device section looks now like:

  Section "Device"
    Identifier "Configured Video Device"
    Driver "ati"
    BusID "PCI:1:0:0"
    Option "NoAccel" "true"
  EndSection

oowriter works with this setting. We know a bit more now. I added lspci-vvnn.log

description: updated
Bryce Harrington (bryce)
summary: - system freezes when starting openoffice writer
+ [R420] system freezes when starting openoffice writer
Revision history for this message
Jerome Marc (marcjero) wrote :

I have the same issue after upgrading kernel to 2.6.29.3 (amd64). I don't have the issue using the standard 2.6.28-11 kernel.

Revision history for this message
Martin Olsson (mnemo) wrote :

@Jerome, do you see the bug using the karmic 2.6.30 kernel? You can install it (even in jaunty) here:
http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux-image-2.6.30-5-generic_2.6.30-5.6_amd64.deb

Revision history for this message
Jerome Marc (marcjero) wrote :

I already tried 2.6.30 RC2 and RC3 and had the same issue. I will try this one and provide feedback.

Revision history for this message
Jerome Marc (marcjero) wrote :

kernel 2.6.30-5 solves the problem but running 3d games gives a system crash now. Same as kernel 2.6.28-11.

Bryce Harrington (bryce)
tags: added: freeze
Bryce Harrington (bryce)
description: updated
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

i added Option "NoAccel" "true" to the Device section in xorg.conf and use the attached script to toggle it when i need oowriter.

/etc/X11/Xorg.conf :
  ...
  Section "Device"
    ...
    Option "NoAccel" "true"
    ...
  EndSection
  ...

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Is there a way to prevent openoffice using video hardware acceleration?

Revision history for this message
Martin Olsson (mnemo) wrote :

I have no really good solution for this but let me at least give you some more information, maybe you can use that to debug the issue further.

I think, when compiz is running all windows are rendered as 3D textures. In additional, I think compiz also flips itself into INDIRECT rendering mode (which means 3D accel is used but all drawing commands are sent using AIGLX from the app to the X server and then the X server is the process that calls the kernel 3D API). Compiz needs the openGL texture_from_pixmap to be available.

In general, when DIRECT rendering is used (you can tell by running "glxinfo" and grepping the out for "direct"), then you can force a 3D app to use software rendering by making sure that the LIBGL_ALWAYS_SOFTWARE=1 environment variable is set for that process. For example:

    LIBGL_ALWAYS_SOFTWARE=1 glxgears

...will usually give you much lower FPS etc.

You can also control whether DIRECT/INDIRECT rendering should be used with the env var:

    LIBGL_ALWAYS_INDIRECT=1 ./some_app

...however note that if you do this, then the 3D rendering will be done in the X server so if you want to combine that with SOFTWARE rendering then that LIBGL_ALWAYS_SOFTWARE=1 needs to be set inside the X server afaik.

Finally, there is also:

    LIBGL_DEBUG=verbose glxgears

...which allows you to analyze 3D operations in detail.

---

I don't think these environment variables will help you much for OpenOffice though. Basically OO should just work, I hope we can get the bug fixed instead.

Oh and one more thing. The driver option "NoAccel" is like a sledge hammer that turns of _everything_. You might be able to keep some of the 3D accelerated operations and still don't get crashes. Understand which part of the 3D acceleration that is causing the bug might prove useful in narrowing down the bug location.

To test with partial 3D accel enabled for the radeon driver, see the manual page "man radeon". I would in particular recommend that you try using the radeon driver without noaccel but _with_ exactly one of these options at a time:

 Option "EXANoComposite"
 Option "EXANoDownloadFromScreen"
 Option "EXANoUploadToScreen"

If you can repro the bug with DownloadFromScreen then we know that the bug is likely to be hiding in that part of the radeon driver. Also trying different, more recent versions of the driver is useful. For example, if you boot the karmic alpha live CD and the bug is not present, then it's likely that it got fixed somewhere between these versions and then we might be able to search the source diff between these versions for relevant clues.

Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Thank you for the tips, these did not work for me unfortunately. However, for now it seems to work when i add the following in xorg.conf :

Section "Device"
    Option "AGPMode" "4"
    ...

I followed tips mentioned on this page:
   https://wiki.ubuntu.com/X/Quirks

You can try values like 8 4 and 2, I have this problem when i use 8. Lower values should result in lower performance but using glxgears i dont see much difference.

Let us know if this works for you.

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Forwarding this bug from Ubuntu:
https://bugs.edge.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/371296

[Problem]
System freeze when using openoffice with SiS motherboard and R420. Resolved by setting AGPMode 4.

[Original Report]

Linux wilbert-desktop 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC 2009 i686 GNU/Linux
openoffice.org 1:3.0.1-9ubuntu3(jaunty)

After upgrading from ubuntu 8.10 to 9.4, starting openoffice writer will freeze the system, the mouse will still move but stutters. Music will keep playing but stutters. Nothing will work but a hard reset.

The following item seems related but didn't help me:
  https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/319700

The system will freeze with other actions in ooffice tools, for example:
  openoffice calc -> Tools -> Options -> OpenOffice.org -> Java-> parameters

Opening a fileof RTF type will show the contents, doing anything will cause the freeze
Opening ODT will show an empty oowriter screen and freeze immediately

Editing section "Device" in xorg.conf prevents the freeze when using Driver "vesa" in stead of "ati" or add Option "NoAccel" "true".

<Later>
Now it seems to work when i add the following in xorg.conf :

Section "Device"
    Option "AGPMode" "4"
    ...

I followed tips mentioned on this page:
   https://wiki.ubuntu.com/X/Quirks

You can try values like 8 4 and 2, I have this problem when i use 8. Lower values should result in lower performance but using glxgears i dont see much difference.

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: openoffice.org 1:3.0.1-9ubuntu3
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: openoffice.org
Uname: Linux 2.6.27-11-generic i686

[lspci]
00:00.0 Host bridge [0600]: Silicon Integrated Systems [SiS] 655 Host [1039:0655] (rev 50)
     Subsystem: ASUSTeK Computer Inc. Device [1043:80aa]
01:00.0 VGA compatible controller [0300]: ATI Technologies Inc R420 JK [Radeon X800] [1002:4a4b]
     Subsystem: ATI Technologies Inc Device [1002:4422]

Revision history for this message
In , Bryce Harrington (bryce) wrote :

Created an attachment (id=28234)
110_quirk_agpmode_r420_sis.patch

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

This bug was fixed in the package xserver-xorg-video-ati - 1:6.12.99+git20090629.f39cafc5-0ubuntu4

---------------
xserver-xorg-video-ati (1:6.12.99+git20090629.f39cafc5-0ubuntu4) karmic; urgency=low

  * Add 110_quirk_agpmode_r420_sis.patch: AGPMode quirk. Fixes freeze
    when starting or using openoffice tools with R420 on a SiS host bridge 655.
    (LP: #371296)

 -- Bryce Harrington <email address hidden> Fri, 31 Jul 2009 19:13:46 -0700

Changed in xserver-xorg-video-ati (Ubuntu):
status: Confirmed → Fix Released
Changed in xserver-xorg-driver-ati:
status: Unknown → Confirmed
Revision history for this message
In , agd5f (agd5f) wrote :

committed: c71b2f050e8996787eae463eddbfdb5864ffa65a

thanks!

Changed in xserver-xorg-driver-ati:
status: Confirmed → Fix Released
Revision history for this message
Wilbert Volkers (wilbertvolkers) wrote :

Thanks for the info! Now i was trying to get TV-out working with my ATI X800 videocard, this was another bad idea. It also has a TV tuner which i might try to get to work in an optimistic mood. So i decided to get me an old Gforce 6200 (NVIDIA) for a few bucks. That fixes most problems.

Revision history for this message
Psychotron (redm) wrote :

Could this please be backported to Jaunty?

Revision history for this message
svaens (svaens) wrote :

Good to know it is fixed in 9.10. In the meanwhile, i'm using abiword. Impressed by the speed I've been missing in o-o

Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
Changed in xserver-xorg-driver-ati:
importance: Medium → Unknown
Changed in xserver-xorg-driver-ati:
importance: Unknown → Medium
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.