On Thu, Dec 2, 2010 at 10:04 PM, Vincent van Ravesteijn <v...@lyx.org> wrote:
> On Thu, Dec 2, 2010 at 2:43 PM, John McCabe-Dansted <gma...@gmail.com> wrote:
>> Keycodes:
>> '''\Af\C\[Left]\Am\Av\Af\Ay'''\[!Loop]\Af
>> To reproduce:
>> 1)  Press Alt-H, M to open the Math Guide. (KK: \Af) (KK: \C\[Left]) (KK: 
>> \Am)
>> 2)  Press Alt-V, F, Y to view LyXHTML (KK: \Av\Af\Ay)
>>
>> Regression in: r36603
>>
>
> I think the ASSERT is bogus.
>
> counters....@573:
> -LASSERT(!layout_stack_.empty(), return);
> +if(layout_stack_.empty())
> +       return;
>
> will fix it.

Perhaps, but it seems to be related to problems elsewhere. I have
difficulty reproducing the following bug, but it seems to indicate the
LyX has difficulty with the empty container.
http://gmatht.homelinux.net/xp/keytest/html_out/out/t10//html/1291158147.html

\Ahu\C'\AJ\Ai}F\An4\[Right]+\Ah\S\[Right]\AeX\[!Loop]\Ah

/usr/include/c++/4.4/debug/deque:376:error: attempt to access an element in
    an empty container.
Objects involved in the operation:
sequence "this" @ 0x0x1c8dad0 {
  type = NSt7__debug5dequeISbIwSt11char_traitsIwESaIwEESaIS4_EEE;
[New Thread 0x7fffe5bf8710 (LWP 760)]
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffe5bf8710 (LWP 760)]
0x00007ffff51dfa75 in *__GI_raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
(gdb) #0  0x00007ffff51dfa75 in *__GI_raise (sig=<value optimised out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
cpp abort.c
#1  0x00007ffff51e35c0 in *__GI_abort () at abort.c:92
#2  0x00007ffff5c4b63d in __gnu_debug::_Error_formatter::_M_error() const ()
  from /usr/lib/libstdc++.so.6
#3  0x00000000007d16f2 in
std::__debug::deque<std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >,
std::allocator<std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> > > >::pop_back()
    ()
#4  0x0000000000c49ccc in lyx::Counters::restoreLastCounter (this=0x285e140,
    it=<value optimised out>, utype=lyx::OutputUpdate) at ./Counters.h:183
#5  lyx::InsetWrap::updateBuffer (this=0x285e140, it=<value optimised out>,
    utype=lyx::OutputUpdate) at insets/InsetWrap.cpp:137
#6  0x0000000000731bb5 in lyx::Buffer::updateBuffer (
    this=<value optimised out>, parit=..., utype=<value optimised out>)
cpp Buffer.cpp
    at Buffer.cpp:4073
#7  0x000000000073ed25 in lyx::Buffer::updateBuffer (this=0x26b50e0,
    scope=lyx::Buffer::UpdateMaster, utype=<value optimised out>)
cpp Buffer.cpp
    at Buffer.cpp:3831
#8  0x000000000073efd3 in lyx::Buffer::writeLyXHTMLSource (this=0x26b50e0,
cpp Buffer.cpp
    os=..., runparams=..., only_body=<value optimised out>) at Buffer.cpp:1596
#9  0x000000000073f3e6 in lyx::Buffer::makeLyXHTMLFile (this=0x26b50e0,
cpp Buffer.cpp

-- 
John C. McCabe-Dansted

Reply via email to