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@lists.freedesktop.org
          Reporter: entwicklung--2015--bugs.documentfoundation.org@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to