Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Quick summary: Setting the environment variable $DATA causes
LibreOffice to crash.

I'm using LibreOffice version 3.3.4 on Ubuntu 11.04.

Help > About says;
    LibreOffice 3.3.4
    OOO330m19 (Build:401)
    tag libreoffice-3.3.3.1, Ubuntu package 1:3.3.4-0ubuntu1

I normally set an environment variable $DATA to the full name of a
directory (for purposes unrelated to LibreOffice).  I've found that
when this environment variable is set, LibreOffice refuses to run.
When I run the command "libreoffice" from the command line, it shows
the splash screen, then terminates with an error message:

    terminate called after throwing an instance of
'com::sun::star::uno::RuntimeException'

(Incidentally, it doesn't set a non-zero exit status.)

I've worked around the problem by changing the name of my environment
variable from $DATA to $DAT, but I suggest that LibreOffice shouldn't
misbehave if $DATA is set -- or, at the very least, that it should
give me an error message telling me how to work around the problem.
(It took me a long time to figure out that the problem was caused by
an environment variable, and a while longer to narrow down which one.)

I've downloaded the source code to try to track down the problem.
I haven't completely diagnosed it, but I suspect that the
culprit is the Components::parseXcsXcuIniLayer() function in
configmgr/source/components.cxx :

    ...
    if (ini.getFrom(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("DATA")), urls))
    {
        parseFileList(layer + 1, &parseXcuFile, urls, ini, recordAdditions);
    }

I also wonder whether some other seemingly innocuous environment
variables might cause similar problems.

I saw a similar problem in OpenOffice.

-- 
Keith Thompson <Keith.S.Thompson@gmail.com>

-- 
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.