On Sep 19, 2005, at 8:36 AM, Jean-Marc Lasgouttes wrote:

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


Bennett> On Sep 15, 2005, at 10:05 AM, Jean-Marc Lasgouttes wrote:

 A question: does the crash only happen when there is no document
open, or all the time?


Bennett> Only when there's no document open.

Good. Does the following patch help?

Doesn't seem to. (See below.)

Bennett

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x00169d80 in (anonymous namespace)::encode ([EMAIL PROTECTED], [EMAIL PROTECTED]) at QLyXKeySym.C:59
59              if (!codec->canEncode(str)) {
(gdb) bt
#0 0x00169d80 in (anonymous namespace)::encode ([EMAIL PROTECTED], [EMAIL PROTECTED]) at QLyXKeySym.C:59 #1 0x0016af9c in QLyXKeySym::getISOEncoded (this=0xf46fad0, [EMAIL PROTECTED]) at QLyXKeySym.C:200 #2 0x00064984 in LyXFunc::processKeySym (this=0xb950110, keysym={px = 0xbfffe300, pn = {pi_ = 0x0}}, state=ctrl) at ../boost/boost/ shared_ptr.hpp:252 #3 0x00009b74 in BufferView::Pimpl::workAreaKeyPress (this=0xb950870, key=Cannot access memory at address 0x0
) at frontends/LyXView.h:83
#4 0x00652564 in boost::detail::function::void_function_obj_invoker2<boost::_bi::bind_t<v oid, boost::_mfi::mf2<void, BufferView::Pimpl, boost::shared_ptr<LyXKeySym>, key_modifier::state>, boost::_bi::list3<boost::_bi::value<BufferView::Pimpl*>, boost::arg<1>, boost::arg<2> > >, void, boost::shared_ptr<LyXKeySym>, key_modifier::state>::invoke (function_obj_ptr={obj_ptr = 0x0, const_obj_ptr = 0x0, func_ptr = 0, data = ""}, a0=Cannot access memory at address 0x0
) at ../boost/boost/detail/shared_count.hpp:124
#5 0x00879d70 in boost::function2<void, boost::shared_ptr<LyXKeySym>, key_modifier::state, std::allocator<void> >::operator() () at ../../../boost/boost/ function/function_template.hpp:581 #6 0x008799a8 in boost::signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXK eySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >::operator() <boost::signals::detail::connection_slot_pair> (this=0xbfffe798, [EMAIL PROTECTED]) at ../../../boost/boost/signals/signal_template.hpp:119 #7 0x00879690 in boost::signals::detail::slot_call_iterator<boost::signals::detail::call_ bound2<void>::caller<boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator>::dereference (this=0xbfffe790) at ../../../boost/boost/signals/detail/ slot_call_iterator.hpp:68 #8 0x008791b0 in boost::iterator_core_access::dereference<boost::signals::detail::slot_ca ll_iterator<boost::signals::detail::call_bound2<void>::caller<boost::sha red_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator> > ([EMAIL PROTECTED]) at ../../../boost/boost/iterator/iterator_facade.hpp:516 #9 0x00878b10 in boost::iterator_facade<boost::signals::detail::slot_call_iterator<boost: :signals::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym> , key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), 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>::operator* (this=0xbfffe790) at ../../../boost/boost/iterator/ iterator_facade.hpp:634 #10 0x0087814c in boost::detail::postfix_increment_proxy<boost::signals::detail::slot_call _iterator<boost::signals::detail::call_bound2<void>::caller<boost::share d_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator> >::postfix_increment_proxy (this=0xbfffe6f0, [EMAIL PROTECTED]) at ../../../boost/boost/iterator/iterator_facade.hpp:144 #11 0x00878114 in boost::detail::postfix_increment_proxy<boost::signals::detail::slot_call _iterator<boost::signals::detail::call_bound2<void>::caller<boost::share d_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator> >::postfix_increment_proxy (this=0xbfffe6f0, [EMAIL PROTECTED]) at ../../../boost/boost/iterator/iterator_facade.hpp:144 #12 0x0087786c in boost::operator+ +<boost::signals::detail::slot_call_iterator<boost::signals::detail::cal l_bound2<void>::caller<boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), 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:732 #13 0x00876c64 in boost::last_value<void>::operator() <boost::signals::detail::slot_call_iterator<boost::signals::detail::call _bound2<void>::caller<boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator> > (this=0xb94c7b4, first= {<iterator_facade<boost::signals::detail::slot_call_iterator<boost::sign als::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator>,boost::signals::detail: :unusable,boost::single_pass_traversal_tag,const boost::signals::detail::unusable&,int>> = {<No data fields>}, iter = {<iterator_facade<boost::signals::detail::named_slot_map_iterator,boost: :signals::detail::connection_slot_pair,boost::forward_traversal_tag,boos t::signals::detail::connection_slot_pair&,int>> = {<No data fields>}, impl_ = {ptr = 0xb9534b0}}, end = {<iterator_facade<boost::signals::detail::named_slot_map_iterator,boost: :signals::detail::connection_slot_pair,boost::forward_traversal_tag,boos t::signals::detail::connection_slot_pair&,int>> = {<No data fields>}, impl_ = {ptr = 0xb9534c0}}, f = {args = 0xbfffe760}, cache = {px = 0x0, pn = {pi_ = 0x0}}}, last= {<iterator_facade<boost::signals::detail::slot_call_iterator<boost::sign als::detail::call_bound2<void>::caller<boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::function<void () (boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >, boost::signals::detail::named_slot_map_iterator>,boost::signals::detail: :unusable,boost::single_pass_traversal_tag,const boost::signals::detail::unusable&,int>> = {<No data fields>}, iter = {<iterator_facade<boost::signals::detail::named_slot_map_iterator,boost: :signals::detail::connection_slot_pair,boost::forward_traversal_tag,boos t::signals::detail::connection_slot_pair&,int>> = {<No data fields>}, impl_ = {ptr = 0xf4bfe00}}, end = {<iterator_facade<boost::signals::detail::named_slot_map_iterator,boost: :signals::detail::connection_slot_pair,boost::forward_traversal_tag,boos t::signals::detail::connection_slot_pair&,int>> = {<No data fields>}, impl_ = {ptr = 0xf4bfe10}}, f = {args = 0xbfffe760}, cache = {px = 0x0, pn = {pi_ = 0x0}}}) at ../../../boost/boost/last_value.hpp:43 #14 0x00875a5c in boost::signal2<void, boost::shared_ptr<LyXKeySym>, key_modifier::state, boost::last_value<void>, int, std::less<int>, boost::function<void ()(boost::shared_ptr<LyXKeySym>, key_modifier::state), std::allocator<void> > >::operator() (this=0xb9509c4, a1={px = 0xf4857c0, pn = {pi_ = 0x0}}, a2=ctrl) at ../../../boost/boost/signals/signal_template.hpp:347 #15 0x00348958 in QContentPane::keyeventTimeout (this=0xb951170) at QContentPane.C:279 #16 0x0044263c in QContentPane::qt_invoke (this=0xb951170, _id=47, _o=0xbfffe9d0) at QContentPane_moc.C:91 #17 0x001d24d4 in QObject::activate_signal () at ControlCommandBuffer.C:137 #18 0x001d23bc in QObject::activate_signal () at ControlCommandBuffer.C:137
#19 0x002ddf7c in QTimer::event () at lengthcombo.C:70
#20 0x001bb530 in QApplication::internalNotify () at GraphicsLoader.C: 172
#21 0x001bb128 in QApplication::notify () at GraphicsLoader.C:172
#22 0x0034f078 in QEventLoop::macHandleTimer () at QAskForTextDialog.C:87 #23 0x00222ff0 in QApplication::globalEventProcessor () at lcolorcache.C:40
#24 0x931288d4 in DispatchEventToHandlers ()
#25 0x9312802c in SendEventToEventTargetInternal ()
#26 0x93127ea8 in SendEventToEventTargetWithOptions ()
#27 0x9312f1ec in ToolboxEventDispatcherHandler ()
#28 0x93128b24 in DispatchEventToHandlers ()
#29 0x9312802c in SendEventToEventTargetInternal ()
#30 0x9312edb0 in SendEventToEventTarget ()
#31 0x00222794 in qt_mac_send_event () at lcolorcache.C:40
#32 0x0034ff88 in QEventLoop::processEvents () at QAskForTextDialog.C:87
#33 0x0032d0f0 in QEventLoop::enterLoop () at lengthcombo.C:70
#34 0x0032cfdc in QEventLoop::exec () at lengthcombo.C:70
#35 0x001638bc in lyx_gui::start ([EMAIL PROTECTED], [EMAIL PROTECTED]) at lyx_gui.C:253 #36 0x0005a6a8 in LyX::priv_exec (this=0xb906e60, [EMAIL PROTECTED], argv=0xbffff830) at lyx_main.C:282 #37 0x00059adc in LyX::exec ([EMAIL PROTECTED], argv=0xbffff830) at lyx_main.C:143
#38 0x00003408 in main (argc=1, argv=0xbffff830) at main.C:47
(gdb)

Reply via email to