Bug 149476 - dragging text in formula bar causes graphical artifact
Summary: dragging text in formula bar causes graphical artifact
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-07 11:44 UTC by Regis Perdreau
Modified: 2022-06-09 16:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (12.48 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-06-07 11:44 UTC, Regis Perdreau
Details
artifact video (172.06 KB, video/mp4)
2022-06-07 11:45 UTC, Regis Perdreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regis Perdreau 2022-06-07 11:44:42 UTC
Created attachment 180621 [details]
test file

Windows 10 only...
Compiled with VS2019 16.11.15 and cygwin

When dragging a selected text in the Calc formula bar, the text cursor is not well managed and we have some graphic artifacts.

Disable lto compilation option in autogen.sh command solves the bug.
It occurs with old LibreOffice version too.

It seems independant from the hardware, it happens on intel UHD graphics, Vega 8, Radeon and in Virtualbox. Disable SKIA has no effect.

To reproduce
- Enter some text in a cell, multiline text is the best
- go to formula bar, your text is displayed in it too.
- select text with left mouse button
- when text is selected, move mouse cursor on it, press left mouse button and begin to drag the text 

Expected  : text cursor follows mouse cursor without artifact
Effect observed : some black rectangles where cursor is moving.. See video
Comment 1 Regis Perdreau 2022-06-07 11:45:25 UTC
Created attachment 180622 [details]
artifact video
Comment 2 Rafael Lima 2022-06-07 13:56:02 UTC
I can confirm this in Linux as well (using kf5). So this is not Windows-only.

Dragging the text in the formula bar creates these artifacts as shown in the video.

System info:
Version: 7.3.3.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.21.10.1~lo1
Calc: threaded
Comment 3 Regis Perdreau 2022-06-07 18:25:24 UTC
If you drag and drop, the place where the text is dropped is not the place where the cursor is. You may get a random display of the forbidden sign.
Comment 4 Regis Perdreau 2022-06-08 12:17:14 UTC
Interested to have the exact name of processor you run.
Comment 5 Commit Notification 2022-06-09 16:42:40 UTC
Luboš Luňák committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/dabf52b81621f1cbff508dfb7ae2e92597e521c3

remove incorrect #ifdef DBG_UTIL around normal code (tdf#149476)

It will be available in 7.4.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.