Assertion when selecting large table in User Guide on master
Scott Kostyshak
skostysh at lyx.org
Wed Jun 26 04:25:12 UTC 2024
When I select the table with the mouse cursor (see attachment for which
table), I get the following assertion:
support/lassert.cpp (52): ASSERTION hasPosition() VIOLATED IN /home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp:71
I reproduce it by starting my mouse cursor selection in the text before
the table and then I drag down holding the selection. It aborts at the
moment in the screenshot.
Backtrace is attached.
Scott
-------------- next part --------------
support/lassert.cpp (52): ASSERTION hasPosition() VIOLATED IN /home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp:71
Thread 1 "lyx" received signal SIGABRT, Aborted.
Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/pthread_kill.c.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
warning: 44 ./nptl/pthread_kill.c: No such file or directory
(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 0x000055555591a4cf in lyx::lyx_exit (exit_code=1) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:263
#6 0x0000555555a5dae0 in boost::assertion_failed (expr=0x5555562091a8 "false", function=0x555556225de1 "void lyx::doAssertWithCallstack(bool)",
file=0x555556225e07 "/home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp", line=45) at /home/scott/lyxbuilds/master-master/repo/src/boost.cpp:47
#7 0x00005555561bfb0b in lyx::doAssertWithCallstack (value=false) at /home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:45
#8 0x00005555561c025e in lyx::doAssert (expr=0x5555561eff69 "hasPosition()", file=0x5555561eff77 "/home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp", line=71)
at /home/scott/lyxbuilds/master-master/repo/src/support/lassert.cpp:54
#9 0x000055555598a3e3 in lyx::ParagraphMetrics::position (this=0x5555588eb318) at /home/scott/lyxbuilds/master-master/repo/src/ParagraphMetrics.cpp:71
#10 0x00005555557bf556 in lyx::BufferView::singleParUpdate (this=0x555558454cb0) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:3180
#11 0x00005555557be283 in lyx::BufferView::processUpdateFlags (this=0x555558454cb0, flags=(lyx::Update::FitCursor | lyx::Update::SinglePar))
at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:570
#12 0x00005555557d1be7 in lyx::BufferView::mouseEventDispatch (this=0x555558454cb0, cmd0=...) at /home/scott/lyxbuilds/master-master/repo/src/BufferView.cpp:2781
#13 0x0000555555e69968 in lyx::frontend::GuiWorkArea::Private::dispatch (this=0x5555583d6280, cmd=...) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:430
#14 0x0000555555e6b508 in lyx::frontend::GuiWorkArea::mouseMoveEvent (this=0x555558458840, e=0x7fffffffbfd0) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiWorkArea.cpp:864
#15 0x00007ffff77d45f7 in QWidget::event (this=0x555558458840, event=0x7fffffffbfd0) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qwidget.cpp:8840
#16 0x00007ffff786522a in QFrame::event (this=0x555558458840, e=0x7fffffffbfd0) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/widgets/qframe.cpp:515
#17 0x00007ffff6935f0a in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver at entry=0x5555584586f0, event=event at entry=0x7fffffffbfd0)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qcoreapplication.cpp:1158
#18 0x00007ffff778b3a0 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5555584586f0, e=0x7fffffffbfd0)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qapplication.cpp:3309
#19 0x00007ffff77842c7 in QApplication::notify (this=<optimized out>, receiver=<optimized out>, e=0x7fffffffbfd0)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qapplication.cpp:2803
#20 0x0000555555ddd1c1 in lyx::frontend::GuiApplication::notify (this=0x5555566059e0, receiver=0x5555584586f0, event=0x7fffffffbfd0)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3022
#21 0x00007ffff6938448 in QCoreApplication::notifyInternal2 (receiver=0x5555584586f0, event=0x7fffffffbfd0)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qcoreapplication.cpp:1026
#22 0x00007ffff6938a1d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qcoreapplication.cpp:1456
#23 0x00007ffff7780d7e in QApplicationPrivate::sendMouseEvent (receiver=0x5555584586f0, event=0x7fffffffbfd0, alienWidget=0x5555584586f0, nativeWidget=0x5555568fb310,
buttonDown=0x7ffff7d32c40 <qt_button_down>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qapplication.cpp:2387
#24 0x00007ffff77e2ad7 in QWidgetWindow::handleMouseEvent (this=0x55555700e2b0, event=0x7fffffffc740) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qwidgetwindow.cpp:623
#25 0x00007ffff77e3e75 in QWidgetWindow::event (this=0x55555700e2b0, event=0x7fffffffc740) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qwidgetwindow.cpp:241
#26 0x00007ffff778b3b0 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55555700e2b0, e=0x7fffffffc740)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/widgets/kernel/qapplication.cpp:3315
#27 0x0000555555ddd1c1 in lyx::frontend::GuiApplication::notify (this=0x5555566059e0, receiver=0x55555700e2b0, event=0x7fffffffc740)
at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:3022
#28 0x00007ffff6938448 in QCoreApplication::notifyInternal2 (receiver=0x55555700e2b0, event=0x7fffffffc740)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qcoreapplication.cpp:1026
#29 0x00007ffff6938a1d in QCoreApplication::sendSpontaneousEvent (receiver=<optimized out>, event=<optimized out>)
at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qcoreapplication.cpp:1456
#30 0x00007ffff6f96de7 in QGuiApplicationPrivate::processMouseEvent (e=0x7fffec001a00) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/gui/kernel/qguiapplication.cpp:2249
#31 0x00007ffff6fe15cc in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/gui/kernel/qwindowsysteminterface.cpp:1103
#32 0x00007ffff73152b4 in userEventSourceDispatch (source=source at entry=0x5555566a8770) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/gui/platform/unix/qeventdispatcher_glib.cpp:38
#33 0x00007ffff67145b5 in g_main_dispatch (context=0x555556607610) at ../../../glib/gmain.c:3344
#34 0x00007ffff6773717 in g_main_context_dispatch_unlocked (context=0x555556607610) at ../../../glib/gmain.c:4152
#35 g_main_context_iterate_unlocked.isra.0 (context=context at entry=0x555556607610, block=block at entry=1, dispatch=dispatch at entry=1, self=<optimized out>) at ../../../glib/gmain.c:4217
#36 0x00007ffff6713a53 in g_main_context_iteration (context=0x555556607610, may_block=1) at ../../../glib/gmain.c:4282
#37 0x00007ffff6b315ef in QEventDispatcherGlib::processEvents (this=0x5555566294b0, flags=...) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#38 0x00007ffff69429a3 in QEventLoop::exec (this=0x7fffffffcb20, flags=...) at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/global/qflags.h:34
#39 0x00007ffff693b35e in QCoreApplication::exec () at /usr/src/qt6-base-6.4.2+dfsg-21.1build5/src/corelib/global/qflags.h:74
#40 0x0000555555ddb783 in lyx::frontend::GuiApplication::exec (this=0x5555566059e0) at /home/scott/lyxbuilds/master-master/repo/src/frontends/qt/GuiApplication.cpp:2785
#41 0x000055555591ae76 in lyx::LyX::exec (this=0x7fffffffce70, argc=@0x7fffffffce88: 2, argv=0x7fffffffcfb8) at /home/scott/lyxbuilds/master-master/repo/src/LyX.cpp:377
#42 0x0000555555ab5e73 in main (argc=2, argv=0x7fffffffcfb8) at /home/scott/lyxbuilds/master-master/repo/src/main.cpp:55
(gdb)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: the-table.png
Type: image/png
Size: 42679 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240626/7acec3fa/attachment-0001.png>
-------------- 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/20240626/7acec3fa/attachment-0001.asc>
More information about the lyx-devel
mailing list