Bug 99222 - While typing, some characters appear out of order from how they are typed
Summary: While typing, some characters appear out of order from how they are typed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 117054 (view as bug list)
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2016-04-11 11:56 UTC by Joseph
Modified: 2023-05-15 19:09 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph 2016-04-11 11:56:12 UTC
While typing, some of the characters will appear out of the order I typed them.   For example, when I tried typing the summary above in a Writer document, this is what appeared: Whil teyping, some characesat rppear out of order oh tow the rayet yped.  This does not seem to happen in Calc, only Writer.  However, just to make sure, I tested a different keyboard that was working normally on another machine, and also tried other USB ports to plug the keyboards in to.  In each case I have gotten the same result, only while typing in Writer.
Comment 1 Buovjaga 2016-04-24 17:15:53 UTC
Did the problem appear in version 5.1.2?
What distro and desktop environment do you use?

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 2 Joseph 2016-05-17 04:40:28 UTC
(In reply to Buovjaga from comment #1)
> Did the problem appear in version 5.1.2?
> What distro and desktop environment do you use?
> 
> Set to NEEDINFO.
> Change back to UNCONFIRMED after you have provided the information.

I think it appeared in 5.1.2.  I am running Unity in Ubuntu 15.10.
Comment 3 Buovjaga 2016-05-17 09:32:28 UTC
Maybe you could try this: https://wiki.documentfoundation.org/UserProfile#Resolving_corruption_in_the_user_profile

It certainly seems like a unique problem as there have been no other reports.
Comment 4 QA Administrators 2016-12-07 12:44:04 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2017-01-31 00:24:55 UTC Comment hidden (obsolete)
Comment 6 Buovjaga 2018-04-23 11:58:02 UTC
*** Bug 117054 has been marked as a duplicate of this bug. ***
Comment 7 Buovjaga 2018-04-23 11:59:11 UTC
NEW per dupe. This is a pretty funky issue. If you have the chance to log in with a Wayland session, would be nice to hear if it makes the problem go away.
Comment 8 Buovjaga 2018-04-23 12:38:18 UTC
Also, please test with version 6.0.x. A person on IRC was able to reproduce, but not with 6.
Comment 9 Michael Meeks 2019-02-12 11:21:13 UTC
In writer it could easily be management of the m_aInBuffer in edtwin.cxx - but on the surface it looks ok I guess.

Joseph - how fast are you typing ? if you type slowly - do you get a better behavior ? (and/or is your machine slow/loaded) ? Chris suggest it is indeed performance related.

If anyone can reproduce this that can build something; if they could apply this patch and test again:

--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -2420,7 +2420,7 @@ KEYINPUT_CHECKTABLE_INSDEL:
                     comphelper::string::padToLength(aBuf,
                         m_aInBuffer.getLength() + aKeyEvent.GetRepeat() + 1, aCh);
                     m_aInBuffer = aBuf.makeStringAndClear();
-                    g_bFlushCharBuffer = Application::AnyInput( VclInputFlags::KEYBOARD );
+                    g_bFlushCharBuffer = false; // Application::AnyInput( VclInputFlags::KEYBOARD );
                     bFlushBuffer = !g_bFlushCharBuffer;
                     if( g_bFlushCharBuffer )
                         m_aKeyInputFlushTimer.Start();

It would be rather interesting to know if that stops the problem.
Comment 10 QA Administrators 2022-12-07 03:22:32 UTC Comment hidden (obsolete)
Comment 11 BogdanB 2023-04-14 18:39:29 UTC
Joseph, are you still reproducing this problem with the newest versions?
Comment 12 BogdanB 2023-05-15 18:16:03 UTC
No more reports about this since 2018. Buovjaga, if no info from the reporter and the duplicate reporter, could this bug be closed?
Comment 13 Buovjaga 2023-05-15 18:42:10 UTC
We also have bug 139807 for automated typing causing the same effect