Bug 102622 - Page count going up, loop until RAM is full
Summary: Page count going up, loop until RAM is full
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc, regression
Depends on:
Blocks:
 
Reported: 2016-09-27 10:58 UTC by mad
Modified: 2017-11-03 14:42 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mad 2016-09-27 10:58:45 UTC
When opening the document referenced below the page counter keeps increasing and more and more RAM is allocated. The problem was first detected on LO 4.3.3 using the UNO interface (noninteractively). It allocated some 66G until it was killed. When using LO interactively I can watch the page counter in the lower left corner go up starting from around 19. I once waited for it to reach 1000, then killing LO.

The bug could be reproduced on
* LO 4.3.3 (from Debian Jessie)
* LO 5.2.1 (from Debian Stretch)
* LO 5.2.1 (from libreoffice.org)
* LO 5.1.5 (from libreoffice.org)

I once tested 5.1.1.3 from Debian Stretch which didn't show the problem, but I can't verify this phenomenon for now.

The file in question is available at:

http://dev.programmfabrik.de/pf34552/The_Weather_Arbeitsmaterial.doc

(15M, only for debugging reasons, other uses are not allowed)
Comment 1 Stephan van den Akker 2016-09-27 14:12:03 UTC
Can not be reproduced on:

LO Version: 5.0.5.2
Build ID: 00m0(Build:2)
Locale: en-GB (en_GB.UTF-8)

LOdev Versie: 5.3.0.0.alpha0+ 
Build ID: 075489b4b810692edc2ba9910eb3ca659a2b6745
CPU Threads: 4; Versie besturingssysteem:Linux 3.12; UI Render: standaard; 
Locale: nl-NL (en_GB.UTF-8); Calc: group

In both versions the page count jumps from 19 to 30 shortly after loading.

I suspect a kind of race condition in the pagination code.

Note that your example document uses the "Maiandra GD" font, and possibly other non standard fonts. On my system the "Maiandra GD" font is not installed. This could explain the different behaviour.
Comment 2 mad 2016-09-28 09:06:14 UTC
(In reply to Stephan van den Akker from comment #1)
> Note that your example document uses the "Maiandra GD" font, and possibly
> other non standard fonts. On my system the "Maiandra GD" font is not
> installed. This could explain the different behaviour.

I didn't have this font installed on my system, either. But installing the font actually makes a difference and stops the page increase.

Is there anything I can do to help find the root cause of the problem? Installing the font might be a workaround but especially in our non-interactive setup it leaves a bad feeling.
Comment 3 Stephan van den Akker 2016-10-03 07:30:39 UTC
I guess actually having a file and a LO setup that reliably reproduces the problem is already a big help for the devs.

The font substitution may not be essential to the problem. I witnessed this same problem in the past when pasting tables from Calc into Writer, just using Arial.

LO was substituting the Maiandra GD with something else. Could you try and find out what the substitution font was on your system? It is obviously different from the one on my system.
Comment 4 Thomas Hackert 2016-10-09 10:22:29 UTC
Hello mad, *,
I can reproduce your bug with
OS: Debian Testing AMD64
LO: Version 4.0.0.3 (Build ID: 7545bee9c2a0782548772a21bc84a9dcc583b89)
(parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel/Linux),
,

LO: Version: 4.4.1.2
Build-ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Gebietsschema: de_DE
(also parallel installed)
,

LO: Version: 4.4.6.2
Build-ID: 008d5d0ddffba0b82de2a2c36a65b9cba0a6b328
Gebietsschema: de_DE.UTF-8
(also parallel installed)

Version: 5.2.2.2.0+
Build-ID: 1:5.2.2~rc2-2
CPU-Threads: 4; BS-Version: Linux 4.5; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group
(Debian's own version)

and also

LO: Version: 5.2.2.2
Build-ID: 8f96e87c890bf8fa77463cd4b640a2312823f3ad
CPU-Threads: 4; BS-Version: Linux 4.5; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group
(parallel installed,

... :( But only, if I just open the file and do nothing. If I use the arrow down or page down keys, the page counter adjusts the overall number of the pages down to 30, if you reaches page 1x (sometimes page 12, sometimes page 16 or above).

With
LO: LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
(also parallel installed, and my only 3.x version installed)
I cannot confirm your bug ... :(

So, as I have confirmed it, I will set the status to new and set the version to 4.0.0.3 (if selectable).
HTH
Thomas.
Comment 5 Buovjaga 2016-10-09 17:05:45 UTC
Bug already present in 3.6.

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 6 QA Administrators 2017-10-23 14:05:37 UTC Comment hidden (obsolete)
Comment 7 Rene Engelhard 2017-11-03 12:24:00 UTC
this still happens in LO 5.4.2 (Debian stretch-backports 1:5.4.2-3~bpo9+1 )
Comment 8 Rene Engelhard 2017-11-03 13:33:00 UTC
I just tried with my 6.0 builds from https://people.debian.org/~rene/libreoffice/6.0/ (here: git snapshot from 20171031, see under snapshots).

There it seems to work - 31 pages and no constant counting.

(my system crashed when I scrolled, but...)
Comment 9 Timur 2017-11-03 13:40:40 UTC
Repro also in Windows LO so All. 
MS opens it in Web layout. It shows 35 pages there but exported PDF has 27 pages. 
But no repro with 6.0+.  It shows 30 pages there but exported PDF has 29 pages. Difference in layout is another issue.
So I close as WFM.
Feel free to set back to New should you test it otherwise.
Comment 10 Buovjaga 2017-11-03 13:44:31 UTC
(In reply to Rene Engelhard from comment #8)
> I just tried with my 6.0 builds from
> https://people.debian.org/~rene/libreoffice/6.0/ (here: git snapshot from
> 20171031, see under snapshots).
> 
> There it seems to work - 31 pages and no constant counting.
> 
> (my system crashed when I scrolled, but...)

True, count does not go up. It was 29 upon opening. Then when I scrolled, it was briefly 31. Scrolling up and down it remained 29.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha1+
Build ID: 64024d7c18bd114eb9958cf80eea9129e09923bd
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 3rd 2017