https://bz.apache.org/ooo/show_bug.cgi?id=126326

--- Comment #7 from Chris <cpangalos2...@my.fit.edu> ---
Reproduced Following Pablo's Instructions and narrowed down the issue a bit
more.

It doesn't seem to be dependent on the number of fields you delete and you
don't need to delete the original field from the menu at all. It seems like the
cause of the crash is that renaming acts as a workaround to allow removal of
user defined fields from the menu without deleting them in the document first.

Running: Windows 7 64-Bit
Pentium T4500 Dual-Core 2.30Ghz
OpenOffice 4.1.2
AOO412m3(Build:9782)-Rev. 1709699


When a user defined field is deleted in the document it enables the red X for
that field in the "Fields" menu so it can also be removed from there as well
It appears however that this option is enabled based on the name of the field,
so you can simply change the the name of any existing user defined field to
that of a field that has been deleted in the document and see the red X appear.
If you then try to use that red x to delete the renamed field from the menu,
despite the fact it hasn't been deleted from the document itself then save it,
the application will hang indefinitely with the saving document bar half full.
I did experience a couple crashes as well using the same process, but in most
of my trials it hung requiring the application to be killed manually. I didn't
see any noticeable pattern for crashes vs freezes and saw both occur using the
same combination of deletions. 
While the application was hanging I also saw a large spike in CPU usage (50% in
my case) from soffice.bin

To reproduce with minimal changes:
-Open "Writer document with all UDF present"
-Delete the highlighted data for text field one: "{{Text_field_one}}"
-Go To menu>Insert>Fields>Other
_Select "Variables"
-Select "User Field" under Type
-select Text_field_eight
-Change the name in the bottom right corner to "Text_field_one"
-You should see the X at the bottom turn red
-Press the X
-Save the document
-The application should either hang or crash while saving

You can essentially use this renaming process to delete every user defined
field from the Fields menu while all but the initial one remain in the document
itself. The broken state of these fields which exist in the document but not
the menu may be the cause of the hang/crash when saving.

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

Reply via email to