On Thu, 22 Nov 2001, John Levon wrote:

> is getInset still failing to find insets after a par->isInset returns true ?
>
> There is still a lot of code that checks getInset return is non-null before
> using it, and it looks ugly.
>
> How old is the code that could cause this to happen; is it still there ?

Good questions.

I did manage to get an abort() in getInset from the
        lyx::Assert(pos < size())

I'm not if this is my newest changes triggering something else or
what.  I think I'll still commit them anyway because they appear to
work correctly.

I couldn't find anything useful when trying to debug it.  And I'm not
even sure what I did to trigger it because I had opened the Documents
menu and then selected some file and the menu was only partly cleared
and then I thought "I'll click it again and see what happens."

The mouse must have been over an inset, probably a figure float, when
I clicked on what was the partly cleared Documents menu.

Result:

Program received signal SIGABRT, Aborted.
0x0036f2d1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x0036f2d1 in kill () from /lib/libc.so.6
#1  0x0036f0d5 in raise () from /lib/libc.so.6
#2  0x00370703 in abort () from /lib/libc.so.6
#3  0x0819f0ab in Letext () at abort.C:9
#4  0x080bd065 in Paragraph::getInset (this=0x83e83d8, pos=63) at support/LAssert.h:24
#5  0x08132c91 in InsetText::lockInsetInInset (this=0x83df040, bv=0x82aa2b0, 
inset=0x83defe8) at insettext.C:779
#6  0x0813a3ad in InsetCollapsable::lockInsetInInset (this=0x83defe8, bv=0x82aa2b0, 
in=0x83defe8) at insetcollapsable.C:434
#7  0x08051554 in BufferView::lockInset (this=0x82aa2b0, inset=0x83defe8) at 
BufferView2.C:405
#8  0x08139dfd in InsetCollapsable::edit (this=0x83defe8, bv=0x82aa2b0, xp=159, yp=0, 
button=0) at insetcollapsable.C:249
#9  0x08056053 in BufferView::Pimpl::insetWakeup (this=0x82aa410) at 
BufferView_pimpl.C:1236
#10 0x080533f0 in BufferView::Pimpl::buffer (this=0x82aa410, b=0x82d4710) at 
BufferView_pimpl.C:212
#11 0x0804fc59 in BufferView::buffer (this=0x82aa2b0, b=0x82d4710) at BufferView.C:70
#12 0x080abebd in LyXFunc::dispatch (this=0x82761d0, ac=655, 
do_not_use_this_arg=@0xbffff57c) at lyxfunc.C:1282
#13 0x0818203a in Menubar::Pimpl::MenuCallback (ob=0x82a5a50, button=1) at 
Menubar_pimpl.C:575
#14 0x0817ed86 in C_Menubar_Pimpl_MenuCallback (ob=0x82a5a50, button=1) at 
Menubar_pimpl.C:79
#15 0x001568bf in fl_object_qread () from /usr/local/lib/libforms.so.0.88
#16 0x00164b79 in fl_check_forms () from /usr/local/lib/libforms.so.0.88
#17 0x081436fd in GUIRunTime::runTime () at GUIRunTime.C:86
#18 0x080a14b8 in LyXGUI::runTime (this=0x8265e68) at lyx_gui.C:315
#19 0x080a2518 in LyX::LyX (this=0xbffff6f0, argc=0xbffff710, argv=0xbffff774) at 
../src/lyx_main.C:176
#20 0x080ba9f1 in main (argc=1, argv=0xbffff774) at ../src/main.C:38
#21 0x0035e1f0 in __libc_start_main () from /lib/libc.so.6


Allan. (ARRae)

Reply via email to