Issue 113330 - ooo hangs on opening documents on nfs filesystems
Summary: ooo hangs on opening documents on nfs filesystems
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: General
Classification: Code
Component: ui (show other issues)
Version: OOO320m12
Hardware: PC (x86_64) Linux, all
: P2 Trivial (vote)
Target Milestone: ---
Assignee: go_oo_bugs
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 12:33 UTC by p92
Modified: 2011-03-17 12:02 UTC (History)
6 users (show)

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


Attachments
the script that launch ooo (6.36 KB, text/plain)
2010-07-30 19:56 UTC, p92
no flags Details
strace while trying to open a file on nfs filesystem (10.08 KB, text/plain)
2010-12-11 11:51 UTC, p92
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description p92 2010-07-21 12:33:16 UTC
ooo320m12  build 9483 from ubuntu lucid

oowriter cannot open any document residing on nfs share. I can view and select a
document in oowriter open selector dialog but after clicking open, oowriter
locks and we have to kill it with SIGKILL to get rid of it (SIGTERM is not
sufficient)

open works fine in local disks and iSCSI shares.

ubuntu bug : https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/577038
Comment 1 michael.ruess 2010-07-21 13:59:40 UTC
Framework issue.
Comment 2 kendy 2010-07-23 10:01:26 UTC
p92: Is locking enabled & working in your mounted home?
Comment 3 p92 2010-07-23 12:48:31 UTC
My home is on a local dir. Documents are on a NFS mounted dir.
Btw what do you mean by "locking enabled & working" ? How do I check that ?

my NFS entry in fstab is :
synology:/volume1/PC   /mnt/pc   nfs _netdev,nouser,auto,rw,dev,exec,suid  0  0 

Mount:
synology:/volume1/PC on /mnt/pc type nfs (rw,addr=192.168.0.2)


I have investigated more and found that if I launch openoffice with the script
oowriter locks on the splash screen :

$ /usr/lib/openoffice/program/soffice -writer "/mnt/pc/proposition de mise en
oeuvre de pci-pra.odt" 
+ test -z /home/pascal
+ FILE_LOCKING=auto
+ OPENGL_SUPPORT=no
+ [ -f /etc/openoffice/soffice.sh ]
+ . /etc/openoffice/soffice.sh
+ FILE_LOCKING=auto
+ OPENGL_SUPPORT=no
+ [ -z  ]
+ home_on_nfs -writer /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ stat -f -c %T /home/pascal
+ return 1
+ [ 1 = 0 ]
+ file_on_nfs -writer /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ continue
+ [ -f /mnt/pc/proposition de mise en oeuvre de pci-pra.odt ]
+ stat -f -c %T /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ return 0
+ [ 0 = 0 ]
+ SAL_ENABLE_FILE_LOCKING=0
+ export SAL_ENABLE_FILE_LOCKING
+ STAR_ENABLE_FILE_LOCKING=0
+ export STAR_ENABLE_FILE_LOCKING
+ [ -z  ]
+ SAL_NOOPENGL=true
+ export SAL_NOOPENGL
+ [ LINUX = LINUX -a INTEL = POWERPC ]
+ pwd
+ sd_cwd=/home/pascal
+ [ -h /usr/lib/openoffice/program/soffice ]
+ dirname /usr/lib/openoffice/program/soffice
+ cd /usr/lib/openoffice/program
+ pwd
+ sd_prog=/usr/lib/openoffice/program
+ cd /home/pascal
+ basename /usr/lib/openoffice/program/soffice
+ sd_binary=soffice.bin
+ sd_pagein_args=@pagein-common
+ sd_pagein_args=@pagein-common @pagein-writer
+ break
+ /usr/lib/openoffice/program/../basis-link/program/pagein
-L/usr/lib/openoffice/program/../basis-link/program @pagein-common @pagein-writer
+ [ -x /usr/lib/openoffice/program/../basis-link/ure-link/bin/javaldx ]
+ /usr/lib/openoffice/program/../basis-link/ure-link/bin/javaldx
-env:INIFILENAME=vnd.sun.star.pathname:/usr/lib/openoffice/program/redirectrc
+
my_path=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
+ [ -n
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
]
+
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
+ export LD_LIBRARY_PATH
+ unset XENVIRONMENT
+ [ -f /etc/adabasrc ]
+
PATH=/usr/lib/openoffice/program:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ export PATH
+ PYTHONPATH=/usr/lib/openoffice/program/../basis-link/program
+ export PYTHONPATH
+ [ -writer = -nologo -o -writer = -no-oosplash ]
+ [ /mnt/pc/proposition = -nologo -o /mnt/pc/proposition = -no-oosplash ]
+ [ de = -nologo -o de = -no-oosplash ]
+ [ mise = -nologo -o mise = -no-oosplash ]
+ [ en = -nologo -o en = -no-oosplash ]
+ [ oeuvre = -nologo -o oeuvre = -no-oosplash ]
+ [ de = -nologo -o de = -no-oosplash ]
+ [ pci-pra.odt = -nologo -o pci-pra.odt = -no-oosplash ]
+ [ soffice.bin = soffice.bin -a -x /usr/lib/openoffice/program/oosplash.bin ]
+ [  != y ]
+ sd_binary=oosplash.bin
+ trap kill -9 $! TERM
+ wait 31713
+ /usr/lib/openoffice/program/oosplash.bin -writer /mnt/pc/proposition de mise
en oeuvre de pci-pra.odt

But if I launch oowriter directly from /usr/lib/openoffice/program/oosplash.bin
-writer "/mnt/pc/proposition de mise en oeuvre de pci-pra.odt"

I experience no lock and oowriter gui is even A LOT MORE responsive than usual
especially when in the file selector where it is usually very very slow to
display directory contents !


Comment 4 kendy 2010-07-30 09:06:25 UTC
+ SAL_ENABLE_FILE_LOCKING=0
+ export SAL_ENABLE_FILE_LOCKING
+ STAR_ENABLE_FILE_LOCKING=0
+ export STAR_ENABLE_FILE_LOCKING

seems to disable the locking & cause trouble...  Can you please try to change
the script so that it does not set the above to 0, and try again?

ccheney: The script is Ubuntu-specific, correct?
Comment 5 p92 2010-07-30 19:53:55 UTC
Sorry but this change nothing, still the same lock on open.

$ ooffice -writer /mnt/pc/proposition\ de\ mise\ en\ oeuvre\ de\ pci-pra.odt 
+ test -z /home/pascal
+ FILE_LOCKING=auto
+ OPENGL_SUPPORT=no
+ [ -f /etc/openoffice/soffice.sh ]
+ . /etc/openoffice/soffice.sh
+ FILE_LOCKING=auto
+ OPENGL_SUPPORT=no
+ [ -z  ]
+ home_on_nfs -writer /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ stat -f -c %T /home/pascal
+ return 1
+ [ 1 = 0 ]
+ file_on_nfs -writer /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ continue
+ [ -f /mnt/pc/proposition de mise en oeuvre de pci-pra.odt ]
+ stat -f -c %T /mnt/pc/proposition de mise en oeuvre de pci-pra.odt
+ return 0
+ [ 0 = 0 ]
+ SAL_ENABLE_FILE_LOCKING=0
+ export SAL_ENABLE_FILE_LOCKING
+ STAR_ENABLE_FILE_LOCKING=0
+ export STAR_ENABLE_FILE_LOCKING
+ SAL_ENABLE_FILE_LOCKING=1
+ export SAL_ENABLE_FILE_LOCKING
+ STAR_ENABLE_FILE_LOCKING=1
+ export STAR_ENABLE_FILE_LOCKING
+ [ -z  ]
+ SAL_NOOPENGL=true
+ export SAL_NOOPENGL
+ [ LINUX = LINUX -a INTEL = POWERPC ]
+ pwd
+ sd_cwd=/home/pascal
+ [ -h /usr/lib/openoffice/program/soffice ]
+ dirname /usr/lib/openoffice/program/soffice
+ cd /usr/lib/openoffice/program
+ pwd
+ sd_prog=/usr/lib/openoffice/program
+ cd /home/pascal
+ basename /usr/lib/openoffice/program/soffice
+ sd_binary=soffice.bin
+ sd_pagein_args=@pagein-common
+ sd_pagein_args=@pagein-common @pagein-writer
+ break
+ /usr/lib/openoffice/program/../basis-link/program/pagein
-L/usr/lib/openoffice/program/../basis-link/program @pagein-common @pagein-writer
+ [ -x /usr/lib/openoffice/program/../basis-link/ure-link/bin/javaldx ]
+ /usr/lib/openoffice/program/../basis-link/ure-link/bin/javaldx
-env:INIFILENAME=vnd.sun.star.pathname:/usr/lib/openoffice/program/redirectrc
+
my_path=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
+ [ -n
/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
]
+
LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/client:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/native_threads:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64
+ export LD_LIBRARY_PATH
+ unset XENVIRONMENT
+ [ -f /etc/adabasrc ]
+
PATH=/usr/lib/openoffice/program:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+ export PATH
+ PYTHONPATH=/usr/lib/openoffice/program/../basis-link/program
+ export PYTHONPATH
+ [ -writer = -nologo -o -writer = -no-oosplash ]
+ [ /mnt/pc/proposition = -nologo -o /mnt/pc/proposition = -no-oosplash ]
+ [ de = -nologo -o de = -no-oosplash ]
+ [ mise = -nologo -o mise = -no-oosplash ]
+ [ en = -nologo -o en = -no-oosplash ]
+ [ oeuvre = -nologo -o oeuvre = -no-oosplash ]
+ [ de = -nologo -o de = -no-oosplash ]
+ [ pci-pra.odt = -nologo -o pci-pra.odt = -no-oosplash ]
+ [ soffice.bin = soffice.bin -a -x /usr/lib/openoffice/program/oosplash.bin ]
+ [  != y ]
+ sd_binary=oosplash.bin
+ trap kill -9 $! TERM
+ wait 29281
+ /usr/lib/openoffice/program/oosplash.bin -writer /mnt/pc/proposition de mise
en oeuvre de pci-pra.odt
+ [ 0 -eq 79 ]
+ exit

