Bug 135597 - Save-as PDF export slow or no response for "PDF options" dialog for Save of inserted image
Summary: Save-as PDF export slow or no response for "PDF options" dialog for Save of i...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
7.0 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: PDF-Export Graphics-Export
  Show dependency treegraph
 
Reported: 2020-08-10 09:43 UTC by sawakaze
Modified: 2023-10-14 03:07 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
ScreenCast (1.14 MB, video/x-matroska)
2020-08-10 09:44 UTC, sawakaze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sawakaze 2020-08-10 09:43:49 UTC
Description:
after following step, PDF option dialog Response is very heavy or not.
detail is screen cast.

Steps to Reproduce:
1. open writer
2. insert a image (insert > image)
3. right click inserted image
-> open menu 
4. select Save 
-> launch Image export dialog
5. select file type to PDF and input file name.
6. press save
-> launch PDF Option Dialog
7. change size pdf image.

Actual Results:
On step 7, PDF Option Dialog is very heavy or not.
show file size to 0 byte. 

Expected Results:
Option Dialog response is quick
show true file size.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I confirm it 

Version: 7.1.0.0.alpha0+
Build ID: <buildversion>
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-08-06_17:35:14
Calc: threaded
Comment 1 sawakaze 2020-08-10 09:44:13 UTC
Created attachment 164092 [details]
ScreenCast
Comment 2 Dieter 2020-08-10 17:27:48 UTC
I confirm it with

Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

Additional information:
I'm also not sure, if the the actual target of help-Button ist correct: https://help.libreoffice.org/7.0/en-GB/text/shared/00/00000200.html?System=WIN&DbPAR=WRITER&HID=svt/ui/graphicexport/dialog-action_area1#@@nowidget@@
Comment 3 QA Administrators 2022-08-13 03:40:56 UTC Comment hidden (obsolete)
Comment 4 Dieter 2022-08-14 11:22:38 UTC
Still present in

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a56d0c34716f381accbd9d2e3040a62d3583d18d
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL

Writer freezes.
Comment 5 V Stuart Foote 2022-08-14 17:33:57 UTC
On Windows builds there is no delay or slowness when PDF export is selected and size or resolution parameters are selected. But on opening the 'PDF Options' dialog already reports the document size is "0.0 KB" 

Proceeding, the write out to PDF is immediate with the named file being created--unfortunately it is not a valid PDF, and is size ends up 0 bytes.

The image inserted shown in attachment 164092 [details] was JPEG, so also tested a JPEG.

The other image export formats PNG, TIFF work correctly for same selection -> Save... actions--including respective export Option dialogs showing reasonable image size and produce an export.

Changing from JPEG to PNG inserted image made no difference.

Also tested Selection -> save-as PDF for image on Draw canvas. Same result--the PDF filter export for an image Save does not function.

Kind of question the need in LO for a direct canvas -> PDF export for single images.

@Tomaž, any thoughts? Maybe just remove the PDF format option for save of a single image?


=-testing-=

Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4827d5cb1508f6bca9489e31b877cfff36393c50
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 6 Kira Tubo 2023-10-14 02:15:51 UTC
With regards to delay in response, I've seen it occur on the PDF option dialog on the master build on Windows, but it is more apparent if the width/height is set to a larger number (like 10 cm).  

1. open writer
2. insert a image (insert > image)
3. right click inserted image
4. select Save 
5. select file type to PDF and input file name.
6. press save
7. Update Width to a large number like 10 cm (delays already start occurring just changing this number)
8. Click on up/down arrow buttons on width/height, change measurement (e.g. cm to inches), change radio buttons for Modify dimensions/resolution

Screencast: https://screenpal.com/watch/c062VnV5SQC

Reproduced on: 

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1ec2e39cf4d5fe0a592bc783fd8bcdc4345c8cbd
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

NOT reproducible in: 

Version: 6.4.0.3 (x64)
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 6; OS: Windows 10.0 Build 22621; UI render: GL; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: CL
Comment 7 Kira Tubo 2023-10-14 02:27:00 UTC
I bibisected win64-7.0 to this commit: https://git.libreoffice.org/core/+/2b4f2cdd3deb9b131ea19c91ae50e2c34f35754c

It seems Skia is causing the issue, at least on Windows anyway. Indeed, turning off Skia under Tools > Options > View seemed to fix the issue. Not sure if this is the same on Linux. 

Note: Luboš Luňák no longer seems to be an active developer. 

------------------

commit 2b4f2cdd3deb9b131ea19c91ae50e2c34f35754c	[log]
author	Luboš Luňák <l.lunak@collabora.com>	Wed Feb 26 14:57:08 2020 +0100
committer	Luboš Luňák <l.lunak@collabora.com>	Fri Feb 28 09:49:20 2020 +0100
tree 127d96d246a0e6acbecc841d395ca5ea1946919f
parent 81d982f176751a6d5f13fcb72f425a29fd077c92 [diff]
enable Skia by default on Windows, instead of OpenGL

------------------
 40f10b7c9cb9a6807758423f1c03ff78609c2363 is the first bad commit
commit 40f10b7c9cb9a6807758423f1c03ff78609c2363
Author: Norbert Thiebaud <nthiebaud@gmail.com>
Date:   Fri Feb 28 02:13:17 2020 -0800

    source 2b4f2cdd3deb9b131ea19c91ae50e2c34f35754c