Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
On Mon, Jan 20, 2020 at 10:05:00PM +0100, Rene Engelhard wrote: > For a migration which happened almost two decades ago. Sorry, obviously too tired. One decade. But still. Regards, Rene
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
retitle 949278 endless loop if ~/.config/libreoffice is a symlink severity 949278 minor thanks Hi, On Mon, Jan 20, 2020 at 09:22:55PM +0100, Pierre Bernhardt wrote: > Am 20.01.20 um 11:14 schrieb Rene Engelhard: > > You mean keep the .config/libreoffice and remove the old .libreoffice. > > No, really mean remove the link .config/libreoffice which points to > .libreoffice, > remove .libreoffice Exactly my point. Remove the bogus link and let the "correct" one be generated. > and then next start .config/libreoffice will be recreated by starting > libreoffice. Indeed. > However the loop itself is a bug and a symlink is not an error. But you are not supposed to play tricks in stuff the applications do not expect either. User config is tricky in this regard and this is not a "save space" thing either. In fact, .config/libreoffice -> .libreoffice was always wrongdoing to begin with. As shown in the commits there is upstream migration code for this and there was no need for any symlink here. And the migration code LO 3 -> LO 4+ (or .libreoffice -> .config/libreoffice) needs to know what it can expect. > It is a regular tool to point to another place whenever it is wanted. Each > software should deal > with them and if it is not allowed/supported, it should show a message e.g. > displayed by an exception handling. But supporting a symlink is not really > hard to support. This case would then need a "way out" of a migration. For a migration which happened almost two decades ago. I don't believe upstream will invest time in this - they have more important stuff on the plate... > PS: Don't know how long the .libreoffice folder exists. It could be very long > in the past maybe before libreoffice has to been forked from openoffice. Maybe > I renamed/copied it from .openoffice to .libreoffice or whatever. But let us LO 3.x (first LO was 3.3) did .libreoffice initially (as it was forked from OpenOffice.org) until it was renamed to .config/libreoffice in 2011 (see my referenced commit) Anyway, will try myself in a VM... Regards, Rene
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
Am 20.01.20 um 11:14 schrieb Rene Engelhard: > You mean keep the .config/libreoffice and remove the old .libreoffice. No, really mean remove the link .config/libreoffice which points to .libreoffice, remove .libreoffice and then next start .config/libreoffice will be recreated by starting libreoffice. However the loop itself is a bug and a symlink is not an error. It is a regular tool to point to another place whenever it is wanted. Each software should deal with them and if it is not allowed/supported, it should show a message e.g. displayed by an exception handling. But supporting a symlink is not really hard to support. PS: Don't know how long the .libreoffice folder exists. It could be very long in the past maybe before libreoffice has to been forked from openoffice. Maybe I renamed/copied it from .openoffice to .libreoffice or whatever. But let us stop this kind of discussion, when and how it has been created. It has been worked for many years and only after removing my config the problem occurs by the endless loop. Cheers, Pierre
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
On Sun, Jan 19, 2020 at 10:50:57PM +0100, Pierre Bernhardt wrote: > > That would mean that it always hanged on a new > > install where .libreoffice (actually that one doesn't exist, you mean > > .config/libreoffice) doesn't exist. > > No, it is really my /home/user/.libreoffice folder which should normally > held users profile. No, it doesn't. Not since 2011/2012. https://cgit.freedesktop.org/libreoffice/core/commit/?id=9276f7d5740a28b342db2a9bcd8644ff2f4f5742 and https://cgit.freedesktop.org/libreoffice/core/commit/?id=c82b6096efb856220b8d1dafd9ba3e1f167e2d89 > [pid 129252] mkdir("/home/pierre/.config/libreoffice/4", 0777) = -1 ENOENT > (Datei oder Verzeichnis nicht gefunden) .config/libreoffice. As I said. > Checking .config/libreoffice shows me that this is a link to ../.libreoffice > folder: > > user@nihilnihil:~$ ls -l /home/user/.config/libreoffice > lrwxrwxrwx 1 user user 15 Jun 14 2012 /home/user/.config/libreoffice -> > ../.libreoffice Why? > As you can see it is really old aged link installed in the past. You yourself created it? I somehow don't believe LibreOffice did. And the link is the wrong way round in any case. At least I don't find ymlink code in 6.1.x. Didn't look back in older releases. > So workaround is to remove the old .config/libreoffice link will help. You mean keep the .config/libreoffice and remove the old .libreoffice. Regards, Rene
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
Am 19.01.20 um 11:16 schrieb Rene Engelhard: > On Sun, Jan 19, 2020 at 10:00:37AM +0100, Pierre Bernhardt wrote: >> after removing my .libreoffice directory it will not startup fully any more. >> The splash screen is shown ever and than it hangs as long I press Ctrl-C to >> abort. >> >> I found a workaround by manually recreating simply the .libreoffice folder. >> >> I can reproduce the problem each time I remove or rename the .libreoffice >> folder. > > That's impossible. > > That would mean that it always hanged on a new > install where .libreoffice (actually that one doesn't exist, you mean > .config/libreoffice) doesn't exist. No, it is really my /home/user/.libreoffice folder which should normally held users profile. I renamed it before I found the problem because some menu entries was empty and a solution workaround where to remove this directory which I then did. But then I got the hanging problem. > Which does not happen. At my computer problem happens: starting libreoffice with strace -f shows me the problem because thousands of lines like: [pid 129252] mkdir("/home/pierre/.config/libreoffice/4", 0777) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) [pid 129252] mkdir("/home/pierre/.config/libreoffice", 0777) = -1 EEXIST (Die Datei existiert bereits) [pid 129252] mkdir("/home/pierre/.config/libreoffice/4", 0777) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) [pid 129252] mkdir("/home/pierre/.config/libreoffice", 0777) = -1 EEXIST (Die Datei existiert bereits) [pid 129252] mkdir("/home/pierre/.config/libreoffice/4", 0777) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden) [pid 129252] mkdir("/home/pierre/.config/libreoffice", 0777) = -1 EEXIST (Die Datei existiert bereits) [pid 129252] mkdir("/home/pierre/.config/libreoffice/4", 0777^Cstrace: Process 129238 detached strace: Process 129250 detached strace: Process 129251 detached strace: Process 129252 detached strace: Process 129253 detached Checking .config/libreoffice shows me that this is a link to ../.libreoffice folder: user@nihilnihil:~$ ls -l /home/user/.config/libreoffice lrwxrwxrwx 1 user user 15 Jun 14 2012 /home/user/.config/libreoffice -> ../.libreoffice As you can see it is really old aged link installed in the past. mkdir than look like fails in a loop because it allready exists as a link and cannot be created. So best way looks like is to remove this link instead of creating the .libreoffice. I think this link was been created in the past for compatibility reason and was never removed later. So workaround is to remove the old .config/libreoffice link will help. A solution also could be to extend that the link should be ever followed by use absolute path after followed the link, however this could become a vulnerable problem. Another is to remove the link, if the target does not exist. But the best is to catch this error by an exeption instead of run in an endless loop. Cheers,
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
tag 949278 + moreinfo tag 949278 + unreproducible thanks On Sun, Jan 19, 2020 at 10:00:37AM +0100, Pierre Bernhardt wrote: > after removing my .libreoffice directory it will not startup fully any more. > The splash screen is shown ever and than it hangs as long I press Ctrl-C to > abort. > > I found a workaround by manually recreating simply the .libreoffice folder. > > I can reproduce the problem each time I remove or rename the .libreoffice > folder. That's impossible. That would mean that it always hanged on a new install where .libreoffice (actually that one doesn't exist, you mean .config/libreoffice) doesn't exist. Which does not happen. Do you have some broken network config? I.e. a broken "lo" (loopback) interface? Regards, Rene
Bug#949278: libreoffice hangs at startup if ~/.libreoffice folder does not exist
Package: libreoffice Version: 1:6.1.5-3+deb10u5 Severity: important Dear Maintainer, after removing my .libreoffice directory it will not startup fully any more. The splash screen is shown ever and than it hangs as long I press Ctrl-C to abort. I found a workaround by manually recreating simply the .libreoffice folder. I can reproduce the problem each time I remove or rename the .libreoffice folder. -- System Information: Debian Release: 10.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.19.0-6-amd64 (SMP w/16 CPU cores) Kernel taint flags: TAINT_WARN Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE=de_DE:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libreoffice depends on: ii libreoffice-avmedia-backend-gstreamer 1:6.1.5-3+deb10u5 ii libreoffice-base 1:6.1.5-3+deb10u5 ii libreoffice-calc 1:6.1.5-3+deb10u5 ii libreoffice-core 1:6.1.5-3+deb10u5 ii libreoffice-draw 1:6.1.5-3+deb10u5 ii libreoffice-impress1:6.1.5-3+deb10u5 ii libreoffice-math 1:6.1.5-3+deb10u5 ii libreoffice-report-builder-bin 1:6.1.5-3+deb10u5 ii libreoffice-writer 1:6.1.5-3+deb10u5 ii python3-uno1:6.1.5-3+deb10u5 Versions of packages libreoffice recommends: pn fonts-crosextra-caladea pn fonts-crosextra-carlito ii fonts-dejavu2.37-1 ii fonts-liberation1:1.07.4-9 pn fonts-liberation2 pn fonts-linuxlibertine ii fonts-noto-core 20181227-1 pn fonts-noto-mono ii fonts-noto-ui-core 20181227-1 ii fonts-sil-gentium-basic 1.102-1 ii libreoffice-java-common 1:6.1.5-3+deb10u5 pn libreoffice-librelogo pn libreoffice-nlpsolver ii libreoffice-report-builder 1:6.1.5-3+deb10u5 ii libreoffice-script-provider-bsh 1:6.1.5-3+deb10u5 ii libreoffice-script-provider-js 1:6.1.5-3+deb10u5 ii libreoffice-script-provider-python 1:6.1.5-3+deb10u5 ii libreoffice-sdbc-postgresql 1:6.1.5-3+deb10u5 pn libreoffice-wiki-publisher Versions of packages libreoffice suggests: ii cups-bsd2.2.10-6+deb10u1 ii default-jre [java6-runtime] 2:1.11-71 ii firefox-esr 68.4.1esr-1~deb10u1 ii ghostscript 9.27~dfsg-2+deb10u3 ii gnupg 2.2.12-1+deb10u1 ii gpa 0.10.0-1 ii gstreamer1.0-libav 1.15.0.1+git20180723+db823502-2 ii gstreamer1.0-plugins-bad1.14.4-1+b1 ii gstreamer1.0-plugins-base 1.14.4-2 ii gstreamer1.0-plugins-good 1.14.4-1 ii gstreamer1.0-plugins-ugly 1.14.4-1 ii hunspell-de-de-frami [hunspell-dictionary] 1:6.2.0-1 ii hyphen-de [hyphen-hyphenation-patterns] 1:6.2.0-1 ii imagemagick 8:6.9.10.23+dfsg-2.1 ii imagemagick-6.q16 [imagemagick] 8:6.9.10.23+dfsg-2.1 ii libgl1 1.1.0-1 pn libreoffice-gnome | libreoffice-kde5 pn libreoffice-grammarcheck ii libreoffice-help-de [libreoffice-help] 1:6.1.5-3+deb10u5 ii libreoffice-l10n-de [libreoffice-l10n] 1:6.1.5-3+deb10u5 ii libreoffice-officebean 1:6.1.5-3+deb10u5 ii libsane 1.0.27-3.2 ii libxrender1 1:0.9.10-1 ii myspell-en-us [myspell-dictionary] 1:3.3.0-4+deb8u1 ii mythes-de [mythes-thesaurus]20160424-3 ii openclipart-libreoffice 1:0.18+dfsg-15 ii openjdk-11-jre [java6-runtime] 11.0.5+10-1~deb10u1 ii openjdk-8-jre [java6-runtime] 8u232-b09-1~deb9u1 ii pstoedit3.73-1+b1 ii sun-java6-jre [java6-runtime] 6.26-0squeeze1 ii thunderbird 1:68.4.1-1~deb10u1 ii unixodbc2.3.6-0.1 Versions of packages libreoffice-core depends on: ii fontconfig2.13.1-2 ii fonts-opensymbol 2:102.10+LibO6.1.5-3+deb10u5 ii libboost-date-time1.67.0 1.67.0-13 ii libboost-locale1.67.0 1.67.0-13 ii libc6 2.28-10 ii libcairo2 1.16.0-4 ii libclucene-contribs1v52.3.3.4+dfsg-1 ii libclucene-core1v52.3.3.4+dfsg-1 ii libcmis-0.5-5v5 0.5.2-1 ii libcups2 2.2.10-6+deb10u1 ii