Bug 161357 - extreme slowness of BiDi text
Summary: extreme slowness of BiDi text
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-31 07:41 UTC by Dov Feldstern
Modified: 2024-06-05 18:18 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
samples of paragraphs which do or don't demonstrate the problem, with instructions (29.64 KB, application/vnd.oasis.opendocument.text)
2024-05-31 07:42 UTC, Dov Feldstern
Details
artifacts from moving through the paragraph using the keyboard (30.86 KB, image/png)
2024-06-05 18:18 UTC, Dov Feldstern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dov Feldstern 2024-05-31 07:41:29 UTC
Description:
Working with BiDi text is extremely, painfully, slow -- typing it, moving through it, selecting through it. This is new behavior, though I don't know when exactly it happened.

The problem is this: rendering of either LTR or RTL text alone is fine. But as soon as a paragraph requires BiDi rendering, it becomes painfully slow:
    • when typing into such a paragraph even it normal speed, characters get dropped or mixed;
    • moving the cursor through such paragraphs becomes painfully slow;
    • this affects even selections which include such paragraphs, whether selecting with the cursor or even with the mouse;

I've observed the problem both in Writer and in Calc. For writer, details are in the attached sample. In Calc, the problem appears whenever typing RTL text into a cell (not sure if overall document direction makes a difference -- but I assume it's all related, so hopefully solving the problem in writer will solve it also in calc).

Steps to Reproduce:
Open that attached document, it has samples in it and instructions for working through them. Might require that RTL options be turned on.

Actual Results:
typing / moving / selecting through the bidi paragraphs is extremely slow.

Expected Results:
typing / moving / selecting through bidi paragraphs should not feel any different than regular paragraphs.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 12; OS: Linux 6.8; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Debian package version: 4:24.2.3-1+b1
Calc: threaded
Comment 1 Dov Feldstern 2024-05-31 07:42:45 UTC
Created attachment 194475 [details]
samples of paragraphs which do or don't demonstrate the problem, with instructions
Comment 2 m_a_riosv 2024-05-31 09:11:37 UTC
I can't reproduce with
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 3 Dov Feldstern 2024-06-05 17:55:49 UTC
Hmm, a new piece of information: apparently the problem does not occur when running under xfce, but *does* occur (I just went back and checked!) under lxde. (Also, the debian package is now updated to 4:24.2.3-2 .)

Not sure at this point whether this is really a libreoffice issue, or more of a debian / lxde issue... (To be sure, libreoffice is the only program in which I've experienced this issue, even under lxde...)
Comment 4 Dov Feldstern 2024-06-05 18:18:22 UTC
Created attachment 194557 [details]
artifacts from moving through the paragraph using the keyboard

So I decided to try on another machine -- also debian unstable running lxde, but at least a different machine... There, too, the problem exists, though it manifests slightly differently -- typing into these paragraphs is okay, but moving the cursor through them using the keyboard causes rendering artifacts (see attached .png). Not sure if this adds anything useful...

The version information on this other machine is:

Version: 24.2.3.1 (X86_64) / LibreOffice Community
Build ID: 420(Build:1)
CPU threads: 4; OS: Linux 6.7; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Debian package version: 4:24.2.3~rc1-3
Calc: threaded