Bennett Helm wrote:
OK. Creating a math inset causes it to quit immediately, without saving (without even an emergency save). There's nothing written to the crash log, but the following appears in console.log:

terminate called after throwing an instance of 'int'

Is that what you expected?

No, I had expected a dialog saying than an exception was caught. This means that Mac catch this kind of exception before us... too bad!

If you know how to make LyX crash (perhaps with problematic file path) please try to reproduce the crash and see if you get a dialog. Or maybe try this patch.

Abdel.
Index: Inset.cpp
===================================================================
--- Inset.cpp   (revision 20479)
+++ Inset.cpp   (working copy)
@@ -36,6 +36,7 @@
 #include "frontends/Painter.h"
 
 #include "support/convert.h"
+#include "support/ExceptionMessage.h"
 
 #include <boost/current_function.hpp>
 
@@ -124,6 +125,10 @@
 
 Dimension const Inset::dimension(BufferView const & bv) const
 {
+       throw support::ExceptionMessage(support::ErrorException,
+                               _("Dummy exception"),
+                               _("Dummy exception"));
+
        return bv.coordCache().getInsets().dim(this);
 }
 

Reply via email to