Bug 135390 - Linked Graphic on localhost slows freezes application for several seconds when not available
Summary: Linked Graphic on localhost slows freezes application for several seconds whe...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2020-08-02 16:47 UTC by Eelco de Vlieger
Modified: 2020-08-03 16:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document with linked localhost graphic on page 5 (9.86 KB, application/vnd.oasis.opendocument.text)
2020-08-02 16:50 UTC, Eelco de Vlieger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eelco de Vlieger 2020-08-02 16:47:54 UTC
Description:
Linked Graphic on localhost slows freezes application for several seconds when not available.

I was sent a file by someone else, linking multiple local web server images. Scrolling through this document froze the application for multiple seconds, as well as freezing other LibreOffice application instances.

I have a fairly high spec PC (32 thread, 64GB ram) which was hardly under any load. Perhaps the resolving of this linked graphic can be done asynchronously to prevent blocking the user.

Steps to Reproduce:
1. Insert > Image
2. Enter Localhost image URL as 'File Name' and check the 'Link' checkbox > confirm 'Keep Link'
3. Save and close document
4. Stop localhost server
5. Re-open document, scrolling over the localhost linked graphic will freeze Writer for several seconds. It also freezes other open LibreOffice Writer or Calc instances.

Actual Results:
Scrolling over the localhost linked graphic will freeze Writer for several seconds. It also freezes other open LibreOffice Writer or Calc instances.

Expected Results:
No delay, should just be an unresolved graphic without blocking the application


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.5.2 (x64)
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 32; OS: Windows 10.0 Build 19041; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: CL
Comment 1 Eelco de Vlieger 2020-08-02 16:50:03 UTC
Created attachment 163886 [details]
Sample document with linked localhost graphic on page 5
Comment 2 Xisco Faulí 2020-08-03 16:36:51 UTC
this looks similar to bug 131185.
For me, it hangs for 1-2 seconds.
Regression introduced by 

https://cgit.freedesktop.org/libreoffice/core/commit/?id=9fb7aaf570c03c8a26d763f1205fb8c890e8211a

author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	2018-04-13 16:58:49 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	2018-04-16 02:52:02 +0200
commit	9fb7aaf570c03c8a26d763f1205fb8c890e8211a (patch)
tree	8f4466b24d9fcae2da5043479a57fabc662a2c43
parent	ba69036c8e889237da4bb312d7c5c94066abbfd3 (diff)
Make linked graphic register into LinkedManager again

Bisected with bibisect-linux64-6.1

Adding Cc: to Tomaž Vajngerl