Bug 83476 - UI: CRASH when scroll document with GDI metafile from Calc with rotated cell contents
Summary: UI: CRASH when scroll document with GDI metafile from Calc with rotated cell ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.3.1.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: possibleRegression
Depends on:
Blocks:
 
Reported: 2014-09-04 05:31 UTC by Bugcruncher
Modified: 2015-12-15 10:57 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample Document (11.30 KB, application/vnd.oasis.opendocument.text)
2014-09-04 05:31 UTC, Bugcruncher
Details
better crash sample (13.39 KB, application/vnd.oasis.opendocument.text)
2014-09-05 13:57 UTC, Bugcruncher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bugcruncher 2014-09-04 05:31:26 UTC
Created attachment 105716 [details]
Sample Document

Steps to reproduce:
0. Launch WIN Task manager with TAB "Performance", what shows
   charts for CPU and memory load
1. Open attached sample document
2. With vertical scroll slider scroll up and down and up
   and down from end to end of scroll bar quickly (2 times/s
   or faster), watch Task Manager
   ยป Memory consumption will increase quickly until 
   LibreOffice will crash

This still was ok with 4.2.6, started with 4.3. and still is a problem with 4.4.

The GDI metafile is created from a very simple spreadsheet created simply for this test. The crash does not appear if source spreadsheet for GDI metafile does not contain rotated cell contents. If the "a" in first row have been rotated the GDI metafile inserted into the Writer document will cause the crash.

You also can provoke the crash by jumping between ends with <ctrl+Position1> and <ctrl+End> keys.

I found this one during my attempts to find reasons for the lots of Writer Crashes I currently observe with LibreOffice what make Writer completely unusable for me. The quick scroll of course is an unusual operation, but normal Writer documents crash and crash and crash for me also during quite normal edit operations.
 

              
Operating System: Windows 7
Version: 4.3.1.2 release
Last worked in: 4.2.6.2 release
Comment 1 Florian Reisinger 2014-09-04 12:55:33 UTC
Tested with Windows 7 x64 with Version: 4.4.0.0.alpha0+ Build ID: 5ef4bdc7b15686e55fa19f2e98a828763a0cfae6 TinderBox: Win-x86@42, Branch:master, Time: 2014-09-03_10:10:14. Could reproduce the bug
Comment 2 Jean-Baptiste Faure 2014-09-04 19:23:30 UTC
Under Linux I see a clear jump of the memory used by LO each time the GDI object is shown. That said, when I stop to scroll the memory is released in few seconds.

Tested with LO 4.3.2.0.0+ build at home under Ubuntu 14.04 x86-64 (Build ID: 9448bf9182ffd4280cc17d9e5572934871a5c035)

I do not observe the same behavior with version 4.2.7.0.0+ (Build ID: a7f7b93299a9a7af8b243099f78f236172c4cb51) build at home under Ubuntu 14.04 x86-64 too.

Best regards. JBF
Comment 3 Bugcruncher 2014-09-05 13:57:35 UTC
Created attachment 105801 [details]
better crash sample

Number of rotated cells matters, this one immediately crashes my Writer.
Comment 4 Bugcruncher 2014-09-05 14:01:22 UTC
This is not a "Writer only" problem, also draw will crash with such a GDI metafile
Comment 5 Jean-Baptiste Faure 2014-09-06 06:56:45 UTC
Indeed, this new file freeze my Unity session under Ubuntu 14.04 x86-64 and I had to do a hard reset of the PC. :-(

Tested with Version: 4.3.2.0.0+ Build ID: 10817252c56f48b0026158fc37a55005098a9d78

Best regards. JBF
Comment 6 Julien Nabet 2014-11-01 23:51:43 UTC
On pc Debian x86-64 with master sources updated yesterday, I could reproduce this.

Zolnai: reading http://nabble.documentfoundation.org/Refactor-image-handling-td4127045.html, is this bugtracker relevant/may help you?
Comment 7 Bugcruncher 2015-04-19 05:08:06 UTC
No longer reproducible with Version: 4.5.0.0.alpha0+
Build ID: f11863d43d96c4bcad9ae43ceb25c05d9a94307d
TinderBox: Win-x86@42, Branch:master, Time: 2014-12-23_23:35:47
Locale: de_DE
Comment 8 Robinson Tryon (qubit) 2015-12-15 10:57:46 UTC
Migrating Whiteboard tags to Keywords: (possibleRegression)
[NinjaEdit]