I guess it has something to do with smart-pointer misuse in your code. 
If you try (directly or indirectly) to delete a berry::Object instance 
which has referencing smart pointers, you will get this kind of problem. 
This is usually triggered by class members or locals of type 
berry::Object (or subclasses) instead of berry::Object::Pointer.

Best,
Sascha

On 11/11/2011 10:57 AM, Miklos Espak wrote:
> Hi,
>
> I built my external app for Mac OS X 10.7.
>
> When I run the application, it registers the help files, the window
> appears (grey), and then the application crashes with this error:
>
> !4.477! [BlueBerry] WARNING: WARNING: In
> /Users/espakm/src/KMaps-superbuild/MITK/BlueBerry/Bundles/org.blueberry.osgi/src/berryObject.cpp,
> line 173
> Object (0x7fc1a93820b0): Trying to delete object with non-zero reference 
> count.
> Abort trap: 6
>
> The same version runs on Windows and Linux. How to debug this?
>
> I also wanted to create an installer with the "make package" command.
> I get the following errors for the libraries of my application:
>
> /usr/bin/strip: symbols referenced by indirect symbol table entries
> that can't be stripped in:
> /Users/espakm/src/KMaps-superbuild/KMaps-build/_CPack_Packages/Darwin/DragNDrop/KMaps-0.1.1-Darwin/KMaps.app/Contents/MacOS/plugins/libuk_ac_ucl_cmic_imagelookuptables.dylib
> __Unwind_Resume_or_Rethrow
> __Z21qRegisterResourceDataiPKhS0_S0_
> __Z23qUnregisterResourceDataiPKhS0_S0_
> __Z5qFreePv
> __ZN10QBoxLayout10setSpacingEi
> __ZN10QBoxLayout9addLayoutEP7QLayouti
> __ZN10QBoxLayout9addWidgetEP7QWidgeti6QFlagsIN2Qt13AlignmentFlagEE
> __ZN10QByteArray7reallocEi
> __ZN11QFormLayout18setVerticalSpacingEi
> __ZN11QFormLayout20setHorizontalSpacingEi
> __ZN11QFormLayout6addRowEP7QWidgetS1_
> __ZN11QFormLayout6addRowERK7QStringP7QLayout
> __ZN11QFormLayout6addRowERK7QStringP7QWidget
> __ZN11QFormLayoutC1EP7QWidget
> __ZN11QGridLayout10setSpacingEi
> __ZN11QGridLayout7addItemEP11QLayoutItemiiii6QFlagsIN2Qt13AlignmentFlagEE
> __ZN11QGridLayout9addWidgetEP7QWidgetiiii6QFlagsIN2Qt13AlignmentFlagEE
> __ZN11QGridLayoutC1Ev
> __ZN11QHBoxLayoutC1EP7QWidget
> __ZN11QMessageBox7warningEP7QWidgetRK7QStringS4_6QFlagsINS_14StandardButtonEES6_
> __ZN11QMetaObject11changeGuardEPP7QObjectS1_
> ...
>
> Inspite of the errors the installer is created, and it works. Of
> course, the install application gives the same error as above. If I
> understand well, this only means that it cannot strip the library, so
> the installer will be a bit bigger.
>
> The application is based on the external project template and I built
> everything using the superbuild.
>
> Does somebody have any idea? Shall I try to rebuild everything on Mac OS X 
> 10.6?
>
> Thanks,
> Miklos
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> mitk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mitk-users


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to