Bug 136687 - Order of characters typed into comments scrambled
Summary: Order of characters typed into comments scrambled
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Comments
  Show dependency treegraph
 
Reported: 2020-09-12 09:11 UTC by Luke Kendall
Modified: 2022-02-13 07:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of bug and sample document (542.42 KB, application/zip)
2020-09-12 09:11 UTC, Luke Kendall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kendall 2020-09-12 09:11:48 UTC
Created attachment 165411 [details]
Screenshot of bug and sample document

I was typing text into a comment in a document that has many. Overall the Writer performance is fine, even so. But when typing into a comment it's easy to type fast enough that the order of the characters is jumbled.  I think all the characters appear, but not in correct order.  I did a few tests typing progressively slower and the problem progressively less.

Clearly, Writer is not buffering input characters correctly. It's like competing threads are reading them. I can't think of any other way the characters could be so completely jumbled.

See attached screenshot and sample (obfuscated) document.  The specific comment appears on page 52 (relative to document start, not page number).

I had to try three times to obfuscate the document - writer appeared to lock up. After copying the file to a separate computer (on Windows, if that matters) and an older version of LibreOffice, when I did the global find and replace that version warned me it would take a long time with Record Changes on but Show Changes off.

So a key part of the problem with the jumbled characters (related to Writer's sluggish responsiveness) may be that I had Show changes turned off but still had Record Changes enabled.
Comment 1 Luke Kendall 2020-09-12 09:20:13 UTC
Turning off Record changes definitely helped. The comment text was less jumbled, even typing at my full speed.

Though I noticed in that case, the each run of characters that were jumbled, were just pure reversals (as if they'd been pushed on a stack and pulled off that in reverse order?), and mostly just pairs of characters reversed, not longer runs of reversals. (So maybe it's not a thread issue.)
Comment 2 Dieter 2021-03-25 11:19:24 UTC
Performance is terrible, but I can't confirm the problem with

Version: 7.1.2.1 (x64) / LibreOffice Community
Build ID: 094b4116e8de6d2085e9b65d26912d6eac4c74a9
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Perhaps I don't type as fast as necessary. Luke, can you still reproduce the problem with the latest version of LO?
=> NEEDINFO
Comment 3 BogdanB 2021-03-25 11:52:22 UTC
It's ok in
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 5262a9e88037decc26da84e7fa62f2955d4cdb85
CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 4 QA Administrators 2022-01-13 03:42:18 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2022-02-13 03:35:54 UTC Comment hidden (obsolete)
Comment 6 Luke Kendall 2022-02-13 07:12:31 UTC
Sorry, I just tried it again now in version 7.2.1.2 and it seems fine.

The only oddity was that the comment text scrolled right by one character (so I couldn't see the first character on each line), until I arrowed through the text to bring the cursor to the start of a line.  At that point the text all scrolled to the right one character so I could see it from the left edge.

(I've never seen comment text do that before. There was no horizontal scroll bar.)

Yes, happy to see this marked as Resolved.