Bug 141781 - Freeze / very slow when attempting to insert an image using a hyperlink instead of a file
Summary: Freeze / very slow when attempting to insert an image using a hyperlink inste...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: Images
  Show dependency treegraph
 
Reported: 2021-04-20 13:47 UTC by uffr_87
Modified: 2023-03-31 11:35 UTC (History)
2 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 uffr_87 2021-04-20 13:47:03 UTC
Description:
The application sometimes freezes upon attempting to insert an image from a web source and then crashes after the OS detects the freeze. Also affects other LibreOffice applications that are open at the same time such as Calc. Reproduction of the error implies it happens most of the time, but sometimes it works as intended. Only appears to happen in Impress, Writer simply says the image can't be opened. Image used: https://www.nrc.gov/images/reading-rm/doc-collections/maps/power-reactors-operating.png

Steps to Reproduce:
1. Open LibreOffice Impress
2. Click an option to insert an image
3. Enter hyperlink to image instead of a proper filename
(Link attempted to be used in initial bug encounter: https://www.nrc.gov/images/reading-rm/doc-collections/maps/power-reactors-operating.png)
4. Click OK or otherwise input

Actual Results:
Program and all other open LibreOffice applications froze permanently, had to force close.

Expected Results:
Inserted the image properly, as if it were using an image off of the disk.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
Actually worked properly once, implying that this is a bugged feature, though specifically for Impress as Writer said it could not be opened (without freezing).

About menu information:

Version: 6.4.7.2
Build ID: 1:6.4.7-0ubuntu0.20.04.1
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 Vadym 2021-05-18 12:14:01 UTC
Thank you for reporting the bug. I can confirm that the bug is present in 7.2.0.0.aplha1+ (x64) version.
Comment 2 Stéphane Guillou (stragu) 2023-03-17 17:06:46 UTC
I haven't been able to freeze the application, but I can see that inserting an image from the web is painfully slow, without any feedback of something progressing (which could be useful for large files).

There is definitely something that could be done more efficiently, given that loading the image in a browser is instant (my example is less than 500KB) but LibreOffice can take 12 seconds, giving the impression it is frozen.

Steps:
1. Open a component (I think this applies to all component that can insert pictures)
2. Insert > Image > use this URL: https://www.libreoffice.org/themes/libreofficenew/img/header2.jpg > OK

(Note that on some versions of GNOME, if the file picker only shows the breadcrumbs, you will have to us Ctrl + L to reveal the address field.)

Tested with:

Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded