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

qtquick's Menu.popup() causes crash on wayland platform

    Details

    • Type: Bug
    • Status: Need More Info
    • Priority: P2: Important
    • Resolution: Incomplete
    • Affects Version/s: 5.4.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      latest-upraged arch-linux mesa-10.6.0 wayland-1.8.1 weston-1.8.0

      qt-5.4.2

      Description

      Hi. QtQuick.Controls's Menu object causes whole app crash

      when its popup() method called on WAYLAND platform.

      This code snipped don't works.

      import QtQuick 2.4
      import QtQuick.Controls 1.2
      
      ApplicationWindow {
          id: window
          visible:true
          width:300
          height:300
        
          Button {
              text:"Click me"
              onClicked:{
                  m.popup()
              }
          }
        
          Menu{
              id:m
              
              MenuItem {
                  text: "New File"
                  onTriggered: {}
              }
          }
      }
      

      i get below error.im trying to post backtrace.

      kernel: qmlscene-qt5[2164]: segfault at 8 ip 00007fe7275a8510 sp 00007ffe861e9fa0 error 4 in libQt5Core.so.5.4.2[7fe7273290
      Jun 26 17:57:28 localhost systemd-coredump[2170]: Process 2164 (qmlscene-qt5) of user 1000 dumped core.

        Attachments

        1. btrace.txt
          1 kB
        2. main.qml
          0.4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              srutledg Shawn Rutledge
              Reporter:
              ahmad ahmad
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes