FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

wx segfault · Issue #11582 · matplotlib/matplotlib · GitHub

Repository navigation

wx segfault #11582

Closed
Closed

Description

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.

from pylab import *

plt.figure()

fig = plt.figure()
timer = fig.canvas.new_timer(1000)
timer.add_callback(fig.canvas.key_press_event, "q")
fig.canvas.mpl_connect("draw_event", lambda event: timer.start())
plt.show()

Interestingly, commenting out the first plt.figure() (which seemingly plays no role...) removes the segfault.

Noted while working on the tests for #11581.
Matplotlib master on Py3.6/Arch Linux.

Activity

  1. added this to the v3.0 milestone on Jul 5, 2018
  2. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Jul 5, 2018
  3. tacaswell commented on Jul 5, 2018

    Member

    Linked with #11578 ?

  4. anntzer commented on Jul 5, 2018

    ContributorAuthor

    I don't think so (note the restricted conditions in which this occurs)?
    It may well not even be a regression.

  5. tacaswell commented on Jul 6, 2018

    Member

    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.

  6. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    and removed
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Jul 6, 2018
  7. anntzer commented on Jul 6, 2018

    ContributorAuthor

    Remove the RC tag or not? (I vote for it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUI: wxRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL