[Libreoffice-bugs] [Bug 108541] New: LibreOffice processes input events in the wrong order

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 14 22:21:17 UTC 2017


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

            Bug ID: 108541
           Summary: LibreOffice processes input events in the wrong order
           Product: LibreOffice
           Version: 5.2.5.1 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: entwicklung--2015--bugs.documentfoundation.org at medium.
                    net

Created attachment 134037
  --> https://bugs.documentfoundation.org/attachment.cgi?id=134037&action=edit
Testcase

If LibreOffice Writer receives input events in rapid succession, it seems to
somehow store these input events in an input event buffer and to process them
in a different order than originally typed. This problem is especially visible
in resource-constrained computers, such as old computers or computers without
much free RAM, where swapping effectively pauses input event processing by
LibreOffice writer. This problem is also especially visible in case the
document is big (e.g. with large images), where scrolling makes LibreOffice
busy redrawing the document and typing while this redrawing happens fills the
input event buffer.

Testcase:

Run this bash script:

-----8<-----
#!/bin/bash
#

soffice --writer &

sleep 5

PID="$(xdotool search --name LibreOffice getwindowpid)"

# maybe processed in the right order
xdotool search --name LibreOffice windowactivate type
abcdefghijklmnopqrstuvwxyz$'\n'
kill -STOP "$PID"
# actually processed in the wrong order
xdotool search --name LibreOffice windowactivate type
abcdefghijklmnopqrstuvwxyz$'\n'
kill -CONT "$PID"
----->8-----

Expected result:

A LibreOffice Writer instance opens which contains these two lines:


-----8<-----
abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyz

----->8-----


Actual result:

A LibreOffice Writer instance opens which contains garbled lines in wrong
order, such as:

-----8<-----
abluvwxkcdjeiyhfgz
a
dezfvgkhji
----->8-----

The lines are also incomplete, but this is not the problem at hand (probably
the buffer at the X window system is just full).  The problem is that even for
the subsequences of characters which have reached LibreOffice writer, the
ordering is wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170614/2bdd4ec6/attachment-0001.html>


More information about the Libreoffice-bugs mailing list