Hi all,

I've compiled the MITK with all plugins on linux and I'm having
problems on ExtApp start. A pretty segfault ocurrs ( atacched stack ).
I'm really thinking are some problem with my environment ( are the
plugin.xml files found ( if needed)? and the MANIFEST, are found
too(if needed)?
If not appears to be a easy and obvious environment problem, I'll try
tomorrow to clean and compile another time.

How I've done the compilation and environment:
a) compiled on a different (outside) build directory
b) compiled on debug mode

Well, the described problem ocurred to me when I tried to install MITK
in a directory ( for example in /opt ), but this is the first time in
a outside build directory.
First, the libs from OpenCherry was not found, which is correct, since
the libs aren't in current directory and aren't in LD_LIBRARY_PATH. To
solve this, I've tried:
a) export LD_LIBRARY_PATH  correctly in bin directory
b) link the libs from the org.opencherry.*/bin on the bin directory.

In both cases I've got:

[Tue Apr 20 18:38:11 2010 0.260] Registering CoreExtObjectFactory...
[Tue Apr 20 18:38:11 2010 0.260] CoreObjectFactory c'tor
[Tue Apr 20 18:38:11 2010 0.260] CoreExtObjectFactory c'tor
[Tue Apr 20 18:38:11 2010 0.260] CoreObjectFactory: registering extra
factory of type CoreExtObjectFactory
[Tue Apr 20 18:38:11 2010 0.490] Registering DiffusionImagingObjectFactory...
[Tue Apr 20 18:38:11 2010 0.490] DiffusionImagingObjectFactory c'tor
[Tue Apr 20 18:38:11 2010 0.490] CoreObjectFactory: registering extra
factory of type DiffusionImagingObjectFactory
[Tue Apr 20 18:38:11 2010 0.490] CoreObjectFactory: registering extra
factory of type DiffusionImagingObjectFactory
[Tue Apr 20 18:38:11 2010 0.560] QmitkRegisterClasses()
[Tue Apr 20 18:38:11 2010 0.560] QmitkExtRegisterClasses()
Segmentation fault

Trying to debug the application, the following stack was shown to me:
(gdb) run
Starting program: /home/plx/Builds/mitk/bin/ExtApp
[Thread debugging using libthread_db enabled]
[Tue Apr 20 18:45:52 2010 0.300] Registering CoreExtObjectFactory...
[Tue Apr 20 18:45:52 2010 0.300] CoreObjectFactory c'tor
[Tue Apr 20 18:45:52 2010 0.300] CoreExtObjectFactory c'tor
[Tue Apr 20 18:45:52 2010 0.300] CoreObjectFactory: registering extra
factory of type CoreExtObjectFactory
[Tue Apr 20 18:46:19 2010 0.610] Registering DiffusionImagingObjectFactory...
[Tue Apr 20 18:46:19 2010 0.610] DiffusionImagingObjectFactory c'tor
[Tue Apr 20 18:46:19 2010 0.610] CoreObjectFactory: registering extra
factory of type DiffusionImagingObjectFactory
[Tue Apr 20 18:46:19 2010 0.610] CoreObjectFactory: registering extra
factory of type DiffusionImagingObjectFactory
[Tue Apr 20 18:46:20 2010 0.720] QmitkRegisterClasses()
[Tue Apr 20 18:46:20 2010 0.730] QmitkExtRegisterClasses()

Program received signal SIGSEGV, Segmentation fault.
0x07a20a0e in std::string::compare(std::string const&) const () from
/usr/lib/libstdc++.so.6
(gdb) bt
#0  0x07a20a0e in std::string::compare(std::string const&) const ()
from /usr/lib/libstdc++.so.6
#1  0x001fff8f in std::operator< <char, std::char_traits<char>,
std::allocator<char> > (__lhs=..., __rhs=...) at
/usr/include/c++/4.4/bits/basic_string.h:2320
#2  0x002054b4 in std::less<std::string>::operator() (this=0x8106570,
__x=..., __y=...) at /usr/include/c++/4.4/bits/stl_function.h:230
#3  0x00425f47 in std::_Rb_tree<std::string, std::pair<std::string
const, berry::BundleLoader::BundleInfo>,
std::_Select1st<std::pair<std::string const,
berry::BundleLoader::BundleInfo> >, std::less<std::string>,
std::allocator<std::pair<std::string const,
berry::BundleLoader::BundleInfo> > >::_M_lower_bound (this=0x8106570,
__x=0x69752e79, __y=0x8106574, __k=...) at
/usr/include/c++/4.4/bits/stl_tree.h:986
#4  0x00425b13 in std::_Rb_tree<std::string, std::pair<std::string
const, berry::BundleLoader::BundleInfo>,
std::_Select1st<std::pair<std::string const,
berry::BundleLoader::BundleInfo> >, std::less<std::string>,
std::allocator<std::pair<std::string const,
berry::BundleLoader::BundleInfo> > >::lower_bound (this=0x8106570,
__k=...) at /usr/include/c++/4.4/bits/stl_tree.h:745
#5  0x00424596 in std::map<std::string,
berry::BundleLoader::BundleInfo, std::less<std::string>,
std::allocator<std::pair<std::string const,
berry::BundleLoader::BundleInfo> > >::lower_bound (
    this=0x8106570, __x=...) at
/usr/include/c++/4.4/bits/stl_map.h:701
#6  0x00423232 in std::map<std::string,
berry::BundleLoader::BundleInfo, std::less<std::string>,
std::allocator<std::pair<std::string const,
berry::BundleLoader::BundleInfo> > >::operator[] (
    this=0x8106570, __k=...) at
/usr/include/c++/4.4/bits/stl_map.h:447
#7  0xb6d9d5df in
berry::BundleLoader::LoadClass<berry::WorkbenchTweaklet>
(this=0x810656c, bundleName=..., className=..., manifestName=...)
    at 
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.osgi/src/service/../berryBundleLoader.txx:38
#8  0xb6d9cfce in
berry::IConfigurationElement::CreateExecutableExtension<berry::WorkbenchTweaklet>
(this=0x8122550, propertyName=..., manifestName=...)
    at 
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.osgi/src/service/berryIConfigurationElement.h:54
#9  0xb6d9cc51 in
berry::IConfigurationElement::CreateExecutableExtension<berry::WorkbenchTweaklet>
(this=0x8122550, propertyName=...)
    at 
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.osgi/src/service/berryIConfigurationElement.h:78
#10 0xb6d9bf5b in
berry::Tweaklets::CreateTweaklet<berry::WorkbenchTweaklet>
(definition=...)
    at 
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.ui/src/handlers/../tweaklets/../internal/berryTweaklets.h:168
#11 0xb6d9b69a in berry::Tweaklets::Get<berry::WorkbenchTweaklet>
(definition=...) at
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.ui/src/handlers/../tweaklets/../internal/berryTweaklets.h:116
#12 0xb6efaeec in berry::Workbench::CreateDisplay () at
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.ui/src/internal/berryWorkbench.cpp:200
#13 0xb6d6e6d5 in berry::PlatformUI::CreateDisplay () at
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.ui/src/berryPlatformUI.cpp:65
#14 0xb40d1585 in QmitkExtApplication::Start (this=0x81a3728) at
/home/plx/Documents/mitk/Modules/Bundles/org.mitk.gui.qt.extapplication/src/QmitkExtApplication.cpp:26
#15 0x0043d8d2 in berry::Starter::Run (ar...@0xbffff230,
argv=0xbffff2d4, config=0x80fedc0) at
/home/plx/Documents/mitk/BlueBerry/Bundles/org.blueberry.osgi/src/application/berryStarter.cpp:150
#16 0x08049b06 in main (argc=1, argv=0xbffff2d4) at
/home/plx/Documents/mitk/Applications/ExtApp/ExtApp.cpp:46


Best Regards,

Wagner Sales

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to