Issue 60022

Summary: soffice with broken Common.xcu fails to start
Product: General Reporter: Stephan Bergmann <stephan.bergmann.secondary>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 680   
Target Milestone: AOO Later   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Stephan Bergmann 2006-01-04 15:25:19 UTC
This issue was discovered while fixing issue 55137, on SRC680m148 with a fix for
issue 55137 (i.e., a modified configmgr2.uno shared library).  It is
reproducible at least on unxlngi6.pro using vclplug_gtk (it is not reproducible
using vclplug_kde, however).
- Insert a newline after the initial "<" of
<UserInstallation>/user/registry/data/org/openoffice/Office/Common.xcu.
- Start soffice.
- Press "Yes" in the error dialog.
-> A "The application cannot be started" error dialog comes up.

The reason probably is as follows:

1  First, an instance of the framework::PathSettings service is created while
the first error dialog is displayed.  That instance is effectively
nonfunctional, as the underlying configuration does not work (yet, as it has not
yet been repaired) and threw an exception that has probably been caught by
utl::ConfigManager::AcquireTree (which obviously does not use
CONFIG_MODE_PROPAGATE_ERRORS), as can be seen in the following stack trace:
#0  utl::ConfigManager::AcquireTree (this=0x4469d4f0, rCfgItem=@0x44cad2a8) at
.../unotools/source/config/configmgr.cxx:309
#1  0x4074f297 in utl::ConfigManager::AddConfigItem (this=0x4469d4f0,
rCfgItem=@0x44cad2a8) at .../unotools/source/config/configmgr.cxx:230
#2  0x4074747a in ConfigItem (this=0x44cad2a8, rSubTree={pData = 0x455ae628},
nSetMode=1) at Reference.hxx:315
#3  0x45597cbd in PathSettingsCfg (this=0x44cad2a8, xSMGR=@0xbffc1cfc) at new:56
#4  0x45598363 in PathSettings (this=0x44cad2a0, xSMGR=@0xbffc1cfc) at
.../framework/source/services/pathsettings.cxx:774
#5  0x455984b2 in framework::PathSettings::impl_createInstance
(xServiceManager=@0xbffc1cfc) at weak.hxx:104
#6  0x409c1676 in cppu::OSingleFactoryHelper::createInstanceEveryTime
(this=0x44cbb924, xContext=@0x1) at Reference.h:311
#7  0x409c01fc in cppu::OSingleFactoryHelper::createInstanceWithContext
(this=0x81418e0, xContext=@0x4184819c) at Reference.h:311
#8  0x409c06cd in cppu::OFactoryComponentHelper::createInstanceWithContext
(this=0x44cbb8f0, xContext=@0x4184819c) at Reference.h:311
#9  0x409c3194 in cppu::ORegistryFactoryHelper::createInstanceEveryTime
(this=0x44cafe00, xContext=@0x4184819c) at Reference.h:318
#10 0x409c01fc in cppu::OSingleFactoryHelper::createInstanceWithContext
(this=0x81418e0, xContext=@0x4184819c) at Reference.h:311
#11 0x409c073f in cppu::OFactoryComponentHelper::createInstanceWithContext
(this=0x44cafe00, xContext=@0x4184819c) at Reference.h:311
#12 0x437365f2 in stoc_smgr::OServiceManager::createInstanceWithContext
(this=0x44cafe3c, rServiceSpecifier=@0xbffc1f68, xContext=@0x4184819c) at
Reference.h:318
#13 0x43732f47 in stoc_smgr::OServiceManager::createInstance (this=0x1,
rServiceSpecifier=@0xbffc1f68) at Reference.h:311
#14 0x400e8351 in ImplImageTree::implInit (this=0x44c54160) at Reference.h:318
#15 0x400e89e9 in ImplImageTree::loadImage (this=0x44c54160, rName=@0xbffc21cc,
rReturn=@0xbffc2254, bSearchLanguageDependent=false) at Reference.h:121
#16 0x400bee06 in BitmapEx (this=0xbffc2254, rResId=@0xbffc2294) at
singletonref.hxx:167
#17 0x42e18e4f in GtkSalFrame::SetIcon (this=0x44cba420, nIcon=1) at
.../vcl/unx/gtk/window/gtkframe.cxx:789
#18 0x42e184bc in GtkSalFrame::InitCommon (this=0x44cba420) at
.../vcl/unx/gtk/window/gtkframe.cxx:427
#19 0x42e18855 in GtkSalFrame::Init (this=0x44cba420, pParent=0x0, nStyle=10) at
.../vcl/unx/gtk/window/gtkframe.cxx:563
#20 0x42e1c0d3 in GtkSalFrame (this=0x44cba420, pParent=0x0, nStyle=10) at
.../vcl/unx/gtk/window/gtkframe.cxx:300
#21 0x42e0db60 in GtkInstance::CreateFrame (this=0x418443b8, pParent=0x0,
nStyle=10) at .../vcl/unx/gtk/app/gtkinst.cxx:202
#22 0x40223afd in Window::ImplInit (this=0x44c8e420, pParent=0x0, nStyle=1792,
pSystemParentData=0x0) at .../vcl/source/window/window.cxx:826
#23 0x401c63d5 in Dialog::ImplInit (this=0x44c8e420, pParent=0x0, nStyle=???) at
.../vcl/source/window/dialog.cxx:368
#24 0x401e4f46 in MessBox (this=0x44c8e420, pParent=0x0, nStyle=???) at
.../vcl/source/window/msgbox.cxx:208
#25 0x401e65a7 in ErrorBox (this=0x44c8e420, pParent=0x0, nStyle=4194304,
rMessage=@0xbffc24f0) at svdata.hxx:389
#26 0x4550d2a4 in UUIInteractionHandler::executeErrorDialog (this=0x44c958b8,
eClassification=3220972768, rContext=@0xbffc25f0, rMessage=@0xbffc25c0,
nButtonMask=4194304) at ustrbuf.hxx:181
#27 0x4550dd71 in UUIInteractionHandler::handleErrorRequest (this=0x44c958b8,
eClassification=com::sun::star::task::InteractionClassification_ERROR,
nErrorCode=106550, rArguments=@0xbffc2a2c, rContinuations=@0xbffc2aac) at
.../uui/source/iahndl.cxx:2512
#28 0x45517e60 in UUIInteractionHandler::handle_impl (this=0x44c958b8,
rRequest=@0xbffc2cc4) at Reference.h:318
#29 0x455098f3 in UUIInteractionHandler::handle (this=0x44c958b8,
rRequest=@0xbffc2cc4) at .../uui/source/iahndl.cxx:610
#30 0x444ad948 in configmgr::backend::BackendAccess::approveRecovery
(this=0x44657230, aMergeException=@0xbffc2e30, aBrokenLayer=@0xbffc2e20,
bUserLayerData=true) at Reference.h:318
#31 0x444b11b5 in configmgr::backend::BackendAccess::getNodeData
(this=0x44657230, aRequest=@0xbffc3070, _aTemplateProvider=0x44659cc8,
aListener=0x44659ccc) at .../configmgr/source/backend/backendaccess.cxx:689
#32 0x4446c4f8 in configmgr::backend::CacheController::loadDirectly
(this=0x44659cb8, _aRequest=@0xbffc3070, _bAddListenter=true) at ref.hxx:177
#33 0x44471079 in configmgr::backend::CacheController::loadComponent
(this=0x44659cb8, _aRequest=@0xbffc3070) at
.../configmgr/source/treecache/cachecontroller.cxx:450
#34 0x444777d3 in configmgr::TreeManager::requestSubtree (this=0x4465a168,
aSubtreePath=@0xbffc31c8, _aOptions=@0x4465a168) at ref.hxx:111
#35 0x44540122 in configmgr::OProviderImpl::requestSubtree (this=0x44413978,
aSubtreePath=@0xbffc31c8, _aOptions=@0xbffc3208) at ref.hxx:177
#36 0x44541644 in configmgr::OProviderImpl::buildUpdateAccess (this=0x44413978,
_rAccessor=@0xbffc3228, _aOptions=@0xbffc3208, nMinLevels=-1) at
.../configmgr/source/api2/providerimpl.cxx:621
#37 0x44545cfb in configmgr::OConfigurationProviderImpl::createUpdateAccess
(this=0x44413978, aArgs=@0xbffc33b4) at
.../configmgr/source/api2/confproviderimpl2.cxx:140
#38 0x44542a98 in configmgr::OConfigurationProvider::createInstanceWithArguments
(this=0x444111d0, aServiceSpecifier=@0xbffc3344, aArguments=@0xbffc33b4) at
Reference.h:311
#39 0x407456e6 in utl::OConfigurationTreeRoot::createWithProvider
(_rxConfProvider=@0xbffc3420, _rPath=@0xbffc3484, _nDepth=-1,
_eMode=utl::OConfigurationTreeRoot::CM_PREFER_UPDATABLE, _bLazyWrite=1 '\001')
at Reference.h:318
#40 0x40745da0 in utl::OConfigurationTreeRoot::tryCreateWithServiceFactory
(_rxORB=@0x81418e0, _rPath=@0xbffc3484, _nDepth=-1,
_eMode=utl::OConfigurationTreeRoot::CM_PREFER_UPDATABLE, _bLazyWrite=1 '\001')
at .../unotools/source/config/confignode.cxx:717
#41 0x40097bcb in AllSettings::GetLayoutRTL (this=0x446f3f48) at ustring.hxx:1224
#42 0x40182138 in SalGraphics (this=0x44910fe8) at
.../vcl/source/gdi/salgdilayout.cxx:145
#43 0x43312605 in X11SalGraphics (this=0x44910fe8) at
.../vcl/unx/source/gdi/salgdi.cxx:116
#44 0x42e18c22 in GtkSalFrame::GetGraphics (this=0x44badca0) at gtkgdi.hxx:59
#45 0x4010c16f in OutputDevice::ImplGetGraphics (this=0x44c741f0) at
.../vcl/source/gdi/outdev.cxx:596
#46 0x402240d6 in Window::ImplInit (this=0x44c741f0, pParent=0x0,
nStyle=8589934592, pSystemParentData=0x0) at .../vcl/source/window/window.cxx:916
#47 0x401bf951 in ImplBorderWindow::ImplInit (this=0x44c741f0, pParent=0x0,
nStyle=8589934592, nTypeStyle=2, pSystemParentData=0x0) at
.../vcl/source/window/brdwin.cxx:1790
#48 0x401bfabd in ImplBorderWindow (this=0x44c741f0, pParent=0x0,
pSystemParentData=0x0, nStyle=8589934592, nTypeStyle=8) at
.../vcl/source/window/brdwin.cxx:1825
#49 0x4022be95 in WorkWindow::ImplInit (this=0x447011cc, pParent=0x0,
nStyle=8589934592, pSystemParentData=0x0) at .../vcl/source/window/wrkwin.cxx:107
#50 0x401d68ab in IntroWindow (this=0x447011cc) at
.../vcl/source/window/introwin.cxx:75
#51 0x44b6d520 in SplashScreen (this=0x447011b0, rSMgr=@0x81418e0) at
.../desktop/source/splash/splash.cxx:85
#52 0x44b6d89c in desktop::SplashScreen::getInstance (rSMgr=@0xbffc377c) at
weak.hxx:104
#53 0x409c1676 in cppu::OSingleFactoryHelper::createInstanceEveryTime
(this=0x446f2174, xContext=@0x1) at Reference.h:311
#54 0x409c01fc in cppu::OSingleFactoryHelper::createInstanceWithContext
(this=0x81418e0, xContext=@0x4184819c) at Reference.h:311
#55 0x409c073f in cppu::OFactoryComponentHelper::createInstanceWithContext
(this=0x446f2140, xContext=@0x4184819c) at Reference.h:311
#56 0x409c173f in
cppu::OSingleFactoryHelper::createInstanceWithArgumentsAndContext
(this=0x81418e0, rArguments=@0xbffc3a4c, xContext=@0x4184819c) at Reference.h:311
#57 0x409c19c2 in
cppu::OFactoryComponentHelper::createInstanceWithArgumentsAndContext
(this=0x446f2140, rArguments=@0xbffc3a4c, xContext=@0x4184819c) at Reference.h:311
#58 0x409c2c6e in
cppu::ORegistryFactoryHelper::createInstanceWithArgumentsAndContext
(this=0x446f2790, rArguments=@0xbffc3a4c, xContext=@0x4184819c) at Reference.h:318
#59 0x43736321 in
stoc_smgr::OServiceManager::createInstanceWithArgumentsAndContext
(this=0x446f27cc, rServiceSpecifier=@0xbffc3a1c, rArguments=@0xbffc3a4c,
xContext=@0x4184819c) at Reference.h:318
#60 0x43732efc in stoc_smgr::OServiceManager::createInstanceWithArguments
(this=0x1, rServiceSpecifier=@0xbffc3a1c, rArguments=@0xbffc3a4c) at Reference.h:311
#61 0x08063ff8 in desktop::Desktop::OpenSplashScreen (this=0xbffc3ca4) at
Reference.h:115
#62 0x08069c9e in desktop::Desktop::Main (this=0xbffc3ca4) at
.../desktop/source/app/app.cxx:1393
#63 0x4009dfa7 in ImplSVMain () at .../vcl/source/app/svmain.cxx:242
#64 0x4009e0ef in SVMain () at .../vcl/source/app/svmain.cxx:273
#65 0x0805e83b in sal_main (argc=1, argv=0xbffc3d64) at
.../desktop/source/app/main.cxx:77
#66 0x41b7aea0 in __libc_start_main () from /lib/tls/libc.so.6
#67 0x0805e761 in _start ()

2  Then, after "Yes" has been pressed in the first error dialog, and the
configuration has been repaired, the (still nonfunctional) instance of
framework::PathSettings is used again (but does not deliver useful results), as
can be seen in the following stack trace (where the Desktop::Main frame is
executing "xBackingFrame->setComponent(xBackingWin, xBackingComp);"):
#0  0x41b086d2 in __cxa_throw () from .../libstdc++.so.6
#1  0x4675babd in FSStorageFactory::createInstanceWithArguments
(this=0x46750388, aArguments=@0xbf8a8024) at Reference.hxx:121
#2  0x465d6cd9 in framework::PresetHandler::getOrCreateRootStorageShare
(this=0x467539a8) at Reference.h:318
#3  0x465d8dc2 in framework::PresetHandler::connectToResource (this=0x467539a8,
eConfigType=framework::PresetHandler::E_MODULES, sResource=@0xbf8a82bc,
sModule=@0x4675265c, xDocumentRoot=@0xbf8a81d4, aLocale=@0xbf8a82cc) at
Reference.hxx:315
#4  0x465aa280 in framework::ModuleUIConfigurationManager::initialize
(this=0x467525b8, aArguments=@0xbf8a85e4) at Reference.hxx:121
#5  0x409c17f2 in
cppu::OSingleFactoryHelper::createInstanceWithArgumentsAndContext (this=0x0,
rArguments=@0xbf8a85e4, xContext=@0x4184819c) at Reference.h:318
#6  0x409c19c2 in
cppu::OFactoryComponentHelper::createInstanceWithArgumentsAndContext
(this=0x4674beb8, rArguments=@0xbf8a85e4, xContext=@0x4184819c) at Reference.h:311
#7  0x409c2c6e in
cppu::ORegistryFactoryHelper::createInstanceWithArgumentsAndContext
(this=0x4674ae98, rArguments=@0xbf8a85e4, xContext=@0x4184819c) at Reference.h:318
#8  0x43736321 in
stoc_smgr::OServiceManager::createInstanceWithArgumentsAndContext
(this=0x4674aed4, rServiceSpecifier=@0xbf8a8594, rArguments=@0xbf8a85e4,
xContext=@0x4184819c) at Reference.h:318
#9  0x43732efc in stoc_smgr::OServiceManager::createInstanceWithArguments
(this=0x6, rServiceSpecifier=@0xbf8a8594, rArguments=@0xbf8a85e4) at Reference.h:311
#10 0x465a4664 in
framework::ModuleUIConfigurationManagerSupplier::getUIConfigurationManager
(this=0x46748cf0, ModuleIdentifier=@0xbf8a86fc) at Reference.h:318
#11 0x465f14f5 in framework::ToolBoxFactory::createUIElement (this=0x46752860,
ResourceURL=@0x0, Args=@0xbf8a88ec) at Reference.h:318
#12 0x46571ce1 in framework::UIElementFactoryManager::createUIElement
(this=0x466ffea8, ResourceURL=@0x46424018, Args=@0xbf8a88ec) at Reference.h:318
#13 0x46529aa8 in framework::LayoutManager::implts_createElement
(this=0x466f5450, aName=@0x46424018) at Reference.h:318
#14 0x4654debe in framework::LayoutManager::createElement (this=0x466f5450,
aName=@0x46424018) at Reference.hxx:315
#15 0x4654d351 in framework::LayoutManager::requestElement (this=0x466f5450,
ResourceURL=@0x46424018) at
.../framework/source/layoutmanager/layoutmanager.cxx:4141
#16 0x4653dfc5 in
framework::LayoutManager::implts_createNonContextSensitiveToolBars
(this=0x466f5450) at _vector.h:184
#17 0x46550f14 in framework::LayoutManager::implts_reset (this=0x466f5450,
bAttached=1 '\001') at .../framework/source/layoutmanager/layoutmanager.cxx:742
#18 0x4655123f in framework::LayoutManager::frameAction (this=0x466f5450,
aEvent=@0xbf8a8f70) at .../framework/source/layoutmanager/layoutmanager.cxx:6636
#19 0x464b598a in framework::Frame::implts_sendFrameActionEvent
(this=0x466fdb60, aAction=@0x0) at .../framework/source/services/frame.cxx:2779
#20 0x464bfd2d in framework::Frame::setComponent (this=0x466fdb60,
xComponentWindow=@0xbf8a90e0, xController=@0xbf8a9170) at
.../framework/source/services/frame.cxx:1564
#21 0x0806b22e in desktop::Desktop::Main (this=0xbf8a92b4) at Reference.h:318
#22 0x4009dfa7 in ImplSVMain () at .../vcl/source/app/svmain.cxx:242
#23 0x4009e0ef in SVMain () at .../vcl/source/app/svmain.cxx:273
#24 0x0805e9eb in sal_main (argc=1, argv=0xbf8a9374) at
.../desktop/source/app/main.cxx:77
#25 0x41b7aea0 in __libc_start_main () from /lib/tls/libc.so.6
#26 0x0805e911 in _start ()
Comment 1 Stephan Bergmann 2006-01-10 08:57:32 UTC
.
Comment 2 Marcus 2017-05-20 11:31:17 UTC
Reset assigne to the default "issues@openoffice.apache.org".