Bug 112537 - Ask if the clipboard should be cleared before closing, when a large amount data is stored on the Clipboard
Summary: Ask if the clipboard should be cleared before closing, when a large amount da...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.1.2 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 132132 159272 (view as bug list)
Depends on:
Blocks: Calc-Enhancements
  Show dependency treegraph
 
Reported: 2017-09-21 01:09 UTC by Mark Brown
Modified: 2024-02-21 08:52 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Brown 2017-09-21 01:09:14 UTC
In Calc I copy a very large amount of data to the clipboard.
When I close the program, it closes but the process soffice.bin continues to run and run for more than 5 minutes during which time I can not relaunch the program.
If I run C:\Windows\System32\cmd.exe /c "echo off | clip" , this clears the clipboard and I can immediately relaunch the program. You might consider the option "You have a large amount on the clipboard. Would you like to clear it?"
Comment 1 Telesto 2017-09-21 07:29:41 UTC Comment hidden (obsolete)
Comment 2 Buovjaga 2017-10-28 15:34:54 UTC Comment hidden (obsolete)
Comment 3 Telesto 2017-10-31 16:21:38 UTC
The summary is a bit misleading, but I agree with the suggestion in comment 1. 
LibreOffice will keep running in the background after closing for quite a long time, if a large amount of data on the clipboard. And having the data on the clipboard is mostly by accident. 

An example
1. Open https://yadi.sk/i/rM9QctDym5y3M
2. Copy the columns A-C
3. Close Calc -> Back to Start Center
4. Close LibreOffice -> Notice that LibO will run for 12 seconds in the background before it closes

So, "You have a large amount on the clipboard. Would you like to clear it?", , looks like a pretty obvious feature.

@Buovjaga, an opinion on this?
Comment 4 Dennis Roczek 2017-10-31 17:38:52 UTC
same does MSO btw. definitively +1 from me
Comment 5 Buovjaga 2017-10-31 18:37:52 UTC
(In reply to Dennis Roczek from comment #4)
> same does MSO btw. definitively +1 from me

Ok, I believe you.
Comment 6 Telesto 2024-01-31 16:53:13 UTC
*** Bug 159272 has been marked as a duplicate of this bug. ***
Comment 7 Telesto 2024-01-31 16:59:13 UTC
Bug 159272 has more illustrative of the sneaky aspect of the issue at hand: a 47 kb file causing 5 GB RAM spike with large range of data on the clipboard
Comment 8 Tex2002ans 2024-02-10 09:43:38 UTC
(In reply to Telesto from comment #7)
> Bug 159272 has more illustrative of the sneaky aspect of the issue at hand:
> a 47 kb file causing 5 GB RAM spike with large range of data on the clipboard

I came here from just randomly testing Bug #132132 (same exact document Telesto just mentioned/referenced/duplicated with Bug #159272).

My RAM usage actually reached 7(!!!) GB—for 39 seconds after closing LO—when testing attachment 139120 [details].

- - -

So yes... if this clipboard-stuck-in-memory is the root cause of the issue, then definitely sounds like a good idea to have that:

- "You have a lot of stuff copied. Do you want to clear the clipboard?" warning on close.

(I recall seeing similar popups in Word and a few other programs too.)
Comment 9 Buovjaga 2024-02-10 11:13:47 UTC
*** Bug 132132 has been marked as a duplicate of this bug. ***