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

"Fatal error: Protocol Error" when QMenu with open submenu closes on wayland.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.15.0
    • None
    • Linux/Wayland

    Description

      When running a qt application on Linux/wayland the application crashes with the following error when a menu with an opened submenu closes. A quick test looks like it crashes when it's closed by hovering over a different menu item but does not crashed when closed by a mouse click somewhere in the window.

      Steps to reproduce:
      1. Extract the attached crash.tar.gz
      2. Build it with `qmake -o Makefile crash.project && make`
      3. Run the application with `QT_QPA_PLATFORM=wayland ./crash`
      4. Open the menu View->SubView
      5. Move the mouse over the menu File
      6. Application crashes with the following output on console

      QSocketNotifier: Can only be used with threads started with QThread
      {{ qt.qpa.wayland: Wayland does not support QWindow::requestActivate()}}
      {{ The Wayland connection experienced a fatal error: Protocol error}}
      {{ zsh: abort (core dumped) QT_QPA_PLATFORM=wayland ./crash}}

       

       

      Attachments

        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
            homenetcollector Uhm NoLul
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes