Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65746

QAbstractItemView::mouseReleaseEvent Segmentation Fault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 4.8.x, 5.9.2
    • Widgets: Itemviews
    • None
    • QCreator 4.3.1

      OS (Kali linux - Debian Based):

      Linux kalisanaSH 4.14.0-kali3-amd64 #1 SMP Debian 4.14.12-2kali2 (2018-01-11) x86_64 GNU/Linux 

    Description

      Created Custom TextEdit component with QCompleter only to find out that when the QCompleter popup shows up and i use the mouse button to select it the whole application crashes. 

      Here is the backtrace of the SEGFAULT: 

      #0 0x00007ffff7930c93 in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #1 0x00007ffff7970c4f in QListView::mouseReleaseEvent(QMouseEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #2 0x00007ffff7725b98 in QWidget::event(QEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #3 0x00007ffff77c69de in QFrame::event(QEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #4 0x00007ffff7939b8b in QAbstractItemView::viewportEvent(QEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #5 0x00007ffff69cbf3c in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      #6 0x00007ffff76e7575 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #7 0x00007ffff76ef3bf in QApplication::notify(QObject*, QEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #8 0x00007ffff69cc258 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      #9 0x00007ffff76ee392 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #10 0x00007ffff77405c5 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #11 0x00007ffff7742efa in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      ---Type <return> to continue, or q <return> to quit--- 
      #12 0x00007ffff76e759c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #13 0x00007ffff76eee64 in QApplication::notify(QObject*, QEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
      #14 0x00007ffff69cc258 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      #15 0x00007ffff6f2c183 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
      #16 0x00007ffff6f2dc65 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
       at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
      #17 0x00007ffff6f05cab in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
      #18 0x00007ffff025ad50 in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
      #19 0x00007ffff3db0fa7 in g_main_context_dispatch ()
       at /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #20 0x00007ffff3db11e0 in () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #21 0x00007ffff3db126c in g_main_context_iteration ()
       at /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #22 0x00007ffff6a250ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      #23 0x00007ffff69ca2aa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      ---Type <return> to continue, or q <return> to quit---
      #24 0x00007ffff69d3214 in QCoreApplication::exec() ()
       at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
      #25 0x0000555555558b05 in main(int, char**) (argc=1, argv=0x7fffffffe1d8)
       at ../TestingQt5Bug/main.cpp:10

       

      I have also attached the localized version of the code that triggers the crash.

      Attachments

        1. dropdowntextedit.cpp
          3 kB
        2. dropdowntextedit.h
          0.6 kB
        3. main.cpp
          0.2 kB
        4. mainwindow.cpp
          0.7 kB
        5. mainwindow.h
          0.3 kB
        6. mainwindow.ui
          1 kB
        7. TestingQt5Bug.pro
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            daniels_pa Daniel Saranovic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes