Issue 72426 - "Time out" when saving file in draw, caused by many OLE objects
Summary: "Time out" when saving file in draw, caused by many OLE objects
Alias: None
Product: Draw
Classification: Application
Component: ui (show other issues)
Version: OOo 2.0.3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2006-12-09 14:59 UTC by nholtz
Modified: 2017-05-20 10:48 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Draw file with lots of math, illustrating hang when saving (204.35 KB, application/vnd.sun.xml.draw)
2006-12-09 15:00 UTC, nholtz
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description nholtz 2006-12-09 14:59:32 UTC
Changing a math formula from  'sum' to 'sum from {i=1}' seems to cause
an infinite loop when saving the file.  As this is not a general problem, 
there must be something specific about this file that is the real cause
(it is a draw document with a lot of embedded math formula).

This problem is noted using OOo 2.0.3 on kubuntu dapper.

To repeat:

1. Open the attached file:   aid-sheet.odg

2. On page 2, under heading "Work and Energy", find the 
following formula  (its in the second row, the rightmost formula):

  U ~=~ sum {{P^2_i L_i} over {2 A_i E}}

3. Double click that formula and change it to:

  U ~=~ sum from {i=1} {{P^2_i L_i} over {2 A_i E}}

   i.e, just add the 'from {i=1}' part

4. Click the floppy icon in the top toolbar to save the file.

On my system, it hangs, repeatably, with soffice.bin using almost 100% cpu.

Comment 1 nholtz 2006-12-09 15:00:57 UTC
Created attachment 41287 [details]
Draw file with lots of math, illustrating hang when saving
Comment 2 nholtz 2006-12-09 15:23:34 UTC
This is pretty clearly an artifact of the large number of math formulae
embedded in the draw document.

1. With the document as is, If I just add another formula or two to 
    the page (page 2), the same problem occurs (so its probably
    not related to the sum operator).

2. If I delete page 1 so that only the second page remains, I can seem 
    to edit formulae and save at will.

Comment 3 kpalagin 2006-12-12 09:33:34 UTC
Confirming with OO 2.1 (build 9090) on Win XP - saving either takes an 
excessively long time or would not finish at (with CPU consumed mostly by 
soffice.bin and csrss.exe). soffice.bin generates approx 2500 page faults per 
sec and some "other" I/O  (as indicated by Windows Task Manager).
Comment 4 michael.ruess 2006-12-12 12:57:27 UTC
MRU->WG: this seems to be a problem in Draw when saving documents containing
many objects.
When saving a Writer document having about 100 OLE's it dos not take a time out
at the beginning of the save process.
Comment 5 wolframgarten 2007-01-02 11:58:15 UTC
I can reproduce this also under windows with a current version.
Comment 6 clippka 2007-01-02 12:49:05 UTC
looks like we swap them all in on save. maybe something with the visarea of the
math ole? have to investigate further
Comment 7 clippka 2007-09-12 13:49:32 UTC
Comment 8 Marcus 2017-05-20 10:48:11 UTC
Reset assigne to the default "".