[ooo-build] Calc's marching ants bring Xorg to its knees - AA issue

Bug #462487 reported by Michael Doube
148
This bug affects 28 people
Affects Status Importance Assigned to Milestone
OpenOffice
Invalid
Undecided
Unassigned
openoffice.org (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: openoffice.org

When you select a cell range (shift+arrow) for copying (Ctrl+C), the copy range is bounded by marching ant-style selection. This drives Xorg crazy, and top shows Xorg to be using 50% or more of CPU. The user experience is that the whole machine slows down, compiz effects get sluggish, etc. The bug seems to be worse when a row rather than a column is selected. Xorg's CPU load goes back to normal after hitting esc, which kills the marching ants.

ProblemType: Bug
Architecture: amd64
Date: Wed Oct 28 09:18:08 2009
DistroRelease: Ubuntu 9.10
Package: openoffice.org-calc 1:3.1.1-5ubuntu1
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: openoffice.org
Uname: Linux 2.6.31-14-generic x86_64

Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Chris Cheney (ccheney) wrote :

I can't reproduce the highlighting type or issue you are talking about. Did you change your theme setup in some way to cause this to happen? Can you attach a screenshot showing what it looks like?

Thanks,

Chris

Changed in openoffice.org (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Doube (michael-doube) wrote :

Hi Chris

I'm attaching some screen shots. I opened a new instance of Calc with an empty sheet and started top. First image is the normal situation, Xorg is using 5% of CPU. Next 2 images show a selected row and a selected column and Xorg using ~30% of CPU. Interestingly, if I make the Calc window wider the effect is worse (50% CPU), so it seems to be related to the number of ants.

As far as I know I have the default Human theme running with normal Compiz effects on a pretty standard intel GM965 graphics card.

Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :
Revision history for this message
Michael Doube (michael-doube) wrote :

Oh yes, I should mention that I make the selection then hit Ctrl+C to copy, that's when the ants turn up.

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

Thanks the copy is what appears to cause it.

It appears that this is an ooo-build issue not upstream.

Changed in openoffice.org (Ubuntu):
status: Incomplete → Triaged
summary: - Calc's marching ants bring Xorg to its knees
+ [ooo-build] Calc's marching ants bring Xorg to its knees
Revision history for this message
Kentaro (kentarofukuchi) wrote : Re: [ooo-build] Calc's marching ants bring Xorg to its knees

Probably this bug is related to Impress's slow drag&drop operation. On my Ubuntu 9.10, drag&drop operation on Impress is extremely slow (e.g. moving a graphical object or a slide). In these operations, marching ants border with a couple of pixels wide is shown.

description: updated
Revision history for this message
cometdog (ericctharley) wrote :

This is not just AMD64. Also happens to me on 32-bit PAE kernel. With and without Compiz, makes no difference. I observe both the slowdown with marching ants for copy in Calc, and the really slow drag & drop in Impress. Does drag & drop in Impress need a different bug submission, or is it another manifestation of the same problem?

Revision history for this message
Jakub Skopal (kubacz) wrote :

Is anything happenening with this bug? I must say, it's quite hard to trace the Xorg's load back to openoffice. I wouldn't expect many people affected by this bug to actually come here and say "this affects me".

Revision history for this message
AmenophisIII (amenophisiii) wrote :

is there a workaround? maybe its possible to disable the animation?

Revision history for this message
cometdog (ericctharley) wrote :

Yes, for a workaround see bug #411542. I seem to be able to eliminate the marching ants slowdown here by turning off antialiasing as suggested there, so I suppose these two bugs are somehow related.

That's options -> openoffice.org -> view -> graphics output -> use anti-aliasing (uncheck)

Revision history for this message
Michael Doube (michael-doube) wrote :

Confirming cometdog's workaround works here too. I wonder whether this antialiasing issue relates at all to the failure of poppler / cairo to antialias some PDFs? ( bug 248355 )

Revision history for this message
Michael Doube (michael-doube) wrote :

This bug is still present in today's Lucid ISO.

Revision history for this message
David Dombrowsky (davek) wrote :

I just experienced this bug also. It took me quite a while to connect connect "copying rows from open office" to "Xorg using 100% cpu". The workaround presented in bug#411542 seems to help a lot, but in lieu of a true fix, the ability to disable the marching ants animation entirely would be a perfectly acceptable solution in my opinion.

Chris Cheney (ccheney)
tags: added: karmic
Revision history for this message
Tom Goh (tomgohj) wrote :

I can confirm that this is happening on OpenOffice 3.2 on Ubuntu 10.04. I notice that the bigger the copy selection the more CPU it uses. The disabling Anti-Aliasing in OpenOffice works for me.

Chris Cheney (ccheney)
summary: - [ooo-build] Calc's marching ants bring Xorg to its knees
+ [ooo-build] Calc's marching ants bring Xorg to its knees - AA issue
Revision history for this message
Jerome Buyle (jerome-buyle-org) wrote :

I can confirm this happening on the following setup :
* Ubuntu 10.04, 64 bits, clean install
* OpenOffice 3.2
* Nvidia GPU with proprietary driver but NO Compiz

Revision history for this message
nomnex (nomnex) wrote :

FIY: I am using the Sun/Oracle 3.2.1 OOo (vanilla OO) on Karmic 9.10. No marching ants anymore when copying.

Revision history for this message
Ray (ray-0711) wrote :

I can confirm #19: vanilla packages work fine!

Revision history for this message
asbesto (asbesto) wrote :

I have the same problem. 100% CPU on my dual p4-3200MHz while selecting and copyings some rows.

I really can't believe from 2009 this bug isn't solved !!! O_o

Revision history for this message
asbesto (asbesto) wrote :

Sorry I forgot to specify: clean Ubuntu 10.04 on my HP Pavilion zd8000, compiz driver installed and working without any problem.

Revision history for this message
asbesto (asbesto) wrote :

And, I don't have any "Graphics" option under "view" to select on: where can I disable those damn and unuseful ants? Why don't use a color instead? Really I don't understand those kind of stupid choices; tons of C code thrown away for such a stupid thing.

Revision history for this message
asbesto (asbesto) wrote :

(found that option to uncheck aliasing: is not under "view", but under "Options" etc. as stated above. I saw another bug report with a wrong indication before.)

Revision history for this message
m4cph1sto (dlreid) wrote :

I confirm this bug is still present in Ubuntu 10.10 (32-bit, nvidia graphics).

Revision history for this message
Pieter Hintjens (ph-imatix) wrote :

I confirm this bug is still present in Kubuntu, I'm not sure how to know what version I'm running but the problem seems to have arrived recently, possibly in a recent update. Anyhow, disabling ant-aliasing does solve it. This should IMO be flagged as critical since it effectively cripples OOo until the workaround is applied.

Revision history for this message
wizzor (visa-parviainen) wrote :

I found disabling antialiasing and antialiasing for system fonts to be quite helpful.

Revision history for this message
Jan Peter Leentfaar (janpetel) wrote :

Confirmed situation in Maverick/OO 3.2.1; disabling the anti-aliasing does help a lot, but still affecting overall performance, e.g. switching from the desktop with OO active is slower than usual.
In the confirmed situation, after selecting over 100 rows and two columns, X was using 100% of the 200% available(dual proc); OO became extremely slow while other apps would have to work on the other half of the processor power left. Besides that, my graphics card (nvidia GT9400) increased temperature by over 6 degrees C as compared to a normal working situation.
Usually software would not be able to kill non-mechanical hardware, but this may come close if left undetected.
Because not everyone is able to recognize the connection between the OO select-and-copy and all related issues commented upon here, this problem would have to be addressed quickly, imho...
By the way, for completeness: the correct path to disable the antialiasing:
(Main OO menu) Tools>Options>>>OpenOffice.org>View>>Graphics output>Use Anti-Aliasing (Uncheck this option)
This will restore a workable state as soon as clicking the OK button is processed.

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

Isn't it a duplicate of Bug #411542 or Bug #411542 is a duplicate of this bug?

Revision history for this message
Thibault Lemaitre (thibault.lemaitre) wrote :

I tried to connect this bug to openoffice bug tracker, but find many bugs of this kind and I'm not able to know which one to select.

A list of bugs of the same kind is available at : http://openoffice.org/bugzilla/buglist.cgi?quicksearch=cpu+anti+aliasing

Changed in openoffice.org (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote : migrating packaging from OpenOffice.org to Libreoffice

[This is an automated message.]
There are no new official OpenOffice.org releases in Ubuntu packaging anymore => Won't Fix

If the problem persists, please mark this bug as "also affects project Libreoffice" or "also affects distribution Libreoffice (Ubuntu)" if that has not happened already.

Please leave references to upstream OpenOffice.org bugs in place to allow cross pollination.

Revision history for this message
penalvch (penalvch) wrote :

No reference URL.

Changed in openoffice:
status: New → Invalid
Revision history for this message
Nathan Wittstock (milkandtang) wrote :

Unfortunately, this issue also exists in LibreOffice. I'm seeing the issue on 12.04 LTS 64-bit, running on my Lenovo T61, with NVIDIA graphics. The marching ants selection causes Xorg process to spin one CPU core at 100% usage. Clearing the marching ants (by typing in another cell or etc) returns CPU usage to normal.

Please let me know what other information you need.

Revision history for this message
penalvch (penalvch) wrote :

Nathan Wittstock, please execute the following via the Terminal and feel free to subscribe me to it:
ubuntu-bug libreoffice-calc

Thanks!

no longer affects: df-libreoffice
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.