https://bugs.documentfoundation.org/show_bug.cgi?id=166496

            Bug ID: 166496
           Summary: Calc freezes when input queue is too fast after Pivot
                    Table
           Product: LibreOffice
           Version: 25.2.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: mubee...@yahoo.com

Sometimes Calc seems to stop responding when doing a Pivot table operation.

For example, I start an app which used to work, to create a cash break down
summary. Sheet 1, is the raw data, Sheet 2 is the pivot sheet.

The first run, with LibreOffice closed works fine. 
The 2nd run, with LibreOffice already open just freezes up completely.  The
calling process also freezes too.

If LibreOffice is killed with the task manager (tskill) and the calling process
unfreezes. If an attempt to generate the report is made, just like the first
time, with no LibreOffice open, the system works fine.

It seems 
UNO_ExecuteDispatch(".uno:InsertRowsBefore")

Is the culprit.

If I put a 125 ms sleep in between successive InsertRowsBefore, the problem
goes away.

For example:
for(int i=0;i<100;i++)
 UNO_ExecuteDispatch(".uno:InsertRowsBefore");

Causes Calc to freeze.
If we do this:

for(int i=0;i<100;i++){
  Sleep(125);
 UNO_ExecuteDispatch(".uno:InsertRowsBefore");
}

all is good, albeit a little slower.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to