Programmable filter / source crashes with tab
When using a programmable filter, if you press tab with text ParaView crashes.
How to reproduce:
- Create a programmable source / programmable filter
- write something
- press tab
Output:
[toothless:26564] *** Process received signal ***
[toothless:26564] Signal: Segmentation fault (11)
[toothless:26564] Signal code: Address not mapped (1)
[toothless:26564] Failing at address: 0x10
[toothless:26564] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x42990)[0x70fd7c242990]
[toothless:26564] [ 1] /home/tcouble/Documents/Projects/ParaView/build-debug/bin/../lib/libpqWidgets-pv5.12.so.1(+0xb85b2)[0x70fd88a8b5b2]
[toothless:26564] [ 2] /home/tcouble/Documents/Projects/ParaView/build-debug/bin/../lib/libpqWidgets-pv5.12.so.1(_ZN10pqTextEdit13keyPressEventEP9QKeyEvent+0x177)[0x70fd88a8adc1]
[toothless:26564] [ 3] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN7QWidget5eventEP6QEvent+0xfaf)[0x70fd87daf86f]
[toothless:26564] [ 4] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN6QFrame5eventEP6QEvent+0x22)[0x70fd87e5ae52]
[toothless:26564] [ 5] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x82)[0x70fd87d6bc82]
[toothless:26564] [ 6] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN12QApplication6notifyEP7QObjectP6QEvent+0xc38)[0x70fd87d73c28]
[toothless:26564] [ 7] /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x128)[0x70fd80ecc7a8]
[toothless:26564] [ 8] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1cb17a)[0x70fd87dcb17a]
[toothless:26564] [ 9] /lib/x86_64-linux-gnu/libQt5Widgets.so.5(_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent+0x82)[0x70fd87d6bc82]
[toothless:26564] [10] /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent+0x128)[0x70fd80ecc7a8]
[toothless:26564] [11] /lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN22QGuiApplicationPrivate15processKeyEventEPN29QWindowSystemInterfacePrivate8KeyEventE+0xed)[0x70fd8693fa0d]
[toothless:26564] [12] /lib/x86_64-linux-gnu/libQt5Gui.so.5(_ZN22QWindowSystemInterface22sendWindowSystemEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0xac)[0x70fd8691762c]
[toothless:26564] [13] /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5(+0x74f7e)[0x70fd690f9f7e]
[toothless:26564] [14] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x5ab2c)[0x70fd7805cb2c]
[toothless:26564] [15] /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0xb646f)[0x70fd780b846f]
[toothless:26564] [16] /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x30)[0x70fd7805ad20]
[toothless:26564] [17] /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0x6a)[0x70fd80f27daa]
[toothless:26564] [18] /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE+0x12b)[0x70fd80ecb15b]
[toothless:26564] [19] /lib/x86_64-linux-gnu/libQt5Core.so.5(_ZN16QCoreApplication4execEv+0x94)[0x70fd80ed3904]
[toothless:26564] [20] ./bin/paraview(+0x1132b)[0x5ac5767b332b]
[toothless:26564] [21] /lib/x86_64-linux-gnu/libc.so.6(+0x28150)[0x70fd7c228150]
[toothless:26564] [22] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x89)[0x70fd7c228209]
[toothless:26564] [23] ./bin/paraview(+0x9c05)[0x5ac5767abc05]
[toothless:26564] *** End of error message ***
zsh: segmentation fault (core dumped) ./bin/paraview
Backtrace:
0x00007ffff718f5b2 in pqWidgetCompleter::getCompleteEmptyPrompts (this=0x0) at /home/tcouble/Documents/Projects/ParaView/paraview/Qt/Widgets/pqWidgetCompleter.h:32
32 bool getCompleteEmptyPrompts() { return this->CompleteEmptyPrompts; };
(gdb) bt
#0 0x00007ffff718f5b2 in pqWidgetCompleter::getCompleteEmptyPrompts (this=0x0) at /home/tcouble/Documents/Projects/ParaView/paraview/Qt/Widgets/pqWidgetCompleter.h:32
#1 0x00007ffff718edc1 in pqTextEdit::keyPressEvent (this=0x55555b396030, e=0x7fffffffd6d0) at /home/tcouble/Documents/Projects/ParaView/paraview/Qt/Widgets/pqTextEdit.cxx:147
#2 0x00007ffff73af86f in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3 0x00007ffff745ae52 in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4 0x00007ffff736bc82 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5 0x00007ffff7373c28 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6 0x00007ffff02cc7a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7 0x00007ffff73cb17a in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8 0x00007ffff736bc82 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9 0x00007ffff02cc7a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff5f3fa0d in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x00007ffff5f1762c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#12 0x00007fffd6cf9f7e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#13 0x00007fffe745cb2c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#14 0x00007fffe74b846f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#15 0x00007fffe745ad20 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#16 0x00007ffff0327daa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007ffff02cb15b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffff02d3904 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x000055555556532b in main (argc=1, argv=0x555555714120) at /home/tcouble/Documents/Projects/ParaView/build-debug/Clients/ParaView/paraview_main.cxx:134
Could reproduced on ParaView master & 5.12
Edited by Timothée Couble