Bug 69401 - Crash after copy & pasting a large number of shapes and saving
Summary: Crash after copy & pasting a large number of shapes and saving
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.1.1.2 release
Hardware: x86 (IA32) Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks:
 
Reported: 2013-09-16 03:22 UTC by Snarky
Modified: 2017-07-10 15:38 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["SalFrame::SetCallback(vcl::Window *,bool (*)(vcl::Window *,SalEvent,void const *))"]


Attachments
Open this file, try to copy and paste 1000 circles block (29.21 KB, application/vnd.oasis.opendocument.graphics)
2013-09-17 21:29 UTC, Snarky
Details
windbg.txt (32.08 KB, text/plain)
2014-06-20 14:46 UTC, pierre-yves samyn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Snarky 2013-09-16 03:22:38 UTC
Hello, I am trying to use Draw for creating pictures having large number of simple objects, up to several thousands of them per file. To give you some idea, think of the games of go or checkers. 

Yesterday I was able to keep several such files open at the same time (I knew if I opened too many LO would die with generalized diagnostics message). 

Today, after installing the latest Windows update, I found that I could hardly open only one of those files. Attempting to open a second one at first I saw an empty window with moving green progress indicator bar. At some moment the window would silently disappear. 

The moment of disappearance apparently depended on the size of the open file. I found that I was able to open two small files. The bigger was the first file, the sooner the process opening the second file would die.  

I have the latest JRE (1.7.0_40). Increasing LO memory settings did not change a thing.
Comment 1 Snarky 2013-09-17 13:04:31 UTC
I can now tell that the same thing happens as I add the objects to the drawing. I just had two open files. I copied around 200 objects at once and tried to past them. The window silently disappeared (the second one was left intact).
Comment 2 Snarky 2013-09-17 21:29:55 UTC
Created attachment 86026 [details]
Open this file, try to copy and paste 1000 circles block
Comment 3 Snarky 2013-09-17 21:30:58 UTC
Just reset Draw template to default one, opened new file and created 1000 0.12" filled circles (changed the filling color from the default one). Arranged them into rectangle 25x40. 

Copied and pasted the whole thing 2 times - that's 3000. It worked. Pasted one more time, tried to save. Got "LO has stopped working" (from Windows). Successfully recovered (all 4000) circles, was able to save and reopen the file correctly. 

Opened new Draw page, copied and pasted another 1000 (5000 total count), tried to save - LO died with the same Windows message. Recovered, and the new page was not there.

I have Thinkpad W510, Windows 8/64, fully updated. LO Version: 4.1.1.2.
Memory settings:

Number of steps - 25

Use for LibreOffice: 200MB
Memory per object: 1.0MB

File size (compressed, attached) 30K.

And, once again,I started having this problem in 4.1.1.2 and it became strangling after the latest windows update.
Comment 4 Snarky 2013-09-22 02:11:16 UTC
The problem may have to do with my shapes (circles). I receiver some 30K objects file from another user and was able to handle it. The shapes were rectangles though. 

After I found that Write was not pasting "too many" Draw objects too, I tried 4.1.2 and it was not any better. I returned to 4.0.5, which works.
Comment 5 pierre-yves samyn 2014-06-20 14:23:34 UTC
Hi

I reproduce the freeze on windows 7/64 & Version: 4.2.5.1
Build ID: 881bb88abfe2992c6cede97c23e64a9885de87de

But I do not reproduce with Version: 4.3.0.1
Build ID: 67f5430184326974072b65403ef1d9d934fc4481

Steps:
1. Open the attached file
2. Edit> Select all
3. Edit> Copy
4. Select Slide 2
5. Edit> Paste


Can you test this release ?
I set status to NEEDINFO...

Regards
Pierre-Yves
Comment 6 pierre-yves samyn 2014-06-20 14:46:20 UTC
Hi again...

I confirm the crash when saving the document after copy-paste.
I set status to New

I try to attach a backtrace windbg

Regards
Pierre-Yves
Comment 7 pierre-yves samyn 2014-06-20 14:46:49 UTC
Created attachment 101437 [details]
windbg.txt
Comment 8 QA Administrators 2015-07-18 17:43:09 UTC Comment hidden (obsolete)
Comment 9 Buovjaga 2015-10-17 13:09:47 UTC
(In reply to pierre-yves samyn from comment #6)
> I confirm the crash when saving the document after copy-paste.

Still crashing.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 186f32f63434e16ff5776251657f902d5808ed3d
TinderBox: Win-x86@39, Branch:master, Time: 2015-10-16_09:42:47
Locale: en-US (fi_FI)
Comment 10 MarjaE 2016-04-29 00:34:36 UTC
Slightly different behavior on the Mac.

I was able to take the test file, copy, paste, and save, but had LOO freeze and go unresponsive when I tried to quite. I was able to force quit. I found that the sample document had retained the saved changes after reopening.

I just lost an hours worth of work, which I thought I had saved, when Loo crashed on me.

I don't know if that was the same bug, or something else.
Comment 11 MarjaE 2016-04-29 22:08:16 UTC
I don't think it was the same bug. I re-did the above work, finished the drawing, and saved several times along the way. I re-opened it to check something didn't change anything, and had LibreOffice hard freeze on quit. So the bug I'm encountering isn't linked to repeated copying and pasting.
Comment 12 Xisco Faulí 2017-02-27 11:03:57 UTC
it seems it crashes in

Versión: 5.3.0.3
Id. de compilación: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
Subpr. de CPU: 1; Versión de SO: Windows 6.1; Repr. de IU: predet.; Motor de trazado: HarfBuzz; 
Configuración regional: es-ES (es_ES); Calc: group

but not in

Version: 5.4.0.0.alpha0+
Build ID: eb7b03b052ffe8c2c577b2349987653db6c53f76
CPU threads: 1; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2017-02-26_22:34:18
Locale: en-GB (es_ES); Calc: group

closing as RESOLVED WORKSFORME