Abdel, if something goes wrong and LyX::emergencyCleanup is called, then the global Application object is already destroyed:
#0 0xb7f56410 in ?? () #1 0xbf90cb7c in ?? () #2 0x00000006 in ?? () #3 0xb7101fb9 in abort () from /lib/tls/i686/cmov/libc.so.6 #4 0x08544f91 in lyx::support::abort () at ../../../src/support/abort.C:22 #5 0x080e356e in boost::assertion_failed (expr=0x858c062 "ptr != 0", function=0x858ccc0 "T* boost::scoped_ptr<T>::operator->() const [with T = lyx::frontend::Application]", file=0x858c040 "/usr/include/boost/scoped_ptr.hpp", line=94) at ../../src/boost.C:57 #6 0x08191587 in boost::scoped_ptr<lyx::frontend::Application>::operator-> (this=0x875c364) at /usr/include/boost/scoped_ptr.hpp:94 #7 0x08187162 in LyX::emergencyCleanup (this=0x875c348) at ../../src/lyx_main.C:759 #8 0x080e34b3 in boost::(anonymous namespace)::emergencyCleanup () at ../../src/boost.C:44 #9 0x080e3569 in boost::assertion_failed (expr=0x85b4363 "info_", function=0x85b4580 "InsetCommandParams::InsetCommandParams(const std::string&)", file=0x85b3fe0 "../../../src/insets/insetcommandparams.C", line=36) at ../../src/boost.C:56 Dou you have an idea how to solve that? Georg