freeciv-gtk2 crashes under Unity when using menubar in cities report
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Freeciv |
Invalid
|
Undecided
|
Unassigned | ||
freeciv (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
(Filing against freeciv initially, but may turn out to be a bug in appmenu-gtk or thereabouts.)
On Ubuntu 13.04 with Unity, running the supplied Freeciv (2.3.2-1), using the menubar on the cities report (F4) -- not the individual city dialog -- can cause the freeciv-gtk2 client to crash (segfault).
Originally noticed when changing production, but simply fiddling with the menubar will cause a crash sooner or later. Steps to reproduce:
1. Start new game
2. Found a city (select Settlers, press B)
3. Open cities report (F4) and select the new city
4. Repeatedly click on "Production" menu (bottom left), popping and unpopping it. Within about ten open/close cycles, the client crashes for me.
Friend reports that this did not used to happen with the same workflow under Ubuntu 12.10 (which had the same version of Freeciv packaged) -- it seems to be new with 13.04.
There is some associated console spew [edited]:
When the Production menu is opened, we tend to get three repeats of:
(freeciv-
Sometimes we also see the following correlated with menubar activity:
(freeciv-
(freeciv-
or sometimes
(freeciv-
I expect there are crash reports of this available on errors.ubuntu.com, but I don't currently have access to that. Backtraces I've seen have almost all frames in Gtk/dbusmenu/etc rather than freeciv proper.
We've had trouble with Unity's menu-bar-stealing arrangements before (bug #743265). Tellingly, I cannot reproduce the crash if I launch Freeciv with "UBUNTU_MENUPROXY= freeciv-gtk2" (no crash in any of my experiments, including 30 cycles).
As a result of the previous bug, this menu bar is decorated with the property "ubuntu-local" to tell appmenu-
description: | updated |
description: | updated |
Changed in freeciv (Ubuntu): | |
status: | New → Invalid |
I've also reproduced the crash with a build of the latest Freeciv upstream code from this development branch (S2_3 r23154).