Description: Unresponsiveness toggling back from Print Preview to normal view Steps to Reproduce: 1. Open the attached file 2. Switch to Print Preview 3. Switch back to normal view (monitor CPU usage) Actual Results: Processing time has increased Expected Results: Same as with 6.0 Reproducible: Always User Profile Reset: No Additional Info: Repro with Version: 6.2.0.0.alpha0+ (x64) Build ID: 0a1a4ffb4f87adff7fbbbc60202b6a0e42fedd0c CPU threads: 4; OS: Windows 6.3; UI render: default; TinderBox: Win-x86_64@42, Branch:master, Time: 2018-08-08_23:17:46 Locale: nl-NL (nl_NL); Calc: CL no repro with Version: 6.0.0.1.0+ Build ID: 47cc374c0659fd3db74a1b184c870eaa56bc385b CPU threads: 4; OS: Windows 6.3; UI render: default; Locale: nl-NL (nl_NL); Calc: CL
Created attachment 144059 [details] Example file
Created attachment 144107 [details] Bibisect log Bisected to author Jan-Marek Glogowski <glogow@fbihome.de> 2018-07-09 09:06:55 +0200 committer Khaled Hosny <khaledhosny@eglug.org> 2018-07-09 22:11:35 +0200 commit fad862e290d727fc9fefe206f6e4b807482c4175 (patch) tree 5195c1277fce198e5b69d552e9209665d8007faf parent 9d754a59154c40235c240bb0e7f47a2006fa85bd (diff) tdf#118555 fix HFONT fallback handing / lifecycle Instead of storing the never changing DC in the WinFontInstance store the HFONT, which is Windows logical font instance. Then set the correct HFONT instance from the layout when rendering its text. This also changes the HFONT ownership and lifecycle. The HFONT is moved from the mhFonts to the WinFontInstance, if available, so it has a proper referenced lifecycle. The mhFonts is still needed, as embedded font just supply an HFONT and no WinFontInstance.
Created attachment 144111 [details] Second example Another example 1. Open the attached Impress Presentation 2. File opening time has doubled (from 6 to 12 seconds give or take) (bisected to the same commit)
*** Bug 119131 has been marked as a duplicate of this bug. ***
I confirmn it with Version: 6.2.0.0.alpha0+ (x64) Build ID: 0a1a4ffb4f87adff7fbbbc60202b6a0e42fedd0c CPU threads: 4; OS: Windows 10.0; UI render: GL; TinderBox: Win-x86_64@42, Branch:master, Time: 2018-08-08_23:17:46 Locale: en-US (de_DE); Calc: CL much better in Version: 6.0.6.2 (x64) Build-ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77 CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; Gebietsschema: de-DE (de_DE); Calc: group
adding Cc: to Jan-Marek Glogowski Three cases: 1. Comment 0 (confirmed) - Unresponsiveness toggling back from Print Preview 2. Comment 3 (unconfirmed) - Slow file opening 3. Bug 119438 (unconfirmed) - Slowdown in paste/undo
*** This bug has been marked as a duplicate of bug 119340 ***