Issue 112546 - Long load/save times in Ubuntu 10.04
Summary: Long load/save times in Ubuntu 10.04
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: OOo 3.2
Hardware: PC Linux, all
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2010-06-20 11:37 UTC by tombgeek
Modified: 2017-05-20 11:15 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
typical stack during the multisecond "hang" (1.55 KB, text/plain)
2010-06-21 11:08 UTC, hdu@apache.org
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description tombgeek 2010-06-20 11:37:05 UTC
There have been complaints by many users in the Ubuntu community (myself
included). There have been some issues we have noticed with the default
OpenOffice 3.2 which comes included with Ubuntu 10.04 Lucid Lynx. All included
programs (Writer, Calc, Impress, Draw) takes an unusually long time to open
(whether it is a file, or the application itself), and to save.
It also effects OpenOffice 3.2.1, which I downloaded a few days ago to test. The
issue still remains.

We did notice, however, that the bug is caused by wired connections. A user who
accidently connected to a wireless network has said he did not experience the
same issues as with his wired connection. So it seems users who has a wired
connection (like me, I use ADSL) experience the issues I have explained. When I
disconnect my connection (auto EthO), the application and any file I wish to
open opens within a second, but when my internet is connected, it takes 15 to 20
seconds to load.

I will provide a link to the Ubuntu Forums, where the issue I have stated is
being discussed.
http://ubuntuforums.org/showthread.php?t=1512422
Comment 1 eric.savary 2010-06-20 21:17:10 UTC
When you say "It also effects OpenOffice 3.2.1, which I downloaded a few days
ago to test" do you mean the version from our site or an other (Ubuntu) version.

In any cas, please check with our version to compare.
Comment 2 tombgeek 2010-06-21 08:27:54 UTC
It is the version from your site. OpenOffice 3.2.1 for Linux Debian in English (GB).
As far as I know, the bug only affects Ubuntu 10.04. Nobody on the Ubuntu Forums
has mentioned the bug affecting Ubuntu 9.10. I will ask on the forums to check
if anyone has experienced it with 9.10
But yes, the bug affects OpenOffice 3.2.1.
Comment 3 Joost Andrae 2010-06-21 10:26:08 UTC
check if localhost is resolved as 127.0.0.1

/etc/hosts
127.0.0.1  my_computer  localhost.localdomain  localhost
Comment 4 hdu@apache.org 2010-06-21 11:07:17 UTC
Confirming on Debian for doing the file open dialog. Adjusting the priority as the multisecond hang is 
quite bad. Profiling shows that the culprit seems to be the excessive use of "realpath()" on EACH file of the 
active directory:
- is that level of detail needed when the file name alone should suffice to fill the open/close dialogs?
- why on each file in the directory?
Comment 5 hdu@apache.org 2010-06-21 11:08:25 UTC
Created attachment 70119 [details]
typical stack during the multisecond "hang"
Comment 6 tombgeek 2010-06-21 12:06:42 UTC
To ja

Yes, localhost is 127.0.0.1

To hdu

Sorry, I do not understand what you are talking about. I am only a casual user
and not too clued up about programming. But I will take what you said to the
Ubuntu Forums.
Comment 7 cno 2010-06-23 10:25:02 UTC
Issue was discussed on Dutch users list
http://nl.openoffice.org/servlets/ReadMsg?list=gebruikers&msgNo=10601

Seems to be a problem with file etc/hosts

I run Ubuntu 10.04 as well, but have no problem (with this ;-) )
Comment 8 hdu@apache.org 2010-06-23 14:12:24 UTC
@mav: I looked into the problem again and the problem seems to be in linux running into a timeout 
when it lstats the automounter part of the realpath() result. So it was not the many lookups that were 
the problem, but the one lookup that timed out. Here is the relevant excerpt from strace, which shows 
the 12sec hang:

