Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the UserInstallation env breaks soffice.bin execution #49

Open
M0Rf30 opened this issue Oct 21, 2022 · 3 comments
Open

Using the UserInstallation env breaks soffice.bin execution #49

M0Rf30 opened this issue Oct 21, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@M0Rf30
Copy link

M0Rf30 commented Oct 21, 2022

As in title.
I'm running unoserver a against custom soffice.bin.(cp-22.05.06)
It would be nice to pass or customize the default cmd line or, at least, remove the UserInstallation env.
Without it, a USER/.config/core/4 (not tied to /tmp) folder will be created and the soffice.bin will continue its execution flawlessly

Regards

@M0Rf30
Copy link
Author

M0Rf30 commented Oct 22, 2022

Hereby a patch

diff '--color=auto' -Naur a/src/unoserver/server.py b/src/unoserver/server.py
--- a/src/unoserver/server.py	2022-10-22 16:37:12.867158005 +0200
+++ b/src/unoserver/server.py	2022-10-22 16:37:42.801115154 +0200
@@ -24,9 +24,6 @@
                 % (self.interface, self.port)
             )
 
-            # Store this as an attribute, it helps testing
-            self.tmp_uri = "file://" + request.pathname2url(tmpuserdir)
-
             # I think only --headless and --norestore are needed for
             # command line usage, but let's add everything to be safe.
             cmd = [
@@ -38,7 +35,6 @@
                 "--nologo",
                 "--nofirststartwizard",
                 "--norestore",
-                f"-env:UserInstallation={self.tmp_uri}",
                 f"--accept={connection}",
             ]
 


@regebro
Copy link
Member

regebro commented Nov 6, 2022

How does it break it?

@M0Rf30
Copy link
Author

M0Rf30 commented Nov 6, 2022

soffice --headless --invisible --nodefault --nologo --nofirststartwizard --norestore -env:UserInstallation=~/tmp/ --accept="socket,host=127.0.0.1,port=52847,tcpNoDelay=1;urp;StarOffice.ComponentContext"
javaldx failed!
Warning: failed to read path from javaldx
terminate called after throwing an instance of 'com::sun::star::lang::WrappedTargetRuntimeException'
Unspecified Application Error


Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f1a3)[0x55ab0d5c91a3]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f3a0)[0x55ab0d5c93a0]
/usr/lib/libc.so.6(+0x38a00)[0x55ab0d2cda00]
/usr/lib/libc.so.6(+0x8864c)[0x55ab0d31d64c]
/usr/lib/libc.so.6(gsignal+0x18)[0x55ab0d2cd958]
/usr/lib/libc.so.6(abort+0xd7)[0x55ab0d2b753d]
/usr/lib/libreoffice/program/libvcllo.so(+0x31e728)[0x55ab0971e728]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x33e24)[0x55ab0d4e2e24]
/usr/lib/libreoffice/program/libvcllo.so(+0x70182d)[0x55ab09b0182d]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3f2da)[0x55ab0d5c92da]
/usr/lib/libc.so.6(+0x38a00)[0x55ab0d2cda00]
/usr/lib/libc.so.6(+0x8864c)[0x55ab0d31d64c]
/usr/lib/libc.so.6(gsignal+0x18)[0x55ab0d2cd958]
/usr/lib/libc.so.6(abort+0xd7)[0x55ab0d2b753d]
/usr/lib/libstdc++.so.6(+0x99833)[0x55ab0d099833]
/usr/lib/libstdc++.so.6(+0xa5cfc)[0x55ab0d0a5cfc]
/usr/lib/libstdc++.so.6(+0xa5d69)[0x55ab0d0a5d69]
/usr/lib/libstdc++.so.6(__cxa_rethrow+0x4f)[0x55ab0d0a601f]
/usr/lib/libreoffice/program/../program/libdeployment.so(+0x208ec)[0x55ab0191f8ec]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x40931)[0x55ab0d4ef931]
/usr/lib/libreoffice/program/libsofficeapp.so(+0x397b2)[0x55ab0d4e87b2]
/usr/lib/libreoffice/program/libvcllo.so(_Z10ImplSVMainv+0x38a)[0x55ab09b0711a]
/usr/lib/libreoffice/program/libsofficeapp.so(soffice_main+0x134)[0x55ab0d500b64]
/usr/lib/libreoffice/program/soffice.bin(+0x1031)[0x55ab0d5f6031]
/usr/lib/libc.so.6(+0x23290)[0x55ab0d2b8290]
/usr/lib/libc.so.6(__libc_start_main+0x8a)[0x55ab0d2b834a]
/usr/lib/libreoffice/program/soffice.bin(+0x1065)[0x55ab0d5f6065]

@regebro regebro added the enhancement New feature or request label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants