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

Crash when a submenu is shared by a window menu and a context menu

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.1.0 Beta 1
    • None
    • Mac OS X 10.6 and 10.8

      When the same QMenu is added as a submenu of both a window menu and a context menu, it leads to a crash.

      The attached project demonstrates the problem. When the context menu is opened, a warning is printed:

      void QCocoaMenu::insertNative(QCocoaMenuItem*, QCocoaMenuItem*) Menu item is already in a menu, remove it from the other menu first before inserting
      

      If you click away from the window to another application, then click back to regain focus, the application crashes with the attached crash report and these additional messages:

      2013-06-04 12:00:00.959 submenuInMultipleMenus[4018:903] -[__NSCFType setTag:]: unrecognized selector sent to instance 0x7fff70bc9120
      2013-06-04 12:00:00.962 submenuInMultipleMenus[4018:903] -[NSCFArray name]: unrecognized selector sent to instance 0x1012337d0
      2013-06-04 12:00:00.968 submenuInMultipleMenus[4018:903] An uncaught exception was raised
      2013-06-04 12:00:00.969 submenuInMultipleMenus[4018:903] -[NSCFArray name]: unrecognized selector sent to instance 0x1012337d0
      2013-06-04 12:00:01.533 submenuInMultipleMenus[4018:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFArray name]: unrecognized selector sent to instance 0x1012337d0'
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            jlstrecker Jaymie Strecker
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes