Bug 104198 - Copy&pasting a column and then trying to quit Calc hangs
Summary: Copy&pasting a column and then trying to quit Calc hangs
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.2.2.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Clipboard
  Show dependency treegraph
 
Reported: 2016-11-27 11:36 UTC by fiftyigfuci_f_mi
Modified: 2017-09-22 08:07 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace (7.48 KB, text/plain)
2016-11-28 07:38 UTC, fiftyigfuci_f_mi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fiftyigfuci_f_mi 2016-11-27 11:36:20 UTC
Description:
Copy&pasting a column and then trying to quit Calc hangs.

Steps to Reproduce:
1. Launch Calc.
2. Copy a whole column and paste the column to the other.
3. Quit the Calc.

Actual Results:  
The window disappears as expected but the process is still alive and do access a HDD all the time.

Expected Results:
Quit instantly.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0
Comment 1 Thomas Hackert 2016-11-27 16:28:53 UTC
Hello fiftyigfuci_f_mi, *,
thank you for reporting this bug :)

I cannot - however - reproduce it with

OS: Debian Testing AMD64
LO: Version: 5.2.3.3
Build-ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
CPU-Threads: 4; BS-Version: Linux 4.5; UI-Render: Standard; 
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group
(parallel installed, following the instructions from https://wiki.documentfoundation.org/Installing_in_parallel/Linux)

, sorry ... :( As you have reported this for 5.2.2.2, would you be so kind to test it with a newer version of LO, please? Maybe it is fixed in the meantime ... ;)
TIA
Thomas.
Comment 2 fiftyigfuci_f_mi 2016-11-28 07:38:13 UTC
Created attachment 129059 [details]
backtrace

Calc eats a lot of memory and occurs disk accesses.
It seems like loops infinitely in pngwrite.cxx:404
 
#1  0x00007f609ebeabc6 in vcl::PNGWriterImpl::ImplWriteIDAT (this=0x55d671cc71c0)
    at /libreoffice/vcl/source/gdi/pngwrite.cxx:404

reproduced (even if reset profiles) :
Build ID: 1:5.2.2-0ubuntu2 (my original report)
My dev build (Nov 27 f35d29c8388744be1f95ec4acfca12eec706911a)

not reproduced:
LibreOffice_5.2.2.2_Linux_x86-64_deb
LibreOffice_5.2.3.3_Linux_x86-64_deb
master~2016-11-21_22.42.51_LibreOfficeDev_5.3.0.0.alpha1_Linux_x86-64_deb.tar.gz
Comment 3 Buovjaga 2016-11-29 19:48:08 UTC
From your list of repro / not repro, it seems gtk3 might be the determining factor.

Try launching with
SAL_USE_VCLPLUGIN=gtk ./soffice

or

SAL_USE_VCLPLUGIN=gen ./soffice
Comment 4 fiftyigfuci_f_mi 2016-11-29 20:48:20 UTC
Some of the combinations works well.

My dev build:
not reproduced: SAL_USE_VCLPLUGIN=gtk ./soffice
not reproduced: SAL_USE_VCLPLUGIN=gen ./soffice

Ubuntu's 5.2.2:
reproduced: SAL_USE_VCLPLUGIN=gtk soffice
not reproduced: SAL_USE_VCLPLUGIN=gen soffice

Besides the problem, there is a drawing glitch with SAL_USE_VCLPLUGIN=gen when changing the window dimension.
Comment 5 Buovjaga 2016-12-01 15:07:08 UTC Comment hidden (obsolete)
Comment 6 fiftyigfuci_f_mi 2016-12-01 19:18:11 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2016-12-02 05:28:01 UTC Comment hidden (obsolete)
Comment 8 fiftyigfuci_f_mi 2016-12-02 16:21:53 UTC
I have just updated to libgtk-3-0:amd64 3.22.4-1ubuntu1~ubuntu16.10.1
However, the result is completely same.
Comment 9 fiftyigfuci_f_mi 2017-03-12 07:02:25 UTC
For me, It seems like the cause is the generation of a huge bitmap image of the column to store the image into clipboard.
Comment 10 Xisco Faulí 2017-03-20 20:01:24 UTC Comment hidden (no-value, obsolete)
Comment 11 fiftyigfuci_f_mi 2017-03-21 15:54:45 UTC
Hi
No need to open any existing files to reproduce the bug.
A new document is enough.
Comment 12 Jean-Baptiste Faure 2017-09-09 20:53:15 UTC
Indeed, after having left Calc (window is closed), process soffice is still alive for a moment, using 100% of one core.
For me it is not a bug because LO needs some time to close properly after having created a lot of data.

Best regards. JBF
Comment 13 Timur 2017-09-11 12:04:05 UTC Comment hidden (no-value)
Comment 14 Timur 2017-09-21 13:12:30 UTC
(In reply to Jean-Baptiste Faure from comment #12)
> Indeed, after having left Calc (window is closed), process soffice is still
> alive for a moment, using 100% of one core.
> For me it is not a bug because LO needs some time to close properly after
> having created a lot of data.
> 
> Best regards. JBF

That's in Windows for me. In Linux I don't repro even that. No hang, as in title. 
So, if this bug is about that, it's NotABug for me. 
If there's sth. else specific in Linux, it's not clear what it is.
And title should be changed, maybe from "hangs" to "stays alive for a while?".

fiftyigfuci_f_mi, please try with master after 2017-09-13 from http://dev-builds.libreoffice.org/daily/master/ because of fix in Bug 108299.
Comment 15 fiftyigfuci_f_mi 2017-09-22 08:07:13 UTC
I confirmed this bug has resolved on master~2017-09-19_02.19.07_LibreOfficeDev_6.0.0.0.alpha0_Linux_x86-64_deb.tar.gz

Thank you very much.