Bug 135917 - slow response after closing document if ftp document is in history
Summary: slow response after closing document if ftp document is in history
Status: RESOLVED WONTFIX
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: framework (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Start-Center Performance
  Show dependency treegraph
 
Reported: 2020-08-19 12:04 UTC by Andrej
Modified: 2023-11-09 15:59 UTC (History)
4 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 Andrej 2020-08-19 12:04:10 UTC
Description:
A few days back I open a writer document from ftp.
After computer restart, ftp connection is closed.

When I now close a document on my hard drive in writer, I would expect a starting view that has history of opened documents to show up immediately, but the writer/LibreOffice was not responding for more or less 10 seconds.

Later I deleted the shortcut for that document from ftp in starting view history and LibreOffice is now responding normally.


Actual Results:
not responding

Expected Results:
starting view that has history of opened documents


Reproducible: Always


User Profile Reset: No



Additional Info:
very annoying :)
Comment 1 Stephan Bergmann 2020-09-28 12:32:17 UTC
This is apparently a consequence of <https://git.libreoffice.org/core/+/43446fa03995fb5d1379fc0afbeec36c9dedfde2%5E%21> "Show start centre thumbnail indicating the file is encrypted".  When the start center is shown at start-up of LibreOffice (which runs into the same issue as the scenario described in comment 0), the main thread blocks at

