The following script (opening two figures, and triggering a figure quit via the keyboard shortcut on a timer 1 second after the second figure is drawn) segfaults when used with the wx{,agg} backend. It works as expected (closing the second figure after 1s) e.g. other backends.
I can reproduce with with 2.2.2 both from pypi and from arch packages (and a range of 4.0.x wxpython versions) so this is not a recent regression on our part.
My guess at what is going on is that as part of closing the second figure we are cleaning up some part of Wx global state that the first figure is still using. If you don't include the other open figure the state isn't shared and everything exits happily.
I suspect that this is a nastier version of the 'wx segfaults at exit' bug we have had in the past.
Activity
tacaswell commented on Jul 5, 2018
Linked with #11578 ?
anntzer commented on Jul 5, 2018
I don't think so (note the restricted conditions in which this occurs)?
It may well not even be a regression.
tacaswell commented on Jul 6, 2018
I can reproduce with with 2.2.2 both from pypi and from arch packages (and a range of 4.0.x wxpython versions) so this is not a recent regression on our part.
My guess at what is going on is that as part of closing the second figure we are cleaning up some part of Wx global state that the first figure is still using. If you don't include the other open figure the state isn't shared and everything exits happily.
I suspect that this is a nastier version of the 'wx segfaults at exit' bug we have had in the past.
anntzer commented on Jul 6, 2018
Remove the RC tag or not? (I vote for it)