<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Scrolling down in print preview causes memory usage to increase rapidly"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=121059">121059</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Scrolling down in print preview causes memory usage to increase rapidly
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.2.0.0.alpha1+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>telesto@surfxs.nl
</td>
</tr></table>
<p>
<div>
<pre>Description:
Scrolling down in print preview causes memory usage to increase rapidly
Steps to Reproduce:
1. Open the <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=145863" name="attach_145863" title="Example file">attachment 145863</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=145863&action=edit" title="Example file">[details]</a></span>
2. Wait until loading is finished (CPU drops back)
3. Switch to print preview
4. Press Page Down -> Memory usage keeps increasing
Actual Results:
Memory usage keeps increasing
Expected Results:
Steady memory usage
Reproducible: Always
User Profile Reset: Yes
Additional Info:
Version: 6.2.0.0.alpha1+
Build ID: 2e184378da6058af14acf208d6469fadf44d04ed
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win;
TinderBox: Win-x86@42, Branch:master, Time: 2018-10-30_03:29:39
Locale: nl-NL (nl_NL); Calc: CL
Bisected to (see <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Memory usage on file open 4 times higher compared to LibO6.1 (70 vs 280)"
href="show_bug.cgi?id=120735#c10">bug 120735 comment 10</a>)
author Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>> 2018-08-31 18:19:12 +0200
committer Miklos Vajna <<a href="mailto:vmiklos@collabora.co.uk">vmiklos@collabora.co.uk</a>> 2018-09-03 09:13:32
+0200
commit aeff83240c88435d11590f5e9c6fe9927a508c6a (patch)
tree a3b918a7d3164ee428a4df39df7118a87618dfd9
parent 08b5048198d59441cb8033ed14cd17e68c943004 (diff)
sw: save more vcl layout calls in SwFntObj
This builds on top of commit 436b829f5b904d76039db0818cff5dedf1ae89f1
(sw: save one vcl layout call in SwFntObj::DrawText(), 2018-08-16), but
now layouts are shared not only inside SwFntObj::DrawText(), but also
between SwFntObj::GetTextSize() and SwFntObj::DrawText().
To get there, create an SwFntObj cache member that stores already
calculated vcl layouts. SwFntObj already derives from SwCacheObj, so no
need to explicitly expire this cache member.
Total number of GenericSalLayout::LayoutText() invocations go down from
8 to 5 with this when pressing a key in Writer.
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=aeff83240c88435d11590f5e9c6fe9927a508c6a">https://cgit.freedesktop.org/libreoffice/core/commit/?id=aeff83240c88435d11590f5e9c6fe9927a508c6a</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>