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


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.)

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.