Bug 112991 - Printer spooler is triggered when copying text which reduces the copy speed with 1/3 (for a large file)
Summary: Printer spooler is triggered when copying text which reduces the copy speed w...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All Windows (All)
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Print
  Show dependency treegraph
 
Reported: 2017-10-08 10:16 UTC by Telesto
Modified: 2024-11-02 17:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file (9.10 MB, application/vnd.oasis.opendocument.text)
2017-10-08 10:17 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2017-10-08 10:16:55 UTC
Description:
Printer spooler is triggered when copying text which reduces the copy speed with 1/3

Steps to Reproduce:
1. Open the attached file
2. Open a process monitor tool
3. Select all (CTRL+A)
4. Copy (CTRL+C)
5. If the Printer Spooler service is active the process will take up 2-3% of the CPU reducing the LibO process from 25 to 15%. Copy speed will around 66 seconds (on my system)
6 When disabling the Printer Spooler services ->  Start menu and type services -> Disable  Printer Spooler the LibO process will steadily run at 25% (and needs only 44 seconds)


Actual Results:  
The printer spooler is interfering with the copy process somehow

Expected Results:
Not sure if it's needed. No issue when disabling the Printer Spooler. 


Reproducible: Always

User Profile Reset: No

Additional Info:
Found in
Version: 6.0.0.0.alpha0+
Build ID: c5a93cad149618bbd43632f1660a558c34bdbf7e
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-10-07_01:04:25
Locale: nl-NL (nl_NL); Calc: CL

and in
LibO 4.4.7.2 (but probably inherited)


User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Comment 1 Telesto 2017-10-08 10:17:23 UTC
Created attachment 136843 [details]
Example file
Comment 2 Buovjaga 2017-11-03 14:54:10 UTC
Yep, confirmed this with Task Manager and observing spoolsv.exe.
Does not happen with the same text in Notepad++.

Arch Linux 64-bit, KDE Plasma 5
Version: 6.0.0.0.alpha1+
Build ID: 64024d7c18bd114eb9958cf80eea9129e09923bd
CPU threads: 8; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on November 3rd 2017
Comment 3 QA Administrators 2019-02-28 03:51:45 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2022-08-14 04:10:45 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2024-08-14 03:14:00 UTC Comment hidden (obsolete)
Comment 6 Mike Kaganski 2024-11-02 17:39:58 UTC
The problem is in SmDocShell::ArrangeFormula (https://opengrok.libreoffice.org/xref/core/starmath/source/document.cxx?r=b56ca52c&mo=7135&fi=247#237), which uses SmPrinterAccess. It is really unclear why Math is so much dependent on printer.