Hello, I just discovered a bug in LyX Version 1.0.0:

I want to include 2 figures in one float, which causes LyX to crash with a
FPE exception (division by zero) sometimes.

To reproduce:

* start lyx
* create new document
* Insert->Float->Figure
* Insert->Figure
* choose Encapsulated Postscript
* In the figure menu, do not load a figure but press OK
* And again: Insert->Float->Figure
* Insert->Figure
* choose Encapsulated Postscript
* In the figure menu, do not load a figure but press OK
* crash!

You get the following backtrace:

Program received signal SIGFPE, Arithmetic exception.
0x998ea in InsetFig::Recompute (this=0x1ff700) at figinset.C:1644
1644            nraw_x = (int) ((1.0 * pswid * newx)/frame_wid);
(gdb) bt
#0  0x998ea in InsetFig::Recompute (this=0x1ff700) at figinset.C:1644
#1  0x9a1fc in InsetFig::CallbackFig (this=0x1ff700, arg=8) at figinset.C:1884
#2  0x9b817 in HideFiguresPopups () at figinset.C:2152
#3  0x201727c7 in fl_object_qread ()
#4  0x201712fd in fl_check_forms ()
#5  0x26df6 in LyXGUI::runTime (this=0x16e610) at lyx_gui.C:624
#6  0x1ad6 in LyX::LyX (this=0xefbfd814, argc=0xefbfd834, argv=0xefbfd854)
    at ../src/lyx_main.C:119
#7  0x164f in main (argc=2, argv=0xefbfd854) at ../src/main.C:51

As far as I know, this bug is not known yet.


-- 
##              Andreas Paul, Universitaet des Saarlandes                ##
##                FB 14 Informatik, Lehrstuhl Prof. Paul                 ##
##       Im Stadtwald, Bau 45 Raum 302, 66123 Saarbruecken, Germany      ##
##  Phone +49-681-302-4490, Fax +49-681-302-4290, EMail [EMAIL PROTECTED]  ##

Reply via email to