Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 234198

Summary: openoffice-[bin] hangs when cups server is not reachable
Product: Gentoo Linux Reporter: Michal Špondr <michal.spondr>
Component: Current packagesAssignee: Gentoo Office Team <office>
Status: RESOLVED FIXED    
Severity: minor CC: esigra
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: This documents causes hanging of OpenOffice 2.4.1 while opening for cca 3 minutes

Description Michal Špondr 2008-08-07 18:07:27 UTC
When I try to open some odt/ods files in OpenOffice, it gets stuck in some cases (and I have to kill the soffice process). However when using the same file, on AMD64 platform it hangs, on i386 platform with the same openoffice-bin-2.4.1 it doesn't hang.
I see no error or warning messages in console.
I have 2 same documents created in former version of OpenOffice, saved as .odt and .doc file. While the .doc file could be opened without problems, .odt file can not be opened and it hangs.
I tried to reemerge openoffice-bin, but nothing happened. I tried to delete ~/.ooo-2.0 directory and start OpenOffice as a root, too, but I got the same issue - OpenOffice always hungs.

Reproducible: Always

Steps to Reproduce:
1. Download the attached file
2. Try to open it

Actual Results:  
OpenOffice will get stuck

Expected Results:  
OpenOffice should open the file normally.

# emerge --info
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25.9 x86_64)
=================================================================
System uname: 2.6.25.9 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz
Timestamp of tree: Thu, 07 Aug 2008 09:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=nocona"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=nocona"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="cs_CZ.UTF8"
LC_ALL="cs_CZ.UTF8"
LINGUAS="cs"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 ao audiofile bindist bluetooth bzip2 cairo cddb cli cracklib crypt cups dbus dri dvd dvdr flac gdbm geoip gif glut gnutls gpm gtk2 iconv ieee1394 imagemagick isdnlog jpeg jpeg2k lm_sensors midi mikmod mmap mmx mp3 mplayer mudflap ncurses nls nptl nptlonly ogg openal opengl openmp pcre pdf plotutils png pppd qt4 quicktime readline reflection sdl session sharedmem smartcard spl sse sse2 ssl tcpd threads truetype type1 unicode vim-syntax vorbis wifi xorg zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

# uname -a
Linux usambara 2.6.25.9 #1 SMP Sun Jul 27 16:40:02 CEST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz GenuineIntel GNU/Linux
Comment 1 Michal Špondr 2008-08-07 18:11:00 UTC
Created attachment 162452 [details]
This documents causes hanging of OpenOffice 2.4.1 while opening for cca 3 minutes

I can't open this file on openoffice-bin-2.4.1 on amd64. It's possible to open this document of openoffice-bin-2.4.1 on i686 platform.
Comment 2 Michal Špondr 2008-08-08 05:09:52 UTC
After overnight compilation of openoffice-2.4.1 I've found out that this is the problem of non-binary version, too.

USE flags for app-office/openoffice-2.4.1:
$ equery uses openoffice
[ Searching for packages matching openoffice... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for app-office/openoffice-2.4.1 ]
 U I
 - - binfilter     : Enable support for legacy StarOffice 5.x and earlier file formats
 + + cups          : Add support for CUPS (Common Unix Printing System)
 + + dbus          : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
 - - debug         : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - eds           : Enables support for Evolution-Data-Server (EDS)
 - - elibc_FreeBSD : <unknown>
 - - firefox       : Build against Firefox instead of Seamonkey/Mozilla
 - - gnome         : Adds GNOME support
 - - gstreamer     : Adds support for media-libs/gstreamer (Streaming media)
 + + gtk           : Adds support for x11-libs/gtk+ (The GIMP Toolkit)
 - - java          : Adds support for Java
 - - kde           : Adds support for kde-base/kde (K Desktop Enviroment)
 - - ldap          : Adds LDAP support (Lightweight Directory Access Protocol)
 - - linguas_af    : <unknown>
 - - linguas_ar    : <unknown>
 - - linguas_as_IN : <unknown>
 - - linguas_be_BY : <unknown>
 - - linguas_bg    : <unknown>
 - - linguas_bn    : <unknown>
 - - linguas_br    : <unknown>
 - - linguas_bs    : <unknown>
 - - linguas_ca    : <unknown>
 + + linguas_cs    : <unknown>
 - - linguas_cy    : <unknown>
 - - linguas_da    : <unknown>
 - - linguas_de    : <unknown>
 - - linguas_dz    : <unknown>
 - - linguas_el    : <unknown>
 - - linguas_en    : <unknown>
 - - linguas_en_GB : <unknown>
 - - linguas_en_US : <unknown>
 - - linguas_en_ZA : <unknown>
 - - linguas_eo    : <unknown>
 - - linguas_es    : <unknown>
 - - linguas_et    : <unknown>
 - - linguas_fa    : <unknown>
 - - linguas_fi    : <unknown>
 - - linguas_fr    : <unknown>
 - - linguas_ga    : <unknown>
 - - linguas_gl    : <unknown>
 - - linguas_gu_IN : <unknown>
 - - linguas_he    : <unknown>
 - - linguas_hi_IN : <unknown>
 - - linguas_hr    : <unknown>
 - - linguas_hu    : <unknown>
 - - linguas_it    : <unknown>
 - - linguas_ja    : <unknown>
 - - linguas_km    : <unknown>
 - - linguas_ko    : <unknown>
 - - linguas_ku    : <unknown>
 - - linguas_lt    : <unknown>
 - - linguas_lv    : <unknown>
 - - linguas_mk    : <unknown>
 - - linguas_ml_IN : <unknown>
 - - linguas_mr_IN : <unknown>
 - - linguas_nb    : <unknown>
 - - linguas_ne    : <unknown>
 - - linguas_nl    : <unknown>
 - - linguas_nn    : <unknown>
 - - linguas_nr    : <unknown>
 - - linguas_ns    : <unknown>
 - - linguas_or_IN : <unknown>
 - - linguas_pa_IN : <unknown>
 - - linguas_pl    : <unknown>
 - - linguas_pt    : <unknown>
 - - linguas_pt_BR : <unknown>
 - - linguas_ru    : <unknown>
 - - linguas_rw    : <unknown>
 - - linguas_sh    : <unknown>
 - - linguas_sk    : <unknown>
 - - linguas_sl    : <unknown>
 - - linguas_sr    : <unknown>
 - - linguas_ss    : <unknown>
 - - linguas_st    : <unknown>
 - - linguas_sv    : <unknown>
 - - linguas_sw_TZ : <unknown>
 - - linguas_ta_IN : <unknown>
 - - linguas_te_IN : <unknown>
 - - linguas_tg    : <unknown>
 - - linguas_th    : <unknown>
 - - linguas_ti_ER : <unknown>
 - - linguas_tn    : <unknown>
 - - linguas_tr    : <unknown>
 - - linguas_ts    : <unknown>
 - - linguas_uk    : <unknown>
 - - linguas_ur_IN : <unknown>
 - - linguas_ve    : <unknown>
 - - linguas_vi    : <unknown>
 - - linguas_xh    : <unknown>
 - - linguas_zh_CN : <unknown>
 - - linguas_zh_TW : <unknown>
 - - linguas_zu    : <unknown>
 - - mono          : Build Mono bindings to support dotnet type stuff
 - - odk           : Build the Office Development Kit
 + + opengl        : Adds support for OpenGL (3D graphics)
 + + pam           : Adds support PAM (Pluggable Authentication Modules) - DANGEROUS to arbitrarily flip
 - - seamonkey     : Adds support for the Seamonkey web-browser
 - - xulrunner     : Build native browser integration against xulrunner instead of firefox or seamonkey
Comment 3 Michal Špondr 2008-08-08 20:23:19 UTC
I tried to recompile openoffice-2.4.1 with debug flag enabled, but unfortunattely the binary is stripped. :-/ If I try to backtrace it in ddd while it hangs, it shows:
...
#6 ... in Printer::Printer () from libvcl680lx.so
#5 ... in ?? () from libvcl680lx.so
#4 ... in ?? () from libvcl680lx.so
#3 ... in X11SalInstance::GetPrinterQueueInfo() from libvclplug_gen680lx.so
#2 ... in psp::CUPSManager::checkPrintersChanged() from libpsp680lx.so
#1 ... in osl_joinWithThread() from libuno_sal.so.3
#0 ... in pthread_join() from libpthread.so.0

However when I wait for about 3 minutes, it continues working normally (I've found out it while debugging). So I think it has something to do with thread joining - it waits long time for another thread.

I have cupsd installed, but it behaves in the same way whether the cupsd is started or not.
Comment 4 Michal Špondr 2008-08-08 20:59:24 UTC
Finally I've found out where the problem is. It similar to this problem "hangs when cups server is not reachable": http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457761
If I remove the line "ServerName m1c4a1" from /etc/cups/client.conf (remote printing doesn't work for me yet, because it's incorrectly set), OpenOffice opens the file without delay.
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-16 20:47:40 UTC
Do you still see this with 3.0?
Comment 6 Michal Špondr 2008-11-21 03:09:15 UTC
(In reply to comment #5)
> Do you still see this with 3.0?
> 

It seems to work
Comment 7 Tomáš Chvátal (RETIRED) gentoo-dev 2011-07-25 12:50:42 UTC
Move deprecated bugs still being marked as LATER to Fixed.