Bug 156962 - UI: multline textfield (Form > Text Box) not refreshing? (kf5/qt5 with Cairo)
Summary: UI: multline textfield (Form > Text Box) not refreshing? (kf5/qt5 with Cairo)
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Michael Weghorn
URL:
Whiteboard: target:25.2.0 target:24.8.1
Keywords: bibisected, bisected, regression
: 157471 158271 (view as bug list)
Depends on:
Blocks: KDE, KF5 Form-Controls
  Show dependency treegraph
 
Reported: 2023-08-28 11:30 UTC by bugs
Modified: 2024-09-16 13:38 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
multiline textfield before refreshing (5.78 KB, image/png)
2023-08-28 11:30 UTC, bugs
Details
multiline textfield after scrolling (12.63 KB, image/png)
2023-08-28 11:31 UTC, bugs
Details
example Document for bug with multline text field (9.28 KB, application/vnd.oasis.opendocument.text)
2023-09-12 10:11 UTC, bugs
Details
Screenshot while typing in the test document (6.68 KB, image/png)
2023-09-12 10:13 UTC, bugs
Details
screenshot of test document after scrolling (11.45 KB, image/png)
2023-09-12 10:14 UTC, bugs
Details
base test (12.38 KB, application/vnd.oasis.opendocument.database)
2024-01-12 12:56 UTC, cornosier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugs 2023-08-28 11:30:59 UTC
Created attachment 189193 [details]
multiline textfield before refreshing

When using a multline textfield for entering remarks ("Bemerkung" in the screenshot) in LO writer, which is an interface for entering data into a database in this case,
the GUI is defunct after scrolling. There are overlays of the multiline textfield which makes the interface unusable. Two screenshots are attached, one before scrolling and one after scrolling.
The reason seems to be that the area of the multiline textfield is not graphically refreshed while opening the document or e.g. scrolling the document.

When we change the multiline textfield to "multiline textfield with formatting" via the textfield's properties dialog in LOWriter, the properties dialog's data tab disappears and the connection to the correspondent data base field breaks. When switching back to a multiline or an oneline textfield, the data tab appears again but it is blank.

this can be repoduced with two newer versions of Libreoffice:
Version: 7.5.4.1 (X86_64) / LibreOffice Community
Build ID: 50(Build:1)
CPU threads: 12; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:7.5.5~rc2-0ubuntu0.20.04.1~lo2
Calc: threaded
Comment 1 bugs 2023-08-28 11:31:48 UTC
Created attachment 189194 [details]
multiline textfield after scrolling
Comment 2 Stéphane Guillou (stragu) 2023-09-11 12:51:05 UTC
Thank you for the report.
Can you please attach an example document so we are sure we are using the same elements when testing?
Thank you!
Comment 3 bugs 2023-09-12 10:11:13 UTC
Created attachment 189512 [details]
example Document for bug with multline text field
Comment 4 bugs 2023-09-12 10:13:31 UTC
Created attachment 189513 [details]
Screenshot while typing in the test document

Screenshot taken with

Version: 7.5.6.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:7.5.6~rc2-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 5 bugs 2023-09-12 10:14:15 UTC
Created attachment 189514 [details]
screenshot of test document after scrolling
Comment 6 Stéphane Guillou (stragu) 2023-09-12 22:18:35 UTC
Thank you!
Reproduced in:

Version: 7.5.6.2 (X86_64) / LibreOffice Community
Build ID: f654817fb68d6d4600d7d2f6b647e47729f55f15
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and 7.6.1.1. Also with qt5 (cairo+xcb).

- Scrolling leaves horizontal lines on the frame.
- When adding lines after reaching the bottom of the object, the characters keep overlapping and accumulating.

Not reproduced with gtk3 VCL plugin. Not reproduced in 7.4.7.2 -> regression.

Bibisected with linux-64-7-5 repo to first bad commit f8a0d8ee676d110bfe19fbb3396292db93e6d69c which points to core commit 0e14dbc9ecdf6abae3ae3089e3b4e22f27dd4cb1 which is a cherrypick of:

commit 0e14dbc9ecdf6abae3ae3089e3b4e22f27dd4cb1
author	Caolán McNamara Thu May 04 10:24:53 2023 +0100
committer	Michael Stahl Fri May 05 10:48:33 2023 +0200
Resolves: tdf#155029 set StandardStyles before updateFromModel
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151370

Caolán, can you please have a look? Likely the same issue as bug 155637.
Comment 7 Stéphane Guillou (stragu) 2023-10-11 13:25:39 UTC
*** Bug 157471 has been marked as a duplicate of this bug. ***
Comment 8 Buovjaga 2023-11-29 14:53:24 UTC
*** Bug 158271 has been marked as a duplicate of this bug. ***
Comment 9 cornosier 2024-01-12 12:56:31 UTC
Created attachment 191890 [details]
base test

the problem occurs on version 7.6.4.1
Comment 10 S 2024-04-22 19:29:24 UTC
The bug still exists in 7.6.6.3.
Comment 11 Michael Weghorn 2024-08-02 09:10:19 UTC
Pending fix:
https://gerrit.libreoffice.org/c/core/+/171396
Comment 12 Commit Notification 2024-08-02 16:34:08 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/001c0934aab5c33b37a75798deb84c20b4b9d365

tdf#155636 tdf#155637 tdf#156962 Consistently use non-native controls

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Michael Weghorn 2024-08-02 16:35:33 UTC
Fixed in master now, backport for 24-8 pending in Gerrit:
https://gerrit.libreoffice.org/c/core/+/171409
Comment 14 Commit Notification 2024-08-03 21:33:20 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/7f50f18b0fc1e9d52bf2d8f929be8c5e4518ced8

tdf#155636 tdf#155637 tdf#156962 Consistently use non-native controls

It will be available in 24.8.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 15 Markus D 2024-09-02 18:26:25 UTC
Hi,

I'm new here and don't know, whether my need for clarification is right here cause it refers to LO writer.

Struggling for days with LO 24.2.5.2 base on kubuntu 24.04 with "dark" mode.

And as all looks fine with LO 7.6.7.2 on M$ Win 11 in standard mode, I've found, that only multiline text had "wrong colors" (black on darkgrey instead of black
 on white) on a linux machine. To be sure not using fixed colors I've switched all background and text colors to "standard" by Basic script. No change, but 
then I saw also the not refreshing multiline text (switching from dataset to 
dataset in my case). Simple text looks fine so far.

The described behaviour of missing refresh in this thread for LO writer would 
also explain what I see here in LO base forms.

So does the fix affect also LO base ?
Comment 16 Michael Weghorn 2024-09-02 18:41:57 UTC
> So does the fix affect also LO base ?

Yes, it also applies for multiline fields in Base forms.
Comment 17 S 2024-09-16 13:38:30 UTC
The bug in write-form-fields is resolved in 
Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (en_IE.UTF-8); UI: de-DE
Calc: threaded

Thanks for your help!