$ ps -ef | grep off
pascal   29284     1  1 20:49 pts/1    00:00:00
/usr/lib/openoffice/program/soffice.bin -writer /mnt/pc/proposition de mise en
oeuvre de pci-pra.odt -splash-pipe=5

$ kill -9 29284

Comment 6 p92 2010-07-30 19:56:01 UTC
Created attachment 70893 [details]
the script that launch ooo
Comment 7 tml 2010-08-09 13:35:18 UTC
It would be useful to provide a strace of the soffice.bin process.

The summary is misleading; a more correct summary would be "OOo hangs when
opening a document on a nfs filesystem".

(Without having a strace to look at, we don't know if it actually succeeds in
opening (in the OS sense) but then hangs when reading it, or what it is that
happens. Also, the "share" term comes from Windows and should not be misused for
NFS mounts in my opinion. Also, let's call the user visible phenomenon a "hang"
and not overuse the term "lock". Locking in the POSIX and NFS sense might be
involved, or not.)

Comment 8 Olaf Felka 2010-10-15 13:40:55 UTC
reassigned
Comment 9 Marcus 2010-10-16 00:48:46 UTC
.
Comment 10 p92 2010-12-11 11:51:17 UTC
Created attachment 75318 [details]
strace while trying to open a file on nfs filesystem
Comment 11 eric.savary 2011-03-17 12:02:08 UTC
As Go_oo does not exist anymore, this issue can be closed.