{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4283","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4283/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4283/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4283/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4283","id":64617533,"number":4283,"title":"Memory hole when using Cursor widget with Qt (PySide) and useblit=True on Windows","user":{"login":"dryo","id":2649898,"avatar_url":"https://avatars.githubusercontent.com/u/2649898?v=3","gravatar_id":"","url":"https://api.github.com/users/dryo","html_url":"https://github.com/dryo","followers_url":"https://api.github.com/users/dryo/followers","following_url":"https://api.github.com/users/dryo/following{/other_user}","gists_url":"https://api.github.com/users/dryo/gists{/gist_id}","starred_url":"https://api.github.com/users/dryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dryo/subscriptions","organizations_url":"https://api.github.com/users/dryo/orgs","repos_url":"https://api.github.com/users/dryo/repos","events_url":"https://api.github.com/users/dryo/events{/privacy}","received_events_url":"https://api.github.com/users/dryo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/confirmed%20bug","name":"confirmed bug","color":"444444"},{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/GUI/Qt","name":"GUI/Qt","color":"d4c5f9"},{"url":"https://api.github.com/repos/matplotlib/matplotlib/labels/widgets/UI","name":"widgets/UI","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/19","html_url":"https://github.com/matplotlib/matplotlib/milestones/Color%20overhaul","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/19/labels","id":982168,"number":19,"title":"Color overhaul","description":"v2.0.0 milestone\r\n\r\nThe v2.0 will be based on the 1.4.3 release and contain only default color changes and bug-fixes.","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":16,"state":"open","created_at":"2015-02-17T00:47:12Z","updated_at":"2015-06-10T15:59:49Z","due_on":"2015-04-30T04:00:00Z","closed_at":null},"comments":9,"created_at":"2015-03-26T19:45:43Z","updated_at":"2015-06-10T15:59:51Z","closed_at":"2015-06-10T15:59:49Z","body":"I'm using matplotlib with PySide and I managed to crash the program by moving the mouse. ;)\r\n\r\nI made a minimal example (see below) that triggers the problem. Just run it and move your mouse over the canvas keeping the memory consumption under observation. You will see significant increase when moving the mouse.\r\n\r\nThis only happens when setting `useblit=True` in the # MARKed line.\r\n\r\n```python\r\nimport sys\r\nfrom matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas\r\nfrom matplotlib.figure import Figure\r\nfrom matplotlib.widgets import Cursor\r\nfrom PySide import QtGui\r\n\r\n\r\nclass MyApp(QtGui.QMainWindow):\r\n\r\n    def __init__(self):\r\n        # Init the object as a QMainWindow\r\n        super().__init__()\r\n\r\n        # create figure and plot something\r\n        fig = Figure()\r\n        ax = fig.add_subplot(111)\r\n        ax.plot([1, 5, 2, 3])\r\n        canvas = FigureCanvas(fig)\r\n        cursor = Cursor(ax, useblit=True)  # MARK\r\n\r\n        # set central widget of main window to the canvas of the figure\r\n        self.setCentralWidget(canvas)\r\n\r\n    def run(self):\r\n        self.show()\r\n        # enter main loop\r\n        myApp.exec_()\r\n\r\n\r\nif __name__ == '__main__':\r\n    myApp = QtGui.QApplication(sys.argv)\r\n    MyApp().run()\r\n```\r\n\r\nSome version info:\r\n* Windows 7 64bit\r\n* Python 3.4.2 64bit\r\n* Matplotlib 1.4.3 64bit\r\n* PySide 1.2.2 (installed via pip)"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/110811203","html_url":"https://github.com/matplotlib/matplotlib/issues/4283#issuecomment-110811203","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4283","id":110811203,"user":{"login":"mfitzp","id":126239,"avatar_url":"https://avatars.githubusercontent.com/u/126239?v=3","gravatar_id":"","url":"https://api.github.com/users/mfitzp","html_url":"https://github.com/mfitzp","followers_url":"https://api.github.com/users/mfitzp/followers","following_url":"https://api.github.com/users/mfitzp/following{/other_user}","gists_url":"https://api.github.com/users/mfitzp/gists{/gist_id}","starred_url":"https://api.github.com/users/mfitzp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfitzp/subscriptions","organizations_url":"https://api.github.com/users/mfitzp/orgs","repos_url":"https://api.github.com/users/mfitzp/repos","events_url":"https://api.github.com/users/mfitzp/events{/privacy}","received_events_url":"https://api.github.com/users/mfitzp/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T15:59:49Z","updated_at":"2015-06-10T15:59:49Z","body":"Closed by https://github.com/matplotlib/matplotlib/pull/4377\r\n\r\n@tacaswell I opened a separate issue (#4513) for the cursor not working at all with `blit=False` on PySide"}}