Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641404 - app-office/libreoffice-5.4.2.2 and app-office/libreoffice-bin-5.4.2.2-r1 only start as root
Summary: app-office/libreoffice-5.4.2.2 and app-office/libreoffice-bin-5.4.2.2-r1 only...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-16 19:56 UTC by Manuel Garcia Wolff
Modified: 2019-10-02 20:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of: emerge --info (emerge_info.txt,5.36 KB, text/plain)
2017-12-16 19:56 UTC, Manuel Garcia Wolff
Details
strace of first run (strace soffice) (strace,77.67 KB, text/plain)
2017-12-29 10:11 UTC, Ferry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Garcia Wolff 2017-12-16 19:56:17 UTC
Created attachment 510388 [details]
Output of: emerge --info

On a freshly installed Gentoo system, app-office/libreoffice-5.4.2.2 and app-office/libreoffice-bin-5.4.2.2-r1 only start as root. When starting those applications as a user, libreoffice hangs at the splash screen. The console output shows:

==
$ soffice 
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
==

When running the "soffice" command as root, the same messages regarding Java are shown. However, as root, soffice starts correctly.

I do have Java installed. I tried removing ~/.config/libreoffice and I also tried "chmod -R 777 ~/.config/libreoffice", but it did not help.

The only valid work around I found was copying the /root/.config/libreoffice folder to my user's home and making the user the owner of that folder. Afterwards, libreoffice started successfully.
Comment 1 Jonas Stein gentoo-dev 2017-12-16 20:34:13 UTC
I can not confirm this for app-office/libreoffice-5.4.3.2 could you test this too?
Comment 2 Manuel Garcia Wolff 2017-12-16 21:37:43 UTC
I emerged app-office/libreoffice-5.4.3.2. I can still not launch libreoffice as a user, if I do not have root's .config/libreoffice folder.
Comment 3 Jonas Stein gentoo-dev 2017-12-16 23:03:06 UTC
It is sad to read that you have problems with the software. The situation seems to be a bit more complicate and requires some analysis. But I am very sure, that it is not a problem in the ebuild. 
We can not help you efficiently via bug tracker. The bug tracker aims rather on specific problems in .ebuilds and less on individual systems. 

I have had very good experience on the gentoo IRC [1] with questions like this. Of course there are also forums and mailing lists [2,3].
I hope you understand, that I will close the bug here therefore and wish you good luck on one of the mentioned channels [4].
Please reopen the ticket in order to provide an indication for an specific error in an ebuild or any gentoo related product.

[1] https://www.gentoo.org/get-involved/irc-channels/
[2] https://forums.gentoo.org/
[3] https://www.gentoo.org/get-involved/mailing-lists/all-lists.html
[4] https://www.gentoo.org/support/

@office and dilfridge: I suggest to close, if you agree.
Comment 4 Jonas Stein gentoo-dev 2017-12-16 23:13:04 UTC
Just talked to dilfridge and we leave it open for now. You can get further help on the IRC channels in the meantime. The next step would be to look with debug tools like strace at it.
#gentoo on freenode would be a good start. You can note the outcoming here afterwards.
Comment 5 Manuel Garcia Wolff 2017-12-17 01:55:51 UTC
I asked in IRC, but did not get any solutions. I downloaded the latest libreoffice package from the libreoffice website and using that package, I get the same problem. I will report a bug at libreoffice.
Comment 6 Ferry 2017-12-29 10:08:20 UTC
Have the same issue, libreoffice just hangs in splash screen.

If I start it as root it works fine. If I copy root's .config/libreoffice after first start to the user's .config/libreoffice it starts working.

strace is attached, hope it gives some pointers.
Comment 7 Ferry 2017-12-29 10:11:30 UTC
Created attachment 511944 [details]
strace of first run (strace soffice)
Comment 8 Ferry 2017-12-29 14:34:32 UTC
Although it starts, it's not fully working. Not sure if it's related, but if I start calc, enter some numbers and enter a macro =SUM(A1:A4) as soon as I type the closes parenthesis it freezes.

Perhaps with an empty profile it runs macro's as well and is hanging on the same thing, but just guessing here.
Comment 9 Manuel Garcia Wolff 2017-12-29 14:40:05 UTC
On my system, Calc does not freeze when entering such a SUM() macro.
Comment 10 Joseph 2018-01-17 14:16:51 UTC
I have the same problem on my system, (recently installed gentoo).
Libreoffice will start as root but not as user.
Comment 11 Joseph 2018-01-17 16:55:01 UTC
I think the problem might be some glitch with the new profile.
On the new system I'm using:

default/linux/amd64/17.0/desktop *
libreoffice will not run on it.

All my other system are using:
default/linux/amd64/13.0/desktop *
and libreoffice runs just fine.
Comment 12 Joseph 2018-01-17 17:12:59 UTC
It seems to me we are not the only one that have a problem with this new "libreoffice-5.4.2.2"  
Other distros have the same problem, including Windows.
https://www.mail-archive.com/libreoffice-bugs@lists.freedesktop.org/msg463293.html

Just makes me wonder who makes this "crap" sable without testing?
To make matter worse older branches had been removed as well.  This just gives Gentoo bed wrap.
Comment 13 Andreas Sturmlechner gentoo-dev 2018-01-17 19:17:48 UTC
It may be an OpenGL issue on your systems. Please read and follow the steps how to disable: https://wiki.documentfoundation.org/OpenGL
Comment 14 blopsalot 2018-01-18 02:08:00 UTC
The wiki page on OpenGL is out of date, libreoffice disregards those changes. I would guess that there is an elusive upstream bug involving intel's opencl implementation as there are multiple bug reports on different platforms reporting the same thing. Here's another example: https://bugs.documentfoundation.org/show_bug.cgi?id=105084

I understand that usually "works as root" is permissions related, but in this case I'm unconvinced. Libreoffice's OpenCL implementation is still a work in progress and seems like more trouble than it's worth to just let libreoffice decide whether it should be on or not.

Here's how to disable in ebuild if anyone cares to(rough, untested):


>if ! use opencl ; then
>		mkdir -p "${BUILD_OBJ_DIR}/share/registry/data/"
>		echo "<?xml version="1.0" encoding="UTF-8"?>" > "${BUILD_OBJ_DIR}/share/registry/data/disableopencl.xcu" || die
>		echo "<oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">" >> "${BUILD_OBJ_DIR}/share/registry/data/disableopencl.xcu" || die
>		echo "<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="UseOpenCL" oor:op="fuse"><value>false</value></prop></item>" >> "${BUILD_OBJ_DIR}/share/registry/data/disableopencl.xcu" || die
>		echo "</oor:items>" >> "${BUILD_OBJ_DIR}/share/registry/data/disableopencl.xcu" || die
>fi



my 2 cents
Comment 15 Andreas Sturmlechner gentoo-dev 2018-01-19 00:05:16 UTC
Affected users please add yourselves to video group.
Comment 16 Joseph 2018-01-20 01:27:12 UTC
The strange part is that on the same box I created a new "user" and Libreoffice works just fine.
But it will not work when I log in.

I've deleted the folder setting. /home/joseph/.config/libreoffice/
and copied the same folder from new user directory back to my directory.
Libreofice still will not start.

When I try to start soffice help I'm getting this error
	
soffice --help
X11 connection rejected because of wrong authentication.

(process:24269): dconf-CRITICAL **: unable to create file '/var/run/user/1000/dconf/user': Permission denied.  dconf will not work properly.
LibreOffice 5.4.2.2.0 40m0(Build:2)	


This error does not show up when I run it as new user that I just created.
Comment 17 Joseph 2018-01-20 01:27:52 UTC
(In reply to Andreas Sturmlechner from comment #15)
> Affected users please add yourselves to video group.

I did, it makes no difference.
Comment 18 Andreas Sturmlechner gentoo-dev 2018-01-20 01:31:38 UTC
(In reply to Joseph from comment #16)
> soffice --help
> X11 connection rejected because of wrong authentication.
> 
> (process:24269): dconf-CRITICAL **: unable to create file
> '/var/run/user/1000/dconf/user': Permission denied.  dconf will not work
> properly.
> LibreOffice 5.4.2.2.0 40m0(Build:2)	
> 
> 
> This error does not show up when I run it as new user that I just created.

So you have a config issue that is not related to LibreOffice. This is probably better tackled in #gentoo.
Comment 19 Andreas Sturmlechner gentoo-dev 2018-01-20 01:53:01 UTC
We should probably add pkg_postinst instructions about video group.
Comment 20 Joseph 2018-01-20 06:34:11 UTC
I've reinstalled "Libreoffice" but it complained:

>>> Emerging (1 of 1) app-office/libreoffice-5.4.2.2::gentoo
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 6.27, 7.29, 7.37X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
>>> Jobs: 0 of 1 complete, 1 running                Load avg: 6.27, 7.29, 7.37X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
>>> Installing (1 of 1) app-office/libreoffice-5.4.2.2::gentoo
>>> Recording app-office/libreoffice in "world" favorites file...
Comment 21 Joseph 2018-01-22 17:01:56 UTC
I solved it by unmerging / emerging "libreoffice".  The system required
reboot, after that libreoffice start working for all users on the
machine.
This is like a Windows solution, they always ask you to reboot the
computer :-/
Comment 22 David W Noon 2018-02-17 20:46:31 UTC
I have this problem too, on all-stable x86 box. When I run it as root, it complains about missing JRE, but runs anyway, When I run is as myself it gives the following:

dwn@karnak ~ % lowriter&     
[1] 23354
dwn@karnak ~ % 
[1]  + exit 139   lowriter
dwn@karnak ~ % 

According to Google, the 139 error code indicates a crash in initialization of Java support, presumably the JRE. I have tried with oracle-jdk-bin and icedtea-bin as my JDK/JRE; both produce the same result.

I am running 5.4.5.1, which is the current stable version of LibreOffice.
Comment 23 Andreas Sturmlechner gentoo-dev 2018-02-17 20:47:37 UTC
This bug should give you enough information to fix your problem.