On Dec 1, 2006, at 4:37 PM, Jean-Marc Lasgouttes wrote:

"Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes:

Bennett> Well, it compiles now, but LyX on startup. Here's the
Bennett> backtrace:

Try this one instead.

That doesn't crash on startup like before, but things aren't as they should be. Here are 4 items, all of which I believe are caused by this patch. (Note that I have just upgraded to Qt-4.2.2, but I don't notice any difference between 4.2.1 and 4.2.2.)

1. Accelerator keys are not displayed in menus. (I could swear I saw them once, but I could never bring them back to confirm.) The Preferences and About LyX items start off under the LyX menu (where they should be), but as soon as the File menu is opened, they appear under the File menu, and under the LyX menu Preferences appears but is grayed out and About LyX has disappeared.

2. Selecting either Preferences or About LyX (from either the LyX or File menus) results in a crash. Here's the backtrace:

action: 236468448 is not known.
Assertion triggered in bool lyx::LyXAction::funcHasFlag (lyx::kb_action, lyx::LyXAction::func_attrib) const by failing check "false" in file LyXAction.C:424

Program received signal SIGABRT, Aborted.
0x9003d1dc in kill ()
(gdb) bt
#0  0x9003d1dc in kill ()
#1  0x9010f2af in raise ()
#2  0x9010de02 in abort ()
#3  0x0010fd05 in lyx::support::abort () at abort.C:25
#4 0x0001f211 in lyx::LyXAction::funcHasFlag (this=0xa24560, action=236468448, flag=NoBuffer) at LyXAction.C:424 #5 0x00075e49 in lyx::LyXFunc::getStatus (this=0xe1193c0, [EMAIL PROTECTED]) at lyxfunc.C:415 #6 0x0007780d in lyx::LyXFunc::dispatch (this=0xe1193c0, [EMAIL PROTECTED]) at lyxfunc.C:753
#7  0x00068054 in lyx::dispatch ([EMAIL PROTECTED]) at lyx_main.C:1362
#8 0x005285ed in lyx::frontend::Action::qt_metacall (this=0x1a02ea70, _c=InvokeMetaMethod, _id=19, _a=0xbfffe600) at Action.C:95
#9  0x001db183 in QMetaObject::activate () at QLImage.C:173
#10 0x002396a7 in QAction::activate () at Dialogs.C:320
#11 0x002caa74 in qt_mac_activate_action () at InsetMathString.C:33
#12 0x002cace3 in qt_mac_menu_event () at InsetMathString.C:33
#13 0x92dc886b in DispatchEventToHandlers ()
#14 0x92dc7f10 in SendEventToEventTargetInternal ()
#15 0x92dcf1f0 in SendEventToEventTarget ()
#16 0x92e4faf1 in SendHICommandEvent ()
#17 0x92e8375a in ProcessHICommandWithContextAndModifiers ()
#18 0x92e83704 in SendMenuItemSelectedEvent ()
#19 0x92e8361c in FinishMenuSelection ()
#20 0x92e68485 in MenuSelectCore ()
#21 0x92e67f26 in MenuSelect ()
#22 0x001be708 in QApplicationPrivate::do_mouse_down () at /usr/ include/c++/4.0.0/iostream:76 #23 0x001c02be in QApplicationPrivate::globalEventProcessor () at / usr/include/c++/4.0.0/iostream:76
#24 0x92dc886b in DispatchEventToHandlers ()
#25 0x92dc7f10 in SendEventToEventTargetInternal ()
#26 0x92dcf1f0 in SendEventToEventTarget ()
#27 0x92dcfc0d in ToolboxEventDispatcherHandler ()
#28 0x92dc8c22 in DispatchEventToHandlers ()
#29 0x92dc7f10 in SendEventToEventTargetInternal ()
#30 0x92dcf1f0 in SendEventToEventTarget ()
#31 0x001ba3ac in qt_mac_send_event () at /usr/include/c++/4.0.0/ iostream:76 #32 0x002bfb67 in QEventDispatcherMac::processEvents () at InsetMathString.C:33
#33 0x002d7d86 in QEventLoop::processEvents () at InsetMathString.C:33
#34 0x002d7ebb in QEventLoop::exec () at InsetMathString.C:33
#35 0x001c56ad in QCoreApplication::exec () at /usr/include/c++/4.0.0/ iostream:76 #36 0x0006cad3 in lyx::LyX::exec (this=0xbffff954, [EMAIL PROTECTED], argv=0xbffff9e4) at lyx_main.C:403
#37 0x00002f13 in main (argc=1, argv=0xbffff9e4) at main.C:48



3. Resizing the LyX window and then quitting results in a crash. Here's the backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x2e2e2e59
0x000f6948 in lyx::to_utf8 ([EMAIL PROTECTED]) at docstring.C:89
89                      ucs4_to_utf8(ucs4.data(), ucs4.size());
(gdb) bt
#0  0x000f6948 in lyx::to_utf8 ([EMAIL PROTECTED]) at docstring.C:89
#1 0x0007776d in lyx::LyXFunc::dispatch (this=0xe1193c0, [EMAIL PROTECTED]) at lyxfunc.C:739
#2  0x00068054 in lyx::dispatch ([EMAIL PROTECTED]) at lyx_main.C:1362
#3 0x005285ed in lyx::frontend::Action::qt_metacall (this=0xe1813e0, _c=InvokeMetaMethod, _id=19, _a=0xbfffec30) at Action.C:95
#4  0x001db183 in QMetaObject::activate () at QLImage.C:173
#5  0x002396a7 in QAction::activate () at Dialogs.C:320
#6  0x002caa74 in qt_mac_activate_action () at InsetMathString.C:33
#7  0x002cace3 in qt_mac_menu_event () at InsetMathString.C:33
#8  0x92dc886b in DispatchEventToHandlers ()
#9  0x92dc7f10 in SendEventToEventTargetInternal ()
#10 0x92dcf1f0 in SendEventToEventTarget ()
#11 0x92e4faf1 in SendHICommandEvent ()
#12 0x92e8375a in ProcessHICommandWithContextAndModifiers ()
#13 0x92e83704 in SendMenuItemSelectedEvent ()
#14 0x92ea268a in CompatibilityMenuBarEventHandler ()
#15 0x92dc886b in DispatchEventToHandlers ()
#16 0x92dc7f10 in SendEventToEventTargetInternal ()
#17 0x92dc7dd5 in SendEventToEventTargetWithOptions ()
#18 0x92dcf834 in ToolboxEventDispatcherHandler ()
#19 0x92dc8c22 in DispatchEventToHandlers ()
#20 0x92dc7f10 in SendEventToEventTargetInternal ()
#21 0x92dcf1f0 in SendEventToEventTarget ()
#22 0x001ba3ac in qt_mac_send_event () at /usr/include/c++/4.0.0/ iostream:76 #23 0x002bfb67 in QEventDispatcherMac::processEvents () at InsetMathString.C:33
#24 0x002d7d86 in QEventLoop::processEvents () at InsetMathString.C:33
#25 0x002d7ebb in QEventLoop::exec () at InsetMathString.C:33
#26 0x001c56ad in QCoreApplication::exec () at /usr/include/c++/4.0.0/ iostream:76 #27 0x0006cad3 in lyx::LyX::exec (this=0xbffff954, [EMAIL PROTECTED], argv=0xbffff9e4) at lyx_main.C:403
#28 0x00002f13 in main (argc=1, argv=0xbffff9e4) at main.C:48



4. Opening a new document, typing a few characters, and then closing brings up the "Do you want to save" dialog. Clicking on the "Discard" button causes a crash. Here's the backtrace:

QPixmap::operator=: Cannot assign to pixmap during painting
QCoreGraphicsPaintEngine::begin: Painter already active
QPainter::begin(): Returned false

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x001cadf7 in QFont::QFont () at QLImage.C:173
173     }
(gdb) bt
#0  0x001cadf7 in QFont::QFont () at QLImage.C:173
#1  0x0030c067 in QPainter::setFont () at GraphicsCacheItem.C:196
#2 0x002e7fc5 in lyx::frontend::GuiWorkArea::doGreyOut (this=0xe169600, [EMAIL PROTECTED]) at GuiWorkArea.C:503 #3 0x002e825d in lyx::frontend::GuiWorkArea::expose (this=0xe169600, x=1, y=1, w=1, h=1) at GuiWorkArea.C:528 #4 0x001afdd9 in lyx::frontend::WorkArea::redraw (this=0xe169614) at WorkArea.C:139 #5 0x001afcd6 in lyx::frontend::WorkArea::resizeBufferView (this=0xe169614) at WorkArea.C:227 #6 0x002e72ea in lyx::frontend::GuiWorkArea::resizeEvent (this=0xe169600, ev=0xbfffd4e4) at GuiWorkArea.C:452
#7  0x001e30d4 in QWidget::event () at QLImage.C:173
#8  0x0023241c in QFrame::event () at Dialogs.C:320
#9  0x0021958f in QAbstractScrollArea::viewportEvent () at Dialogs.C:320
#10 0x006a84ea in QAbstractScrollAreaPrivate::viewportEvent () at ../../../boost/boost/detail/sp_counted_impl.hpp:55 #11 0x006a851a in QAbstractScrollAreaFilter::eventFilter () at ../../../boost/boost/detail/sp_counted_impl.hpp:55 #12 0x001687ba in QApplicationPrivate::notify_helper () at mailinset.C:38
#13 0x0016dd1f in QApplication::notify () at mailinset.C:38
#14 0x00279823 in QWidgetPrivate::setGeometry_sys () at Dialogs.C:320
#15 0x001e27ba in QWidget::setGeometry () at QLImage.C:173
#16 0x0021adb6 in QAbstractScrollAreaPrivate::layoutChildren () at Dialogs.C:320 #17 0x002e7aec in lyx::frontend::GuiWorkArea::doGreyOut (this=0xe169600, [EMAIL PROTECTED]) at GuiWorkArea.C:465 #18 0x002e825d in lyx::frontend::GuiWorkArea::expose (this=0xe169600, x=1, y=1, w=1, h=1) at GuiWorkArea.C:528 #19 0x001afdd9 in lyx::frontend::WorkArea::redraw (this=0xe169614) at WorkArea.C:139 #20 0x006715df in boost::_bi::bind_t<void, boost::_mfi::mf1<void, lyx::LyXView, lyx::Buffer*>, boost::_bi::list2<boost::_bi::value<lyx::LyXView*>, boost::_bi::value<lyx::Buffer*> > >::operator() (this=0x1a09ec70) at ../../boost/boost/bind/bind_template.hpp:20 #21 0x005fdd5b in boost::function0<void, std::allocator<void> >::operator() (this=0x1a09ec54) at ../boost/boost/function/ function_template.hpp:692 #22 0x005fdd7c in boost::signals::detail::call_bound0<void>::caller<boost::function<void ( )(), std::allocator<void> > >::operator() <boost::signals::detail::connection_slot_pair> (this=0xbfffdba4, [EMAIL PROTECTED]) at ../boost/boost/signals/signal_template.hpp:119 #23 0x005ff0b9 in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_ bound0<void>::caller<boost::function<void ()(), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator>::dereference (this=0xbfffdb84) at ../boost/boost/signals/detail/ slot_call_iterator.hpp:61 #24 0x0060425a in boost::operator+ +<boost::signals::detail::slot_call_iterator<boost::signals::detail::cal l_bound0<void>::caller<boost::function<void ()(), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator>, boost::signals::detail::unusable, boost::single_pass_traversal_tag, boost::signals::detail::unusable const&, int> ([EMAIL PROTECTED]) at ../ boost/boost/iterator/iterator_facade.hpp:144 #25 0x00604378 in boost::last_value<void>::operator() <boost::signals::detail::slot_call_iterator<boost::signals::detail::call _bound0<void>::caller<boost::function<void ()(), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator> > (this=0x1a06ab64, [EMAIL PROTECTED], [EMAIL PROTECTED]) at ../boost/ boost/last_value.hpp:43 #26 0x00608e99 in boost::signal0<void, boost::last_value<void>, int, std::less<int>, boost::function<void ()(), std::allocator<void> > >::operator() (this=0x1a06e67c) at ../boost/boost/signals/ signal_template.hpp:354
#27 0x00028d90 in lyx::Buffer::~Buffer (this=0x1a06e5f0) at buffer.C:230
#28 0x000376f7 in lyx::BufferList::release (this=0xe1193e8, buf=0x1a06e5f0) at bufferlist.C:179 #29 0x00039203 in lyx::BufferList::close (this=0xe1193e8, buf=0x1a06e5f0, ask=1) at bufferlist.C:240 #30 0x00072492 in lyx::LyXFunc::closeBuffer (this=0xe1193c0) at lyxfunc.C:2005 #31 0x0007844f in lyx::LyXFunc::dispatch (this=0xe1193c0, [EMAIL PROTECTED]) at lyxfunc.C:832 #32 0x0007fe8d in lyx::LyXFunc::processKeySym (this=0xe1193c0, [EMAIL PROTECTED], state=ctrl) at lyxfunc.C:342 #33 0x001b0447 in lyx::frontend::WorkArea::processKeySym (this=0xe169614, [EMAIL PROTECTED], state=ctrl) at WorkArea.C:179 #34 0x002e872f in lyx::frontend::GuiWorkArea::keyPressEvent (this=0xe169600, e=0xbfffece0) at GuiWorkArea.C:426
#35 0x001e31be in QWidget::event () at QLImage.C:173
#36 0x0023241c in QFrame::event () at Dialogs.C:320
#37 0x0021bfef in QAbstractScrollArea::event () at Dialogs.C:320
#38 0x00168806 in QApplicationPrivate::notify_helper () at mailinset.C:38
#39 0x0016de41 in QApplication::notify () at mailinset.C:38
#40 0x001be5ec in qt_sendSpontaneousEvent () at /usr/include/c++/ 4.0.0/iostream:76
#41 0x002b77ff in QKeyMapper::sendKeyEvent () at InsetMathString.C:33
#42 0x002b88ac in QKeyMapperPrivate::translateKeyEvent () at InsetMathString.C:33 #43 0x001c0d90 in QApplicationPrivate::globalEventProcessor () at / usr/include/c++/4.0.0/iostream:76
#44 0x92dc886b in DispatchEventToHandlers ()
#45 0x92dc7f10 in SendEventToEventTargetInternal ()
#46 0x92dc7dd5 in SendEventToEventTargetWithOptions ()
#47 0x92dcf858 in ToolboxEventDispatcherHandler ()
#48 0x92dc8c22 in DispatchEventToHandlers ()
#49 0x92dc7f10 in SendEventToEventTargetInternal ()
#50 0x92dcf1f0 in SendEventToEventTarget ()
#51 0x001ba3ac in qt_mac_send_event () at /usr/include/c++/4.0.0/ iostream:76 #52 0x002bfb67 in QEventDispatcherMac::processEvents () at InsetMathString.C:33
#53 0x002d7d86 in QEventLoop::processEvents () at InsetMathString.C:33
#54 0x002d7ebb in QEventLoop::exec () at InsetMathString.C:33
#55 0x001c56ad in QCoreApplication::exec () at /usr/include/c++/4.0.0/ iostream:76 #56 0x0006cad3 in lyx::LyX::exec (this=0xbffff954, [EMAIL PROTECTED], argv=0xbffff9e4) at lyx_main.C:403
#57 0x00002f13 in main (argc=1, argv=0xbffff9e4) at main.C:48



Bennett

Reply via email to