Bug 111897 - Crash in: mergedlo.dll
Summary: Crash in: mergedlo.dll
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-18 10:20 UTC by Libomark
Modified: 2017-10-27 09:25 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["mergedlo.dll"]


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Libomark 2017-08-18 10:20:30 UTC
This bug was filed from the crash reporting server and is br-e2f4a096-5619-4152-a020-c8cf3eabcdb1.
=========================================

Crash occurred when attempting to copy a formula down a column in a large spreadsheet with all rows occupied with a column of data, and several further columns fully occupied with data or formulae.
Comment 1 Xisco Faulí 2017-08-18 13:52:54 UTC Comment hidden (obsolete)
Comment 2 Libomark 2017-08-21 16:40:24 UTC
File size is too large for me to upload.  Try to create an example as follows:-

In an new sheet place =rand() into columns A-F for all rows.  In G2 put formula =if(b2>c2,d2,e2)

Copy cell G2 over the rest of column G.

Crash occurs with "bad allocation" message.
Comment 3 Buovjaga 2017-09-07 17:03:14 UTC
(In reply to Libomark from comment #2)
> File size is too large for me to upload.  Try to create an example as
> follows:-
> 
> In an new sheet place =rand() into columns A-F for all rows.  In G2 put
> formula =if(b2>c2,d2,e2)
> 
> Copy cell G2 over the rest of column G.
> 
> Crash occurs with "bad allocation" message.

I don't get a crash.

You are apparently running out of memory. Did you monitor your memory usage?

Developers have said that crashing when running out of memory is the only sane thing to do.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha0+
Build ID: bf3a87d1ee9106161d26f33c1ccb6b7b0d0aa0b9
CPU threads: 8; OS: Linux 4.12; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on September 7th 2017
Comment 4 Xisco Faulí 2017-09-07 22:32:32 UTC
(In reply to Libomark from comment #2)
> File size is too large for me to upload.  Try to create an example as
> follows:-
> 
> In an new sheet place =rand() into columns A-F for all rows.  In G2 put
> formula =if(b2>c2,d2,e2)
> 
> Copy cell G2 over the rest of column G.
> 
> Crash occurs with "bad allocation" message.

Could you please use another service like dropbox or google drive?
Comment 5 Libomark 2017-09-08 21:17:34 UTC
(In reply to Buovjaga from comment #3)
> (In reply to Libomark from comment #2)
> > File size is too large for me to upload.  Try to create an example as
> > follows:-
> > 
> > In an new sheet place =rand() into columns A-F for all rows.  In G2 put
> > formula =if(b2>c2,d2,e2)
> > 
> > Copy cell G2 over the rest of column G.
> > 
> > Crash occurs with "bad allocation" message.
> 
> I don't get a crash.
> 
> You are apparently running out of memory. Did you monitor your memory usage?
> 
> Developers have said that crashing when running out of memory is the only
> sane thing to do.
> 
> Arch Linux 64-bit, KDE Plasma 5
> Version: 6.0.0.0.alpha0+
> Build ID: bf3a87d1ee9106161d26f33c1ccb6b7b0d0aa0b9
> CPU threads: 8; OS: Linux 4.12; UI render: default; VCL: kde4; 
> Locale: fi-FI (fi_FI.UTF-8); Calc: group
> Built on September 7th 2017

I doubt I am running out of memory.  I have 8GB of RAM.  When I fill columns A-F as described Win Task Manager reports soffice taking just over 1.6GB.  When I try to copy the formula in G2 over the rest of the column, a core of the processor remains dedicated to LO for some tens of seconds with the RAM used increasing to just over 1.7GB before the crash occurs.  I can avoid a crash by copying 100,000 rows at a time. I note there is a difference in memory allocation if I enter =rand() in A1..F1 and then copy those cells to all other rows (under 1.4GB), compared with creating a complete column A and then copying the column to columns B-F.  I note you are running under Linux: I am running under Win 7.
Comment 6 Telesto 2017-09-09 16:23:52 UTC
> I doubt I am running out of memory.  I have 8GB of RAM.
The x86 build of Libreoffice will crash at some point when using more than 1,2GB. A single process in x86 isn't 'allowed' to use more (even if available). 

https://stackoverflow.com/questions/14186256/net-out-of-memory-exception-used-1-3gb-but-have-16gb-installed
Comment 7 Buovjaga 2017-09-14 15:17:47 UTC
No crash for me with a Thinkpad T520 with 8 GB of mem.

Libomark: please test with 64-bit version

Win 7 Pro 64-bit Version: 6.0.0.0.alpha0+ (x64)
Build ID: 41b7713334351d7cc455eef5241bd3988b9d1e94
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2017-09-13_22:53:00
Locale: fi-FI (fi_FI); Calc: CL
Comment 8 Libomark 2017-09-18 13:21:09 UTC
Confirm that 64 bit avoids the crash.  Is there anywhere I can guage how large a sheet I can have under 64 bit?  I had already resorted to programming in a compiled language to get round the limitation of the 32 bit version.
Comment 9 Buovjaga 2017-10-27 09:25:56 UTC
(In reply to Libomark from comment #8)
> Confirm that 64 bit avoids the crash.  Is there anywhere I can guage how
> large a sheet I can have under 64 bit?  I had already resorted to
> programming in a compiled language to get round the limitation of the 32 bit
> version.

Sorry, I don't know how to gauge that.
I guess we should close this..