Bug 161042 - LO local instances hang when a network document save is executed
Summary: LO local instances hang when a network document save is executed
Status: RESOLVED DUPLICATE of bug 48416
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-11 16:09 UTC by MB
Modified: 2024-05-28 12:33 UTC (History)
1 user (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 MB 2024-05-11 16:09:14 UTC
Description:
In Linux Mint 21.3 I work a lot with network documents (documents on a remote shared location also running linux and accessed through ssh).
If I open one network document (calc) and one local document (calc) and run a "save" on the network document, during the save even the local instance hangs. As I work with very large documents, the whole libreoffice local and network instance can hang for more than 1 minute in every save. My question is why the local file also hangs if the upload of the network save is slow. Shouldn't they two instances be independent? I understand the hanging of the remote document but I don't justify the hanging of the local document.

Steps to Reproduce:
1. Open a big (> 30MB) network shared document (preferably through ssh)
2. Open a local document
3. Click "Save" on the network shared document
4. Try to use / edit the local document. It's impossible because even the local instance of LO is hanging!

Actual Results:
Both local and network edited LO instances hang when a save is executed on the remote document.

Expected Results:
Only the network edited LO instance should hang when a save is executed on the remote document. The local opened document/instance should be fully functional without hanging and without being affected by the network edited instance.


Reproducible: Always


User Profile Reset: No

Additional Info:
I'm using the following LO version:

Version: 24.2.4.0.0+ (X86_64) / LibreOffice Community
Build ID: aa225b41352f22c60f41fb9fa03c23b4e9359266
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: el-GR (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Stéphane Guillou (stragu) 2024-05-27 01:17:33 UTC
Thank you for the report, MB.
The saving process blocking the whole app for input is bug 48416. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 48416 ***
Comment 2 MB 2024-05-27 06:05:17 UTC
SG, in my opinion this is not the same bug!
The bug 48416 refers to hanging when saving on the same instance. My bug says that if an instance is saving in the network and it is slow, ALL OTHER INSTANCES are hanging!!! I think it is a completely different bug, and I don't understand the way libreoffice is implemented that one document saving can hang all other open documents...
Comment 3 Stéphane Guillou (stragu) 2024-05-28 04:25:41 UTC
What do you mean by "instance"? You are using the same installation of LibreOffice to open the two documents, correct?
If you look at the duplicates of bug 48416, you'll see that several talk about editing different documents at the same time, and saving one blocking editing the others: https://bugs.documentfoundation.org/buglist.cgi?bug_id=120095%2C94800%2C119640%2C122724%2C154555%2C99934%2C106208%2C157367%2C160987%2C69085%2C115942%2C161042&list_id=1736120
The networked document might just make the issue more annoying because saving is slower.
But if you disagree, since your are talking about slow save of remote document, maybe bug 122095 is a better match?
Comment 4 MB 2024-05-28 10:24:55 UTC
I was thinking that for every document opened the libreoffice creates a new separate process/instance/window. So it looked very weird one instance to hang the other. So what is really happening, there is only one application running and is responsible for all libreoffice documents and windows? Why is it implemented like this?
Comment 5 Stéphane Guillou (stragu) 2024-05-28 12:33:27 UTC
(In reply to MB from comment #4)
> So what is really happening, there is only one application
> running and is responsible for all libreoffice documents and windows? Why is
> it implemented like this?
Yes, only one process even if you have e.g. Calc and Writer opened. The reason? I guess what we inherited from a long-standing project.