Bug 109852 - CRASH: When creating more than 85 Writer/Calc documents with x86 and x64 build
Summary: CRASH: When creating more than 85 Writer/Calc documents with x86 and x64 build
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: wantBacktrace
: 117618 (view as bug list)
Depends on:
Blocks: Crash
  Show dependency treegraph
 
Reported: 2017-07-28 14:45 UTC by Telesto
Modified: 2024-04-30 13:01 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["SfxBaseModel::MethodEntryCheck(bool)"]


Attachments
WinDBG Backtrace (10.21 KB, text/plain)
2017-07-28 19:00 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-07-28 14:45:29 UTC
Description:
Corner case. CRASH: When creating more than 85 Writer/Calc documents 

Steps to Reproduce:
1. Open Writer (new Document)
2. Hold CTRL+N to create >85 documents. It will crash at 86. 

No repro with Draw

Actual Results:  
Crash

Expected Results:
No crash


Reproducible: Always

User Profile Reset: No

Additional Info:
Version: 6.0.0.0.alpha0+ (x64)
Build ID: d4ffca1e071536f5c3f66ddcc8156540055eace4
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-07-05_22:53:33
Locale: nl-NL (nl_NL); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Julien Nabet 2017-07-28 18:28:05 UTC
Did you check memory consumption? Perhaps you runned out of memory?

On pc Debian x86-64 with 6GB with just Firefox (with 6 tabs) and Thunderbird opened, I could open more than 160 ods files.
Comment 2 Telesto 2017-07-28 19:00:30 UTC
Created attachment 134952 [details]
WinDBG Backtrace

Version: 6.0.0.0.alpha0+
Build ID: 425c68a316a5682696ac29f54f5e99c005685fc1
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2017-07-24_00:59:05
Locale: nl-NL (nl_NL); Calc: CL

The bug seems to be caused by GDI handles
GDI Handles 3545
User Handles 9977

Calc crashes with 85 documents. Writer needs probably some more
Comment 3 Julien Nabet 2017-07-28 20:03:49 UTC
You responded with bt which could be useful of course but what about memory consumption?
I mean, even if I got 100GB of memory, i suppose I can't open an infinite number of files.
Comment 4 Telesto 2017-07-28 20:21:07 UTC
Memory consumption with 85 documents open: 1.7 GB with Version: 6.0.0.0.alpha0+ (x64) Build ID: d4ffca1e071536f5c3f66ddcc8156540055eace4 

Total available RAM: 8GB of which 5 GB is used (including LibO6 with 85 documents open). LibO always crashes at the 86 empty calc document. In some situation no new Document is created after 85. The crash will occur only after open a New Impress/Writer/Draw document from the toolbar.

It's probably windows only
Comment 5 Xisco Faulí 2017-08-02 22:02:18 UTC
Confirmed in

Versión: 5.3.5.1
Id. de compilación: 020db1aa8142e57290f8a21e4df31185392d0e38
Subproc. CPU: 1; SO: Windows 6.1; Repres. IU: predet.; Motor de trazado: HarfBuzz; 
Configuración regional: es-ES (es_ES); Calc: group

when 86 is reached.
it doesn't seems to be a GDI problem. it was at ~4500 when it crashed
Comment 6 Xisco Faulí 2017-12-14 11:57:17 UTC
In

Versión: 4.4.0.3
Id. de compilación: de093506bcdc5fafd9023ee680b8c60e3e0645d7
Configuración regional: es_ES

it crashed for me with 115 documents
Comment 7 Xisco Faulí 2018-05-28 17:47:19 UTC
*** Bug 117618 has been marked as a duplicate of this bug. ***
Comment 8 QA Administrators 2019-06-19 02:48:51 UTC Comment hidden (obsolete)
Comment 9 Telesto 2020-03-29 13:19:01 UTC
Repro with 110 documents
Version: 7.0.0.0.alpha0+ (x64)
Build ID: 7ae9c9572ccac55c0926b8a9779bb63c4236291c
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: CL
Comment 10 Telesto 2020-03-29 13:19:43 UTC
@Julien
Would you mind to add a BT? Thanks!
Comment 11 Julien Nabet 2020-03-29 13:35:08 UTC
I don't understand the point, I gave a try but after more than 200 files I could still create new ones.
If it depends on memory, I expect any program would crash when memory is exhausted.
Comment 12 Telesto 2020-03-29 14:12:34 UTC
(In reply to Julien Nabet from comment #11)
> I don't understand the point, I gave a try but after more than 200 files I
> could still create new ones.
> If it depends on memory, I expect any program would crash when memory is
> exhausted.

Thanks for testing. I'm not running out of memory available memory. It might be some Windows memory limit. However I'm only aware of that happening with x32 builds. It did happen more or less around 2 GB.

Maybe WinOnly
Comment 13 QA Administrators 2022-05-17 03:30:40 UTC Comment hidden (obsolete)
Comment 14 BogdanB 2024-04-30 13:01:19 UTC
Still the same with
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ro-RO (en_US); UI: en-US
Calc: threaded