[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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,


Reply to: