Am Dienstag, 5. Februar 2019 12:40:36 CET schrieb Kornel Benko <kor...@lyx.org>: > Am Dienstag, 5. Februar 2019 12:22:19 CET schrieb Jean-Marc Lasgouttes > <lasgout...@lyx.org>: > > Le 04/02/2019 à 17:38, Kornel Benko a écrit : > > > > > I am testing advanced search (here locally modified), but it should work > > > the same > > > as committed in master. > > > > > > 1.) open de/EmbeddedObjects.lyx > > > 2.) advanced search for English strings {\regexp{.+\endregexp{}}, allow > > > format search > > > 3.) At the dialog on end of file select 'Yes' to restart the search from > > > start > > > 4.) lyx freezes ... > > > > It should be fixed now. I am not sure about how you trigger it though, > > since AFAICS this code is only used for accepting/rejecting changes. > > > > JMarc > > > > Yes, fixed. > And I don't know either. > Since I was only 'searching' in findadv, no changes to buffer were done. > The code was triggered _only_ at accepting the re-search dialog at file end.
Not true ..., debugging ... the code is triggered on 'search next' too. Here the backtrace: #0 lyx::Text::deleteEmptyParagraphMechanism (this=0x3f07878, first=0, last=0, trackChanges=false) at /usr2/src/lyx/lyx-git/src/Text2.cpp:952 #1 0x0000000000f57d79 in lyx::Text::acceptChanges (this=0x3f07878) at /usr2/src/lyx/lyx-git/src/Text.cpp:1436 #2 0x00000000012250a2 in lyx::InsetText::acceptChanges (this=0x3f07860) at /usr2/src/lyx/lyx-git/src/insets/InsetText.cpp:430 #3 0x0000000000f0afa6 in lyx::Paragraph::acceptChanges (this=0x2ca06d0, start=0, end=616) at /usr2/src/lyx/lyx-git/src/Paragraph.cpp:689 #4 0x0000000000f511c3 in lyx::acceptOrRejectChanges (pars=..., bparams=..., op=lyx::Text::ACCEPT) at /usr2/src/lyx/lyx-git/src/Text.cpp:302 #5 0x0000000000f513c2 in lyx::acceptChanges (pars=..., bparams=...) at /usr2/src/lyx/lyx-git/src/Text.cpp:334 #6 0x0000000000e0e239 in lyx::(anonymous namespace)::copySelectionHelper (buf=..., text=..., startpit=942, endpit=942, start=3, end=619, dc=std::shared_ptr (count 5, weak 0) 0x333b900, cutstack=...) at /usr2/src/lyx/lyx-git/src/CutAndPaste.cpp:716 #7 0x0000000000e1032c in lyx::cap::(anonymous namespace)::copySelectionToStack (cur=..., cutstack=...) at /usr2/src/lyx/lyx-git/src/CutAndPaste.cpp:1056 #8 0x0000000000e10bf6 in lyx::cap::saveSelection (cur=...) at /usr2/src/lyx/lyx-git/src/CutAndPaste.cpp:1127 #9 0x00000000012a8892 in lyx::frontend::GuiView::setCurrentWorkArea (this=0x2aed660, wa=0x3fb5480) at /usr2/src/lyx/lyx-git/src/frontends/qt4/GuiView.cpp:1567 #10 0x00000000012d733d in lyx::frontend::GuiWorkArea::focusInEvent (this=0x3fb5480, e=0x7fffffffcba0) at /usr2/src/lyx/lyx-git/src/frontends/qt4/GuiWorkArea.cpp:787 #11 0x00007ffff6ffd56f in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #12 0x00007ffff70fdb2e in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #13 0x00007ffff7186a03 in QAbstractScrollArea::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #14 0x00000000012d6e4c in lyx::frontend::GuiWorkArea::event (this=0x3fb5480, e=0x7fffffffcba0) at /usr2/src/lyx/lyx-git/src/frontends/qt4/GuiWorkArea.cpp:734 #15 0x00007ffff6fb7afc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #16 0x00007ffff6fbd036 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #17 0x000000000126e3a8 in lyx::frontend::GuiApplication::notify (this=0x2198550, receiver=0x3fb5480, event=0x7fffffffcba0) at /usr2/src/lyx/lyx-git/src/frontends/qt4/GuiApplication.cpp:2721 #18 0x00007ffff66822a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #19 0x00007ffff6fbae06 in QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #20 0x00007ffff6ff798d in QWidget::setFocus(Qt::FocusReason) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #21 0x00000000012c2d09 in QWidget::setFocus (this=0x3fb5480) at /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:405 #22 0x0000000001334142 in lyx::frontend::FindAndReplaceWidget::on_findNextPB_clicked (this=0x3ec2300) at /usr2/src/lyx/lyx-git/src/frontends/qt4/FindAndReplace.cpp:517 #23 0x0000000001334b2e in lyx::frontend::FindAndReplaceWidget::qt_static_metacall (_o=0x3ec2300, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffce30) at /BUILD/BUILDMint18/BuildLyxGitQt5.6.1local-gcc5.4.0/src/frontends/qt4/moc_FindAndReplace.cpp:84 #24 0x0000000001334c64 in lyx::frontend::FindAndReplaceWidget::qt_metacall (this=0x3ec2300, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fffffffce30) at /BUILD/BUILDMint18/BuildLyxGitQt5.6.1local-gcc5.4.0/src/frontends/qt4/moc_FindAndReplace.cpp:120 #25 0x00007ffff66ae8b7 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #26 0x00007ffff70b5212 in QAbstractButton::clicked(bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #27 0x00007ffff70b5464 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #28 0x00007ffff70b6f17 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #29 0x00007ffff70b7094 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #30 0x00007ffff6ffce58 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #31 0x00007ffff6fb7afc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #32 0x00007ffff6fbd88e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #33 0x000000000126e3a8 in lyx::frontend::GuiApplication::notify (this=0x2198550, receiver=0x4111f90, event=0x7fffffffd3e0) at /usr2/src/lyx/lyx-git/src/frontends/qt4/GuiApplication.cpp:2721 #34 0x00007ffff66822a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #35 0x00007ffff6fbc585 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #36 0x00007ffff70174b0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #37 0x00007ffff7019df3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #38 0x00007ffff6fb7afc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 ... Kornel
signature.asc
Description: This is a digitally signed message part.