Bug 159720

Summary: Text is displayed in offset blocks, Text selection fails, Cursor position is misplaced
Product: LibreOffice Reporter: Martin Trautmann <traut>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: normal CC: ilmari.lauhakangas, miguelangelrv
Priority: medium    
Version: 7.6.4.1 release   
Hardware: x86 (IA32)   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot: Text should show a continuous line from _______
a random text area is displayed as a shifted block
this should be a continous line from ______
a random text area is displayed as a shifted block

Description Martin Trautmann 2024-02-14 14:47:13 UTC
Description:
I have some problems on a newer laptop where the text in writer is not shown properly.

Instead, windows areas are shown as shifted blocks,
when I try to select and highlight the text, the selection is not shown as highlighted
and wenn I want to position the text within the cursor, it appears at the wrong position since the text has shifted, but the shown text is at another position.

Steps to Reproduce:
1. Edit text,
2. move text in window
3. continue editing

Actual Results:
Either artifacts are shown as blockwise shifted text or the mouse position on displayed text does not match where a mouse click lands within the text.

Expected Results:
WYSIWYG should be possible, including text selection with the mouse / trackpad


Reproducible: Always


User Profile Reset: No

Additional Info:
I can not provde screen shots of the bug since a screenshot will refresh the window properly first

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 4; OS: Mac OS X 12.7.3; UI render: Skia/Raster; VCL: osx
Locale: de-DE (en_DE.UTF-8); UI: en-US
Calc: threaded
Comment 1 Martin Trautmann 2024-02-14 14:50:11 UTC
Created attachment 192563 [details]
Screenshot: Text should show a continuous line from _______
Comment 2 Martin Trautmann 2024-02-14 14:50:49 UTC
Created attachment 192564 [details]
a random text area is displayed as a shifted block
Comment 3 Martin Trautmann 2024-02-14 14:54:48 UTC
Created attachment 192565 [details]
this should be a continous line from ______
Comment 4 Martin Trautmann 2024-02-14 14:55:42 UTC
Created attachment 192566 [details]
a random text area is displayed as a shifted block
Comment 5 m_a_riosv 2024-02-15 13:18:36 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 6 Martin Trautmann 2024-02-15 13:29:57 UTC
I did now. Those artifacts still remain after restarting in safe mode. Do you need further images in safe mode?
Comment 7 m_a_riosv 2024-02-16 11:59:41 UTC
Please test disabling skia.
Comment 8 Martin Trautmann 2024-02-16 12:12:47 UTC
Thanks - that fixed it!

I still can't select text by dragging over it, but text selection via start position + shift click @ end position does work and is shown now properly, too.

Is that a preference setup or is that another bug?
Comment 9 m_a_riosv 2024-02-16 12:37:36 UTC
Skia working should be better, it is in relation with the graphics driver.
Test if there is some update for it.
Comment 10 Martin Trautmann 2024-02-16 14:52:54 UTC
How do I test for a Skia update?

Do I acutally have to install depot_tools, bazelisk, ninja and skia on my MacOS or is there an easier way?
Comment 11 Martin Trautmann 2024-02-20 10:18:05 UTC
After working with that document again, with SKIA disabled, I still observe the same problems:

Random text areas are duplicated as rectangular areas with a significant offset.
Cursor can't be inserted at the desired position, but is shown with an offset and small parts of the letters around, as a smaller block.

A refresh of the window is required to remove the blocking and to permit proper text selection and cursor positioning again.
Comment 12 Buovjaga 2024-04-24 15:15:56 UTC
(In reply to Martin Trautmann from comment #10)
> How do I test for a Skia update?
> 
> Do I acutally have to install depot_tools, bazelisk, ninja and skia on my
> MacOS or is there an easier way?

No, Skia ships with LibreOffice, you don't need to worry about setting up a development environment :)

There were many Skia-related fixes for macOS recently, so you might try how Skia works with 24.2.