14:56:51.25 lstat64("/net", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
14:56:51.25 lstat64("/net/xyz-server-01",  <unfinished ...>
14:57:03.77 <... lstat64 resumed>) = -1 ENOENT (No such file or directory)

Ceterum censeo: realpath() has no value add in the file-open/save scenario that would be worth a 
multi-second hang
Comment 9 hdu@apache.org 2010-06-24 07:49:49 UTC
Another piece in the puzzle: There was a soft-link to a file on a dead server in my default-save dir. You 
can reproduce the problem by creating such a soft-link e.g. in the home directory
    ln -s /net/xyz-server-01/somefile ~/
and make sure the xyz-server-01 is a known server that is not available. Doing a file-open in OOo for 
e.g. the home directory then triggers a realpath-lookup of the file on the dead server, which results in the 
hang until the lookup timeouts.
Comment 10 mikhail.voytenko 2010-06-29 10:42:22 UTC
Thanks a lot for the detailed investigation. What would be interesting, is
whether OOo3.1.1 and older versions have the same problem. If there is the
problem there as well, it is indeed something new from the Ubuntu 10.4.
Comment 11 hdu@apache.org 2010-06-29 12:01:56 UTC
I saw the problem also with versions such as OOo31 and IIRC older versions too. I'm not 100% sure if it is 
the same problem the reporter had: For me opening load/save dialog hung for a few seconds, the 
load/save times themselves are normal.
Comment 12 tombgeek 2010-07-01 07:12:24 UTC
To Mav

No. I never experienced the same issues in older versions of OpenOffice.org.
I used Ubuntu 9.10 as my primary operating system for a couple of months, I
never experienced the same issues. It seems the OS only affects Ubuntu 10.04. I
am not sure, however, if it affects Windows, Mac OS, and the other Linux
distribution.

To hdu

I never tested it without an internet connection. So I never really experienced
anything.
Comment 13 tombgeek 2010-07-04 18:16:21 UTC
Has anyone found a work around?
I tried opening the application first and then use File -> Open, but it still
takes quite long to open a file.
However, if a file is already open, and I open another file, then the file opens
within a second.
This is seriously odd.
Comment 14 ndsipa_pomu 2010-07-12 20:40:19 UTC
I've just hit this issue as well. I seem to be having more trouble with
loading/saving .doc documents although .odt documents are also infuriatingly
slow to save.

I think I've found a workaround, however. Create a directory for the document
you're working on and when there's only the single document in a directory,
it'll load and save properly.

Comment 15 tombgeek 2010-07-16 15:40:18 UTC
There was another post in the thread. Apparently, this user found a solution to
the problem, although the thing I am worried about is the fact he uses Kubuntu,
so i don't know if it will help Ubuntu users.
This is what he said:

"Ok, so I am using OOO-3.2 Kubuntu 10.04 but I did not install
openoffice.org-kde package but I did install openoffice.org-gtk. Document
opening and saving etc was OK but during drawing Xorg was gorging over my CPU.
So I thought its probably because of lack of kde customizations i.e.
openoffice.org-kde. So I installed it and then the problem of slow opening,
save-as-ing, exporting (anything with dialog box) appeared. While exporting a
doc the OOO assistant complained that I dont have openoffice help installed.
From this forum I got that this slow down problem is some sort of network or
database problem. I thought OOO might be looking for the help. So I installed
the help files openoffice.org-help-en-us and voila slow down problem gone
although Xorg stills shoots up when I do any drawing related movement but I
guess we have a resolution on the slow down issue. Please do let all know if it
works for you."

However, another user said this did not help.

"I checked and those were already installed.
Still, clutching at straws here, I reinstalled.
I can now report that this package has no affect on the slow file opening and
closing on my system.
I am happy that you have noticed an improvement on yours."

http://ubuntuforums.org/showthread.php?t=1512422&page=4
Comment 16 tombgeek 2010-08-01 16:16:53 UTC
> 127.0.0.1    localhost
> 127.0.1.1    System name
> 127.0.0.1    (System name) localhost (System name).(none)

So it appears that the issue can be sorted if we add the third line to etc/hosts

But the problem is, in order to add that line, you have to run the OS as a root
user. Is there perhaps a work-around to that? I don't like the idea of running
Ubuntu as a root user.
Comment 17 Marcus 2017-05-20 11:15:49 UTC
Reset assigne to the default "issues@openoffice.apache.org".