After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749529 - Crash when selecting any action from the window menu after the window has gone away
Crash when selecting any action from the window menu after the window has gon...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: window-management
3.16.x
Other Linux
: Normal major
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2015-05-18 06:59 UTC by Dima Ryazanov
Modified: 2015-05-21 16:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
windowMenu: Close when corresponding window goes away (1.41 KB, patch)
2015-05-21 16:19 UTC, Florian Müllner
committed Details | Review

Description Dima Ryazanov 2015-05-18 06:59:05 UTC
If a window disappears while its menu is open, the menu stays visible - however, selecting any action ("Maximize", "Move", etc.) causes gnome-shell to crash.

Repro steps:
- Open gnome-terminal
- Run "sleep 3; exit"
- Right-click the title-bar before the window disappears
- Click any menu item
Comment 1 Florian Müllner 2015-05-21 16:19:09 UTC
Created attachment 303769 [details] [review]
windowMenu: Close when corresponding window goes away

The menu is clearly associated with a particular window, so keeping
it around when the window is gone doesn't make sense - in case of
the window menu, it is actually harmful as every action will act on
the invalidated window and result in a crash. So just dismiss the
menu when the menu is unmanaged.
Comment 2 Jasper St. Pierre (not reading bugmail) 2015-05-21 16:19:55 UTC
Review of attachment 303769 [details] [review]:

obvious yes
Comment 3 Florian Müllner 2015-05-21 16:21:11 UTC
Attachment 303769 [details] pushed as 60d1f77 - windowMenu: Close when corresponding window goes away