On Sun, 3 Dec 2006 22:37:08 -0600
 "Bo Peng" <[EMAIL PROTECTED]> wrote:
An updated patch has just been submitted. Enjoy!

Bennett: if this patch poses a severe performance problem for mac, I
will disable mouse-tracking for mac.

I'm not sure what would constitute a severe performance problem here. If I create a document filled with insets, I can by moving the mouse around drive the CPU usage up to 100% of one core on my Intel Mac. Nonetheless, I don't notice a penalty in normal use. (I still need to take a look at what happens on PPC Mac -- and not only just for this. I probably won't be able to get to this for a few weeks, though.)

In testing, however, I found a reproducible crash: create a LyX Note, and collapse it. Then duplicate it until the LyX window is full of them. Then randomly open and close these Note insets, and LyX will eventually crash. Here's the backtrace:

Assertion triggered in void lyx::LyXText::dispatch(lyx::LCursor&, lyx::FuncRequest&) by failing check "cur.text() == this" in file text3.C:323
LyX: Attempting to save document newfile2.lyx
 /Users/bennett/newfile2.lyx.emergency
  Save seems successful. Phew.

Program received signal SIGABRT, Aborted.
0x9003d1dc in kill ()
(gdb) bt
#0  0x9003d1dc in kill ()
#1  0x9010f2af in raise ()
#2  0x9010de02 in abort ()
#3  0x001117a5 in lyx::support::abort () at abort.C:25
#4 0x000d4dfc in lyx::LyXText::dispatch (this=0x1aa46af8, [EMAIL PROTECTED], [EMAIL PROTECTED]) at text3.C:323 #5 0x0014d483 in lyx::InsetNote::doDispatch (this=0x1aa46ad0, [EMAIL PROTECTED], [EMAIL PROTECTED]) at insetnote.C:228 #6 0x000052ae in lyx::BufferView::workAreaDispatch (this=0xe172660, [EMAIL PROTECTED]) at BufferView.C:1085 #7 0x001b1fb5 in lyx::frontend::WorkArea::dispatch (this=0xe169404, [EMAIL PROTECTED]) at WorkArea.C:198 #8 0x002e9255 in lyx::frontend::GuiWorkArea::mouseReleaseEvent (this=0xe1693f0, e=0xbfffec7c) at GuiWorkArea.C:321
#9  0x001e4b28 in QWidget::event () at QLImage.C:173
#10 0x00233d98 in QFrame::event () at Dialogs.C:320
#11 0x0021af0b in QAbstractScrollArea::viewportEvent () at Dialogs.C:320 #12 0x006a39ae in QAbstractScrollAreaPrivate::viewportEvent () at ../../../boost/boost/detail/sp_counted_impl.hpp:55 #13 0x006a39de in QAbstractScrollAreaFilter::eventFilter () at ../../../boost/boost/detail/sp_counted_impl.hpp:55 #14 0x0016a226 in QApplicationPrivate::notify_helper () at mailinset.C:38 #15 0x0016fbde in QApplication::notify () at mailinset.C:38 #16 0x001c252b in QApplicationPrivate::globalEventProcessor () at /usr/include/c++/4.0.0/iostream:76
#17 0x92dc886b in DispatchEventToHandlers ()
#18 0x92dc7f10 in SendEventToEventTargetInternal ()
#19 0x92dcf1f0 in SendEventToEventTarget ()
#20 0x0027abf8 in QWidgetPrivate::qt_window_event () at Dialogs.C:320
#21 0x92dc886b in DispatchEventToHandlers ()
#22 0x92dc7f10 in SendEventToEventTargetInternal ()
#23 0x92dcf1f0 in SendEventToEventTarget ()
#24 0x92dcf683 in ToolboxEventDispatcherHandler ()
#25 0x92dc8c22 in DispatchEventToHandlers ()
#26 0x92dc7f10 in SendEventToEventTargetInternal ()
#27 0x92dcf1f0 in SendEventToEventTarget ()
#28 0x001bbde4 in qt_mac_send_event () at /usr/include/c++/4.0.0/iostream:76 #29 0x002c14eb in QEventDispatcherMac::processEvents () at InsetMathString.C:33 #30 0x002d970a in QEventLoop::processEvents () at InsetMathString.C:33 #31 0x002d983f in QEventLoop::exec () at InsetMathString.C:33 #32 0x001c70e5 in QCoreApplication::exec () at /usr/include/c++/4.0.0/iostream:76 #33 0x0006dbaf in lyx::LyX::exec (this=0xbffff954, [EMAIL PROTECTED], argv=0xbffff9e4) at lyx_main.C:396 #34 0x00003193 in main (argc=1, argv=0xbffff9e4) at main.C:48


Bennett

Reply via email to