Georg Baum wrote:
Abdelrazak Younes wrote:
I just had a look at the code and I don't see anything wrong at first
glance. Do you have a recipe to reproduce that?
I got it with an assertion in the InsetCommandParams constructor when trying
to read an invalid file. Just add
BOOST_ASSERT(false)
to it, and try to export to .tex from the command line:
lyx -e latex test.lyx
test.lyx needs to contain a command inset, e.g. a label.
OK. The fix is simple. As you know the Application instance is not
created when the export command-line feature is requested. This patch
fixes the crash and goes in soon.
By the way, I think lyx2lyx has not been updated with the format change.
Abdel.
Index: lyx_main.C
===================================================================
--- lyx_main.C (revision 15359)
+++ lyx_main.C (working copy)
@@ -756,7 +756,8 @@
// a crash
buffer_list_->emergencyWriteAll();
- application_->server().emergencyCleanup();
+ if (application_.get())
+ application_->server().emergencyCleanup();
}