> #4  0x00007f74ef26acce in easy_transfer (multi=0x3b38248) at ~/lo/core/workdir/UnpackedTarball/curl/lib/easy.c:600
> #5  0x00007f74ef26aecd in easy_perform (data=0x3b36938, events=false) at ~/lo/core/workdir/UnpackedTarball/curl/lib/easy.c:693
> #6  0x00007f74ef26af05 in curl_easy_perform (data=0x3b36938) at ~/lo/core/workdir/UnpackedTarball/curl/lib/easy.c:712
> #7  0x00007f74b6d45211 in ftp::FTPURL::list(short) const (this=0x7ffd98211cf0, nMode=0) at ~/lo/core/ucb/source/ucp/ftp/ftpurl.cxx:445
> #8  0x00007f74b6d45cdf in ftp::FTPURL::direntry() const (this=0x3b32cf0) at ~/lo/core/ucb/source/ucp/ftp/ftpurl.cxx:611
> #9  0x00007f74b6d20edc in ftp::FTPContent::getPropertyValues(com::sun::star::uno::Sequence<com::sun::star::beans::Property> const&) (this=0x3b32c40, seqProp=uno::Sequence of length 1 = {...}) at ~/lo/core/ucb/source/ucp/ftp/ftpcontent.cxx:735
> #10 0x00007f74b6d1e328 in ftp::FTPContent::execute(com::sun::star::ucb::Command const&, int, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&) (this=0x3b32c40, aCommand=..., Environment=empty uno::Reference) at ~/lo/core/ucb/source/ucp/ftp/ftpcontent.cxx:388
> #11 0x00007f74e99cd450 in ucbhelper::Content_Impl::executeCommand(com::sun::star::ucb::Command const&) (this=0x3b005e0, rCommand=...) at ~/lo/core/ucbhelper/source/client/content.cxx:1255
> #12 0x00007f74e99c9a7c in ucbhelper::Content::getPropertyValuesInterface(com::sun::star::uno::Sequence<rtl::OUString> const&) (this=0x7ffd982124e8, rPropertyNames=uno::Sequence of length 1 = {...}) at ~/lo/core/ucbhelper/source/client/content.cxx:496
> #13 0x00007f74e99c97dd in ucbhelper::Content::getPropertyValues(com::sun::star::uno::Sequence<rtl::OUString> const&) (this=0x7ffd982124e8, rPropertyNames=uno::Sequence of length 1 = {...}) at ~/lo/core/ucbhelper/source/client/content.cxx:455
> #14 0x00007f74e99c956f in ucbhelper::Content::getPropertyValue(rtl::OUString const&) (this=0x7ffd982124e8, rPropertyName="IsDocument") at ~/lo/core/ucbhelper/source/client/content.cxx:434
> #15 0x00007f74e99cc4ca in ucbhelper::Content::isDocument() (this=0x7ffd982124e8) at ~/lo/core/ucbhelper/source/client/content.cxx:1026
> #16 0x00007f74e99cb172 in ucbhelper::Content::openStream(com::sun::star::uno::Reference<com::sun::star::io::XActiveDataSink> const&) (this=0x7ffd982124e8, rSink=uno::Reference to (class (anonymous namespace)::OActiveDataSink *) 0x3b34da8) at ~/lo/core/ucbhelper/source/client/content.cxx:785
> #17 0x00007f74c9dcf105 in (anonymous namespace)::OFileAccess::openFileRead(rtl::OUString const&) (this=0x3a532a0, FileURL="ftp://a.b.c.de~/Documents/test.odt") at ~/lo/core/ucb/source/core/FileAccess.cxx:488
> #18 0x00007f74b6de670d in OStorageFactory::createInstanceWithArguments(com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (this=0x3a53530, aArguments=uno::Sequence of length 2 = {...}) at ~/lo/core/package/source/xstor/xfactory.cxx:143
> #19 0x00007f74ecc0469b in (anonymous namespace)::IsDocEncrypted(rtl::OUString const&) (rURL="ftp://a.b.c.de~/Documents/test.odt") at ~/lo/core/sfx2/source/control/recentdocsview.cxx:74
> #20 0x00007f74ecc059fd in sfx2::RecentDocsView::getDefaultThumbnail(rtl::OUString const&) (rURL="ftp://a.b.c.de~/Documents/test.odt") at ~/lo/core/sfx2/source/control/recentdocsview.cxx:205
> #21 0x00007f74ecc06121 in sfx2::RecentDocsView::Reload() (this=0x3883e20) at ~/lo/core/sfx2/source/control/recentdocsview.cxx:263
> #22 0x00007f74ecc8f552 in BackingWindow::initControls() (this=0x385fdb0) at ~/lo/core/sfx2/source/dialog/backingwindow.cxx:223
> #23 0x00007f74ecc90f8d in BackingWindow::setOwningFrame(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) (this=0x385fdb0, xFrame=uno::Reference to (class (anonymous namespace)::XFrameImpl *) 0x36dd710) at ~/lo/core/sfx2/source/dialog/backingwindow.cxx:465
> #24 0x00007f74ecc89f8e in (anonymous namespace)::BackingComp::attachFrame(com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) (this=0x385eb00, xFrame=uno::Reference to (class (anonymous namespace)::XFrameImpl *) 0x36dd710) at ~/lo/core/sfx2/source/dialog/backingcomp.cxx:377
> #25 0x00007f74efef394d in desktop::Desktop::ShowBackingComponent(desktop::Desktop*) (progress=0x7ffd98213830) at ~/lo/core/desktop/source/app/app.cxx:2501
> #26 0x00007f74efeed603 in desktop::Desktop::Main() (this=0x7ffd98213830) at ~/lo/core/desktop/source/app/app.cxx:1513
> #27 0x00007f74e85e123c in ImplSVMain() () at ~/lo/core/vcl/source/app/svmain.cxx:196
> #28 0x00007f74e85e135d in SVMain() () at ~/lo/core/vcl/source/app/svmain.cxx:228
> #29 0x00007f74eff4c39c in soffice_main() () at ~/lo/core/desktop/source/app/sofficemain.cxx:98
> #30 0x000000000040087e in sal_main () at ~/lo/core/desktop/source/app/main.c:48
> #31 0x0000000000400864 in main (argc=2, argv=0x7ffd98213b98) at ~/lo/core/desktop/source/app/main.c:47

until that eventually times out.
Comment 2 QA Administrators 2022-09-30 03:53:04 UTC Comment hidden (obsolete)
Comment 3 Michael Stahl (allotropia) 2023-11-09 15:59:28 UTC
FTP support was removed in bug 146386