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.
I can not confirm this for app-office/libreoffice-5.4.3.2 could you test this too?
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.
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.
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.
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.
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.
Created attachment 511944 [details] strace of first run (strace soffice)
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.
On my system, Calc does not freeze when entering such a SUM() macro.
I have the same problem on my system, (recently installed gentoo). Libreoffice will start as root but not as user.
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.
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.
It may be an OpenGL issue on your systems. Please read and follow the steps how to disable: https://wiki.documentfoundation.org/OpenGL
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
Affected users please add yourselves to video group.
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.
(In reply to Andreas Sturmlechner from comment #15) > Affected users please add yourselves to video group. I did, it makes no difference.
(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.
We should probably add pkg_postinst instructions about video group.
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...
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 :-/
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.
This bug should give you enough information to fix your problem.