Assertion when selecting large table in User Guide on master
Scott Kostyshak
skostysh at lyx.org
Tue Jul 2 15:44:59 UTC 2024
On Mon, Jul 01, 2024 at 11:39:36PM GMT, Richard Kimberly Heck wrote:
> No backtrace!
>
> On 7/1/24 11:27 PM, Scott Kostyshak wrote:
> > On Tue, Jul 02, 2024 at 12:12:07AM GMT, Jean-Marc Lasgouttes wrote:
> > > Le 28/06/2024 à 18:15, Scott Kostyshak a écrit :
> > > > > Does this patch help?
> > > > It does not seem to help. I still get the assertion.
> > > This one should be better.
> > I no longer get the assertion in that place. But if I work a bit harder
> > and drag the selection up and down, eventually I get an assertion.
> > Backtrace attached (this was while testing the patch).
Oops, sorry about that. Backtrace now attached.
The way I reproduce is just drag selection with my mouse up and down, up
and down in the User Guide. It usually just takes a few seconds.
Scott
-------------- next part --------------
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=<optimized out>, signo=signo at entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff604526e in __GI_raise (sig=sig at entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007ffff60288ff in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055555591318f in lyx::lyx_exit (exit_code=1) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:263
#6 0x0000555555a567a0 in boost::assertion_failed (expr=0x5555561ba999 "false", function=0x5555561d75b3 "void lyx::doAssertWithCallstack(bool)",
file=0x5555561d75d9 "/home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp", line=45) at /home/scott/lyxbuilds/master-master/repo/src/boost.cpp:47
#7 0x0000555556172b2b in lyx::doAssertWithCallstack (value=false) at /home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:45
#8 0x00005555561732ce in lyx::doAssert (expr=0x5555561a1f3b "hasPosition()", file=0x5555561a1f49 "/home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp", line=71)
at /home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:54
#9 0x00005555559830a3 in lyx::ParagraphMetrics::position (this=0x555558719ba8) at /home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp:71
#10 0x00005555557b7a7a in lyx::BufferView::getPos (this=0x5555581c4fc0, dit=...) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3431
#11 0x00005555557cdb3f in lyx::BufferView::caretPosAndDim (this=0x5555581c4fc0, p=..., dim=...) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3463
#12 0x00005555557ce6a9 in lyx::BufferView::caretInView (this=0x5555581c4fc0) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3557
#13 0x0000555555e4b53d in lyx::frontend::GuiWorkArea::Private::resetCaret (this=0x555557155700) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:493
#14 0x0000555555e4b408 in lyx::frontend::GuiWorkArea::scheduleRedraw (this=0x555558312b20, update_metrics=false)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:368
#15 0x0000555555db8145 in lyx::frontend::WorkAreaManager::redrawAll (this=0x55555756c940, update_metrics=false)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/WorkAreaManager.cpp:41
#16 0x000055555570a69a in lyx::Buffer::changed (this=0x55555739ab40, update_metrics=false) at /home/scott/lyxbuilds/master-master/repo/src/Buffer.cpp:696
#17 0x0000555555e4dc76 in lyx::frontend::GuiWorkArea::generateSyntheticMouseEvent (this=0x555558312b20) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:1010
#18 0x0000555555e56df8 in lyx::frontend::GuiWorkArea::init()::$_0::operator()() const (this=0x5555583b24c0) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:196
#19 0x0000555555e56dd5 in std::__invoke_impl<void, lyx::frontend::GuiWorkArea::init()::$_0&>(std::__invoke_other, lyx::frontend::GuiWorkArea::init()::$_0&) (__f=...)
at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:61
#20 0x0000555555e56d85 in std::__invoke_r<void, lyx::frontend::GuiWorkArea::init()::$_0&>(lyx::frontend::GuiWorkArea::init()::$_0&) (__fn=...)
at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/invoke.h:111
#21 0x0000555555e56c9d in std::_Function_handler<void (), lyx::frontend::GuiWorkArea::init()::$_0>::_M_invoke(std::_Any_data const&) (__functor=...)
at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:290
#22 0x0000555555d9ad85 in std::function<void ()>::operator()() const (this=0x5555583b24c0) at /usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/std_function.h:591
#23 0x0000555555d9ac2c in nod::signal_type<nod::multithread_policy, void ()>::operator()() const (this=0x5555571557b8) at /home/scott/lyxbuilds/master-master/repo/3rdparty/nod/nod.hpp:442
#24 0x000055555615da46 in lyx::Timeout::emit (this=0x5555571557b8) at /home/scott/lyxbuilds/master-master/repo/src/support/Timeout.cpp:127
#25 0x000055555615e65d in lyx::Timeout::Impl::timerEvent (this=0x5555581bf5f0) at /home/scott/lyxbuilds/master-master/repo/src/support/Timeout.cpp:50
#26 0x00007ffff6b0624b in QObject::event (this=0x5555581bf5f0, e=0x7fffffffc4e0) at kernel/qobject.cpp:1369
#27 0x00007ffff776bd45 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5555581bf5f0, e=0x7fffffffc4e0) at kernel/qapplication.cpp:3640
#28 0x0000555555dd42c1 in lyx::frontend::GuiApplication::notify (this=0x555556586310, receiver=0x5555581bf5f0, event=0x7fffffffc4e0)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3022
#29 0x00007ffff6ad8118 in QCoreApplication::notifyInternal2 (receiver=0x5555581bf5f0, event=0x7fffffffc4e0) at kernel/qcoreapplication.cpp:1064
#30 0x00007ffff6ad8332 in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#31 0x00007ffff6b345ab in QTimerInfoList::activateTimers (this=0x555556637550) at kernel/qtimerinfo_unix.cpp:643
#32 0x00007ffff6b34f11 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:183
#33 idleTimerSourceDispatch (source=source at entry=0x5555566375a0) at kernel/qeventdispatcher_glib.cpp:230
#34 0x00007ffff63145b5 in g_main_dispatch (context=0x7fffec000ed0) at ../../../glib/gmain.c:3344
#35 0x00007ffff6373717 in g_main_context_dispatch_unlocked (context=0x7fffec000ed0) at ../../../glib/gmain.c:4152
#36 g_main_context_iterate_unlocked.isra.0 (context=context at entry=0x7fffec000ed0, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at ../../../glib/gmain.c:4217
#37 0x00007ffff6313a53 in g_main_context_iteration (context=0x7fffec000ed0, may_block=1) at ../../../glib/gmain.c:4282
#38 0x00007ffff6b35279 in QEventDispatcherGlib::processEvents (this=0x55555663eac0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#39 0x00007ffff6ad6a7b in QEventLoop::exec (this=this at entry=0x7fffffffc740, flags=..., flags at entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#40 0x00007ffff6adf3e8 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#41 0x0000555555dd2893 in lyx::frontend::GuiApplication::exec (this=0x555556586310) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:2785
#42 0x0000555555913b36 in lyx::LyX::exec (this=0x7fffffffca90, argc=@0x7fffffffcaa8: 2, argv=0x7fffffffcbd8) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:377
#43 0x0000555555aaeb63 in main (argc=2, argv=0x7fffffffcbd8) at /home/scott/lyxbuilds/master-master/repo/src/main.cpp:55
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240702/76fe1ef4/attachment.asc>
More information about the lyx-devel
mailing list