Bug 134510 - Is the multipage view fully rendered with Skia (see comment 2)
Summary: Is the multipage view fully rendered with Skia (see comment 2)
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 134507 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-07-04 20:45 UTC by Telesto
Modified: 2020-07-07 10:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (880.09 KB, application/vnd.oasis.opendocument.text)
2020-07-04 20:50 UTC, Telesto
Details
BT with symbols (3.52 KB, text/plain)
2020-07-06 14:23 UTC, Telesto
Details
BT with symbols VTune Profiler based on x39 build (4.75 KB, text/plain)
2020-07-07 09:08 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-07-04 20:45:29 UTC
Description:
Is the multipage view rendered with Skia or silently with GDI (or another path)

Steps to Reproduce:
1. Open the attached file 
2. Go to multipage view -> 4 pages or so
3. Create a flamegraph or use another tool to monitor rendering

Actual Results:
ExtTextOutW	GDI32
create_SalInstance	vclplug_winlo
create_SalInstance	vclplug_winlo
OutputDevice::ImplDrawTextDirect	mergedlo
OutputDevice::ImplDrawText	mergedlo
OutputDevice::DrawTextArray	mergedlo
SwDrawTextInfo::ApplyAutoColor	swlo
AttrSetToLineHeight	swlo
SwViewOption::IsFieldName	swlo
SwTextFrame::SwitchRTLtoLTR	swlo
SwPageDesc::SetRegHeight	swlo
SwTextGridItem::IsSnapToChars	swlo
SwTextFrame::PaintSwFrame	swlo


Expected Results:
Not an expert, but I would expect some reference to skia in the BT


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: c48e4d795e37f23b71d647247590807ab9e52223
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-07-04 20:50:52 UTC
Created attachment 162649 [details]
Example file
Comment 2 Telesto 2020-07-04 21:01:49 UTC
Me being mistaken.. If you look at LibreOffice in GDI mode, you will see GDI.. 

However also with SKIA.. still some GDI calls for example:

GetFontData	GDI32
create_SalInstance	vclplug_winlo
xstor_component_getFactory	mergedlo
xstor_component_getFactory	mergedlo
xstor_component_getFactory	mergedlo
xstor_component_getFactory	mergedlo
xstor_component_getFactory	mergedlo
GenericSalLayout::LayoutText	mergedlo
OutputDevice::ImplLayout	mergedlo

Is this part of the design..
Comment 3 Luboš Luňák 2020-07-06 10:28:27 UTC
The backtraces are broken, e.g. create_SalInstance() does not call itself, nor it calls ExtTextOutW().
Comment 4 Telesto 2020-07-06 13:59:04 UTC
They trace maybe wrong.. but there is a call from vclplug_winlo.dll to GDI32.dll

gdi32.dll ! GetFontData - [unknown source file]
vclplug_winlo.dll ! func@0x1004ae30 + 0x145 - [unknown source file]

gdi32.dll ! GetObjectW - [unknown source file]
vclplug_winlo.dll ! func@0x1006ed00 + 0x69 - [unknown source file]
vclplug_winlo.dll ! func@0x10047ac0 + 0x63 - [unknown source file]

It's not expensive, but didn't a direct call from vclplug_winlo.dll to gdi32..  It shows up in Very Sleepy & Intel VTune Profiler. And having some with the symbols.. 

It might be that I'm chasing something which turns out to be nothing..

@Regina
Any interest in doing a small profiling (you have everything setup, I think). So it should not take to long.. 

It's only open the sample file in single/multi page mode and zooming in/out

The analysis can be done with Windows Performance Analyze or Intel VTune (or probably even Very Sleepy)
Comment 5 Telesto 2020-07-06 14:23:01 UTC
Created attachment 162716 [details]
BT with symbols

Never mind.. fixed the symbol issue..
Comment 6 Telesto 2020-07-06 15:46:46 UTC
*** Bug 134507 has been marked as a duplicate of this bug. ***
Comment 7 Telesto 2020-07-07 09:08:37 UTC
Created attachment 162747 [details]
BT with symbols VTune Profiler based on x39 build

Something similar when dragging slides around in the slide panel of Impress
Comment 8 Luboš Luňák 2020-07-07 09:55:16 UTC
Not a Skia problem (or a problem at all AFAICT, but whatever).