libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

classic Classic list List threaded Threaded
11 messages Options
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

Libreoffice-6.2.2.2 compiles on a 32-bit linux system, but will not run.

Strace does not show anything obvious - is there a way to debug the following error?

LibreOffice 6.2 - Fatal Error: The application cannot be started.
component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager of type com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred during file opening

Regards
John
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

On 15/04/2019 08:19, John Frankish wrote:
> Libreoffice-6.2.2.2 compiles on a 32-bit linux system, but will not run.
>
> Strace does not show anything obvious - is there a way to debug the following error?
>
> LibreOffice 6.2 - Fatal Error: The application cannot be started.
> component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager of type com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred during file opening

That's an atypical combination of "component context fails to supply
service ..." (thrown from generated code, presumably during
css::ui::ModuleUIConfigurationManager::createDefault in
ModuleUIConfigurationManagerSupplier::getUIConfigurationManager,
framework/source/uiconfiguration/moduleuicfgsupplier.cxx) and "an error
occurred during file opening" (the underlying error, generated in
fileaccess::throw_handler, ucb/source/ucp/file/filglob.cxx) errors.
Maybe an `strace -f` output would tell more after all---if you can put
it somewhere I can have a look.

Another place that might be useful to debug is the
ModuleUIConfigurationManager constructor in
framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx, if it
is reached at all.  Also, configuring the build with --enable-debug or
even --enable-dbgutil (where adding at least the latter requires a
from-scratch rebuild via `make clean`, though) might give further useful
stderr output.

What's the configure switches for your build?
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

RE: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

> > Libreoffice-6.2.2.2 compiles on a 32-bit linux system, but will not run.

> >
> > Strace does not show anything obvious - is there a way to debug the following error?
> >
> > LibreOffice 6.2 - Fatal Error: The application cannot be started.
> > component context fails to supply service
> > com.sun.star.ui.ModuleUIConfigurationManager of type
> > com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred
> > during file opening
> >
> That's an atypical combination of "component context fails to supply service ..."
> (thrown from generated code, presumably during
> css::ui::ModuleUIConfigurationManager::createDefault in
> ModuleUIConfigurationManagerSupplier::getUIConfigurationManager,
> framework/source/uiconfiguration/moduleuicfgsupplier.cxx) and "an error occurred
> during file opening" (the underlying error, generated in fileaccess::throw_handler,
> ucb/source/ucp/file/filglob.cxx) errors.
> Maybe an `strace -f` output would tell more after all---if you can put it somewhere I can have a look.
>
> Another place that might be useful to debug is the ModuleUIConfigurationManager
> constructor in framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx,
> if it is reached at all.  Also, configuring the build with --enable-debug or even --enable-dbgutil
> (where adding at least the latter requires a from-scratch rebuild via `make clean`, though)
> might give further useful stderr output.
>
> What's the configure switches for your build?
>
Strace log attached.

The configure switches were:

CC="gcc -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -march=i486 -mtune=i686 -Os -pipe" ./configure --prefix=/usr/local --localstatedir=/var --without-help --without-myspell-dicts --without-fonts --without-java --without-junit --without-system-dicts --disable-odk --disable-firebird-sdbc --enable-release-build=yes --enable-python=system --with-parallelism=4 --disable-extensions --without-doxygen --disable-postgresql-sdbc --with-system-apr --with-system-bluez --with-system-boost --with-system-cairo --with-system-clucene --with-system-curl --with-system-epoxy --with-system-expat --with-system-glm --with-system-graphite --with-system-harfbuzz --with-system-hunspell --with-system-icu --with-system-jpeg --with-system-lcms2 --with-system-libatomic_ops --with-system-libexttextcat --with-system-libpng --with-system-libxml --with-system-neon --with-system-nss -with-system-odbc --with-system-openldap --with-system-openssl --with-system-poppler --with-system-postgresql --with-system-redland --with-system-sane --with-system-serf --with-system-xmlsec --with-system-zlib


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

libreoffice.log.tar.xz (70K) Download Attachment
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

On 15/04/2019 10:35, John Frankish wrote:
> Strace log attached.

I guess the problem shows in lines like

> 10691 access("/home/tc/.config/libreoffice/4/user/config/soffice.cfg", F_OK) = -1 ENOENT (No such file or directory)

There is previous lines like

> 10691 mkdir("/home/tc/.config/libreoffice/4/user/psprint", 0777) = -1 EEXIST (File exists)

indicating that the user profile at ~/.config/libreoffice/4/ is present
in general (so has been generated by a previous run of soffice), but
lacks important parts like the user/config/soffice.cfg/ sub-dir.  What
happens if you `rm -fr ~/.config/libreoffice` before running soffice again?
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

RE: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

> > Strace log attached.
> >
> I guess the problem shows in lines like
>
> 10691 access("/home/tc/.config/libreoffice/4/user/config/soffice.cfg",
> F_OK) = -1 ENOENT (No such file or directory)
>
> There is previous lines like
>
> 10691 mkdir("/home/tc/.config/libreoffice/4/user/psprint", 0777) = -1
> EEXIST (File exists)
>
> indicating that the user profile at ~/.config/libreoffice/4/ is present in general
> (so has been generated by a previous run of soffice), but lacks important parts like the
> user/config/soffice.cfg/ sub-dir.  What happens if you `rm -fr ~/.config/libreoffice`
> before running soffice again?
>
Thanks for the reply.

This distro (tinycorelinux) works like a live CD, so nothing is saved on reboot - it seems libreoffice-6.2.2.2 is creating the folders/files you mention:

$ ls -a /home/tc/.config
./       ../      gtk-3.0/

$ libreoffice
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
LibreOffice 6.2 - Fatal Error: The application cannot be started.
component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager of type com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred during file opening

$ ls -a /home/tc/.config/libreoffice
./  ../ 4/

$ libreoffice --version
LibreOffice 6.2.2.2 20(Build:2)

$ rm -rf /home/tc/.config/libreoffice

$ libreoffice
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
LibreOffice 6.2 - Fatal Error: The application cannot be started.
component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager of type com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred during file opening

$ ls -a /home/tc/.config/libreoffice
./  ../ 4/
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

On 15/04/2019 17:13, John Frankish wrote:
> $ rm -rf /home/tc/.config/libreoffice
>
> $ libreoffice
> Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
> LibreOffice 6.2 - Fatal Error: The application cannot be started.
> component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager of type com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred during file opening

The `strace -f libreoffice` output following the `rm -rf ...` would be
useful.
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

RE: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

> > $ rm -rf /home/tc/.config/libreoffice

> >
> > $ libreoffice
> > Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
> > LibreOffice 6.2 - Fatal Error: The application cannot be started.
> > component context fails to supply service
> > com.sun.star.ui.ModuleUIConfigurationManager of type
> > com.sun.star.ui.XModuleUIConfigurationManager2: an error occurred
> > during file opening
> >
> The `strace -f libreoffice` output following the `rm -rf ...` would be useful.
>
Sorry, I should have thought of that.

Strace log attached


_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice

libreoffice.log1.tar.xz (73K) Download Attachment
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

On 16/04/2019 06:43, John Frankish wrote:
> Strace log attached

Hm, unfortunately doesn't give me a further clue.  The

> 10691 access("/home/tc/.config/libreoffice/4/user/config/soffice.cfg", F_OK) = -1 ENOENT (No such file or directory)

may have been a false route after all; I was under the erroneous
expression that that part of the user profile gets copied over from the
installation's preset/ tree, but that isn't the case.  So you need to go
back to the debug suggestions I gave earlier.

But if creating that soffice.cfg is part of the puzzle after all, the
place from where it should get created is

>         xStorage.set(xStorageFactory->createInstanceWithArguments(lArgs), css::uno::UNO_QUERY_THROW);

in PresetHandler::getOrCreateRootStorageUser
(framework/source/accelerators/presethandler.cxx), which for me gets
called during

> #14 0x00007fffc38cb2dc in framework::PresetHandler::getOrCreateRootStorageUser() (this=0x1cd6760) at /data/sbergman/lo-clang2/core/framework/source/accelerators/presethandler.cxx:267
> #15 0x00007fffc38cba4e in framework::PresetHandler::connectToResource(framework::PresetHandler::EConfigType, rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::embed::XStorage> const&, LanguageTag const&) (this=0x1cd6760, eConfigType=framework::PresetHandler::E_MODULES, sResource="menubar", sModule="StartModule", xDocumentRoot=empty uno::Reference, rLanguageTag=...) at /data/sbergman/lo-clang2/core/framework/source/accelerators/presethandler.cxx:340
> #16 0x00007fffc3aa9bd1 in (anonymous namespace)::ModuleUIConfigurationManager::ModuleUIConfigurationManager(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (this=0x1d05650, xContext=uno::Reference to (cppu::ComponentContext *) 0x40c3a0, aArguments=uno::Sequence of length 2 = {...}) at /data/sbergman/lo-clang2/core/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx:872
> #17 0x00007fffc3aa90f9 in com_sun_star_comp_framework_ModuleUIConfigurationManager_get_implementation(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (context=0x40c3a0, arguments=uno::Sequence of length 2 = {...}) at /data/sbergman/lo-clang2/core/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx:1660
> #18 0x00007ffff698ca5d in std::_Function_handler<com::sun::star::uno::XInterface* (com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&), com::sun::star::uno::XInterface* (*)(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>::_M_invoke(std::_Any_data const&, com::sun::star::uno::XComponentContext*&&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (__functor=..., __args=@0x7fffffffbcb0: 0x40c3a0, __args=uno::Sequence of length 2 = {...}) at /usr/include/c++/8/bits/std_function.h:282
> #19 0x00007ffff695cae9 in std::function<com::sun::star::uno::XInterface* (com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&)>::operator()(com::sun::star::uno::XComponentContext*, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) const (this=0x32ca50, __args=0x40c3a0, __args=uno::Sequence of length 2 = {...}) at /usr/include/c++/8/bits/std_function.h:687
> #20 0x00007ffff6947276 in cppuhelper::ServiceManager::Data::Implementation::createInstanceWithArguments(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, bool, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) (this=0x32ca40, context=uno::Reference to (cppu::ComponentContext *) 0x40c3a0, singletonRequest=false, arguments=uno::Sequence of length 2 = {...}) at /data/sbergman/lo-clang2/core/cppuhelper/source/servicemanager.cxx:670
> #21 0x00007ffff694cb86 in cppuhelper::ServiceManager::createInstanceWithArgumentsAndContext(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) (this=0x2e8b20, ServiceSpecifier="com.sun.star.ui.ModuleUIConfigurationManager", Arguments=uno::Sequence of length 2 = {...}, Context=uno::Reference to (cppu::ComponentContext *) 0x40c3a0) at /data/sbergman/lo-clang2/core/cppuhelper/source/servicemanager.cxx:969
> #22 0x00007ffff694cc26 in non-virtual thunk to cppuhelper::ServiceManager::createInstanceWithArgumentsAndContext(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&) () at /data/sbergman/lo-clang2/core/instdir/program/libuno_cppuhelpergcc3.so.3
> #23 0x00007fffc3aa7da6 in com::sun::star::ui::ModuleUIConfigurationManager::createDefault(com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&) (the_context=uno::Reference to (cppu::ComponentContext *) 0x40c3a0, ModuleShortName="StartModule", ModuleIdentifier="com.sun.star.frame.StartModule") at /data/sbergman/lo-clang2/core/workdir/UnoApiHeadersTarget/offapi/normal/com/sun/star/ui/ModuleUIConfigurationManager.hpp:50
> #24 0x00007fffc3aa37f6 in (anonymous namespace)::ModuleUIConfigurationManagerSupplier::getUIConfigurationManager(rtl::OUString const&) (this=0x1cdbe70, sModuleIdentifier="com.sun.star.frame.StartModule") at /data/sbergman/lo-clang2/core/framework/source/uiconfiguration/moduleuicfgsupplier.cxx:174
> #25 0x00007fffc3aa39be in non-virtual thunk to (anonymous namespace)::ModuleUIConfigurationManagerSupplier::getUIConfigurationManager(rtl::OUString const&) () at /data/sbergman/lo-clang2/core/instdir/program/../program/libfwklo.so
> #26 0x00007fffc396bc1f in framework::LayoutManager::implts_reset(bool) (this=0x16cb400, bAttached=true) at /data/sbergman/lo-clang2/core/framework/source/layoutmanager/layoutmanager.cxx:343
> #27 0x00007fffc397a8ca in framework::LayoutManager::frameAction(com::sun::star::frame::FrameActionEvent const&) (this=0x16cb400, aEvent=...) at /data/sbergman/lo-clang2/core/framework/source/layoutmanager/layoutmanager.cxx:2741
> #28 0x00007fffc3a30105 in (anonymous namespace)::XFrameImpl::implts_sendFrameActionEvent(com::sun::star::frame::FrameAction const&) (this=0x1c5b6b0, aAction=@0x7fffc3788e14: com::sun::star::frame::FrameAction::FrameAction_COMPONENT_ATTACHED) at /data/sbergman/lo-clang2/core/framework/source/services/frame.cxx:2952
> #29 0x00007fffc3a2952a in (anonymous namespace)::XFrameImpl::setComponent(com::sun::star::uno::Reference<com::sun::star::awt::XWindow> const&, com::sun::star::uno::Reference<com::sun::star::frame::XController> const&) (this=0x1c5b6b0, xComponentWindow=uno::Reference to (VCLXContainer *) 0x1ce7eb0, xController=uno::Reference to ((anonymous namespace)::BackingComp *) 0x1ce6748) at /data/sbergman/lo-clang2/core/framework/source/services/frame.cxx:1547
> #30 0x00007ffff7d9e8d3 in desktop::Desktop::ShowBackingComponent(desktop::Desktop*) (progress=0x7fffffffd690) at /data/sbergman/lo-clang2/core/desktop/source/app/app.cxx:2544
> #31 0x00007ffff7d9c212 in desktop::Desktop::Main() (this=0x7fffffffd690) at /data/sbergman/lo-clang2/core/desktop/source/app/app.cxx:1522
> #32 0x00007ffff1236d74 in ImplSVMain() () at /data/sbergman/lo-clang2/core/vcl/source/app/svmain.cxx:203
> #33 0x00007ffff1238619 in SVMain() () at /data/sbergman/lo-clang2/core/vcl/source/app/svmain.cxx:237
> #34 0x00007ffff7e10956 in soffice_main() () at /data/sbergman/lo-clang2/core/desktop/source/app/sofficemain.cxx:170
> #35 0x000000000020117d in sal_main () at /data/sbergman/lo-clang2/core/desktop/source/app/main.c:48
> #36 0x0000000000201157 in main (argc=1, argv=0x7fffffffd9d8) at /data/sbergman/lo-clang2/core/desktop/source/app/main.c:47
> #37 0x00007ffff7ad7413 in __libc_start_main (main=0x201130 <main>, argc=1, argv=0x7fffffffd9d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd9c8) at /usr/src/debug/glibc-2.28-95-g7423da211d/csu/libc-start.c:308
> #38 0x000000000020102e in _start ()

---which does have creation of ModuleUIConfigurationManager on the
stack, so may be where your problem lies after all.  See in a debugger
why that code isn't reached for you.

(When you start without a user profile, there's one gotcha for
debugging:  The soffice wrapper script execs oosplash which starts a
first soffice.bin that does only a few things and exits with a special
exit code, then oosplash starts a second soffice.bin that does the
relevant parts.  So if you start `gdb .../soffice.bin`, be prepared to
see it exit soon, in which case just re-run it from within gdb.)
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

RE: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

> > Strace log attached
> >
> Hm, unfortunately doesn't give me a further clue.  The
>
> > 10691 access("/home/tc/.config/libreoffice/4/user/config/soffice.cfg",
> > F_OK) = -1 ENOENT (No such file or directory)
> >
> may have been a false route after all; I was under the erroneous expression that that part
> of the user profile gets copied over from the installation's preset/ tree, but that isn't the case.
> So you need to go back to the debug suggestions I gave earlier.
>
Thanks for the suggestions.

Unfortunately gdb echoes the same error, but exits normally, even when re-run.

Since libreoffice-6.2.2.2 builds and runs on the 64-bit version of the same distro when compiled almost identically (the difference being "-mtune-generic" instead of "-march=i486 -mtune=i686"), this is puzzling.

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
sberg sberg
Reply | Threaded
Open this post in threaded view
|

Re: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

On 17/04/2019 09:00, John Frankish wrote:
> Unfortunately gdb echoes the same error, but exits normally, even when re-run.

Yeah, you'll need to put breakpoints at the mentioned places, and step
into the code there to find out why it fails.  (Tedious, but I have no
better suggestion.)

_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice
John Frankish-2 John Frankish-2
Reply | Threaded
Open this post in threaded view
|

RE: libreoffice-6.2.2.2 component context fails to supply service com.sun.star.ui.ModuleUIConfigurationManager

> > Unfortunately gdb echoes the same error, but exits normally, even when re-run.
> >
> Yeah, you'll need to put breakpoints at the mentioned places, and step into the code
> there to find out why it fails.  (Tedious, but I have no better suggestion.)
>
Thanks for the suggestions - this will need to be filed under too difficult.

I'll stay with 5.2.3.3 on 32-bit, 6.2.2.2 works fine on 64-bit.
_______________________________________________
LibreOffice mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/libreoffice