To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=100171
                 Issue #|100171
                 Summary|don't crash on startup ...
               Component|gsl
                 Version|OOO310m5
                Platform|Unknown
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|pl
             Reported by|mmeeks





------- Additional comments from [email protected] Fri Mar 13 09:42:20 
+0000 2009 -------
I was having a somewhat surreal experience trying to debug soffice.bin
having linkoo'd - and it crashing on start:

$ ./soffice.bin 

** (soffice:30645): WARNING **: unable to get gail version number
terminate called after throwing an instance of
'com::sun::star::uno::RuntimeException'

vs.

$ ./soffice.bin -splash-pipe=0

** (soffice:30654): WARNING **: unable to get gail version number
10%
20%
25%
30%
35%
40%
50%
60%
75%
80%
100%
end

        Digging it down to the (almost) bitter end, when it fails - it fails
because the UCB hasn't been initialised:

Breakpoint 1, 0xb7eb6555 in __cxa_throw () from /usr/lib/libstdc++.so.6
(gdb) bt
#0  0xb7eb6555 in __cxa_throw () from /usr/lib/libstdc++.so.6
#1  0xb708a123 in getContentBroker (bThrow=true) at
/home/opt/OpenOffice/ooo310-m4/ucbhelper/source/client/content.cxx:264
#2  0xb708bd45 in Content (this=0xbfffdfac, ru...@0xbfffdfb8, re...@0xbfffdfa8)
at /home/opt/OpenOffice/ooo310-m4/ucbhelper/source/client/content.cxx:398
#3  0xb27881ec in
OZipFileAccess::initialize(com::sun::star::uno::Sequence<com::sun::star::uno::Any>
const&) ()
   from /home/opt/OOInstall/program/../basis-link/program/libpackage2.so
#4  0xb7ae46e5 in ?? () from
/home/opt/OOInstall/program/../basis-link/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
#5  0xb7ae48a6 in ?? () from
/home/opt/OOInstall/program/../basis-link/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
#6  0xb7ae4337 in ?? () from
/home/opt/OOInstall/program/../basis-link/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
#7  0xb4622495 in
stoc_smgr::OServiceManager::createInstanceWithArgumentsAndContext
(this=0x80d6808, rservicespecifi...@0xbfffe1c8, rargumen...@0xbfffe1b8, 
    xconte...@0x80d6854) at
/home/opt/OpenOffice/ooo310-m4/stoc/source/servicemanager/servicemanager.cxx:1340

254     static ContentBroker* getContentBroker( bool bThrow )
255         throw ( ContentCreationException, RuntimeException )
256     {
257         ContentBroker* pBroker = ContentBroker::get();
258
259         if ( !pBroker )
260         {
261             if ( bThrow )
262                 throw RuntimeException(
263                         rtl::OUString::createFromAscii( "No Content 
Broker!" ),
264                         Reference< XInterface >() );
(gdb) p pBroker
$2 = (ucbhelper::ContentBroker *) 0x0

        So - presumably we only initialise the UCB correctly on the path with
the splash-pipe :-)

...

It turns out with the gtk+ plugin that we try to load an image for the window
icon for the splash screen [ arguably we shouldn't be even trying to do that ].
And for some reason, we do this before the UCB is initailized (these days) - and
this causes us to crash.

One way of fixing it attached.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to