You must enable macro execution when loading the file to see the
problem.  Running the macro once by hand does not show the problem; the
problem is that libre-office runs the macro thousands and thousands of
times whether you like it or not when macros are enabled.

TO REPRODUCE:

localc -nologo
Tools->Options->Security->MacroSecurity...
Set "Medium" (Confirmation required)
Click OK, OK, File->Exit.

cd ~/Desktop && wget 
https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/586599/+attachment/1407325/+files/ooCPUbug.ods
 && localc -nologo ooCPUbug.ods
Answer "Enable Macros" when prompted


RESULTS:
A message box "a MYFUNC called X times.." appears.  Click OK every time it 
appears.
Wait at least 30 seconds!   You should see at least hundreds of calls...

Run "top" in a terminal window; soffice.bin is consuming lots of CPU while the 
spreadsheet is "idle"
(it stops only when the macro pops up the "called X times" dialog every so 
often)

Reproduced using Libre Office 3.3.2 (Ubuntu package 1:3.3.2-1ubuntu5)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/586599

Title:
  Conditional Formats using STYLE func re-eval forever, sucking CPU

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to