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

            Bug ID: 165674
           Summary: Word count becomes unreliable
           Product: LibreOffice
           Version: 24.2.7.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

TL/DR: indications of a transient Writer memory corruption issue.

---

The word count for my document has become unreliable.
I noticed that when I edited a comment, the word count changed (to 27,336 words
and 154,625 characters, for what that information is worth).

Clicking back into the main document, the word count and character count on the
bottom status bar didn't change.

Jumping to a point about 80% into the document, the numbers changed to 30,830
words and 175,405 chars.

Saving the document refreshes the counts to the correct figures: 147,345 words
and 847,090 characters.

Clicking in and out of a comment at this point, and back into the current page,
did not change the counts.

Going to the end of the doc and clicking into a comment did not change the
numbers.  But adding a character and then backspacing to erase the character
*did* change the numbers: to 27,336 words, 154,625 chars.

Saving the doc refreshed the numbers to the correct values. Going back to my
80% mark, clicking into the comment, and adding a space did not change the
numbers. Backspacing to delete the space in the comment did change the numbers:
26,720 words and 148,093 characters.

Saving the doc refreshes the numbers to the correct values.

This is weird and disturbing behaviour, especially the similar but different
wrong numbers produced by adding and backspacing in a comment.
In fact, I just added 5 spaces in a comment, and backspaced over them one by
one. The wc/cc totals were:

58,105/332,749 (61,632/352,679)
64,133/367,116 (66,070/378,101)
68,893/394,301 (70,520/404,132)
79,828/457,565 (85,535/478,758)
89,954/516,853 (92,370/530,770)

The pairs in the parentheses are what these numbers jumped to when I clicked
into the comment after changing focus to this browser window to type in the
numbers. I.e. the numbers jumped (once only) after changing focus back to the
Writer doc, after adding to this bug report.

More worrying still: exiting from the document and reopening it, this bizarre
behaviour stopped.

I suspect this means some Writer data structures had become corrupted.  That's
a very frightening thought.

But I doubt this bug report will be useful as now *I* can't reproduce the
problem myself.

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

Reply via email to