{"action":"created","issue":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/1370","labels_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1370/labels{/name}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1370/comments","events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1370/events","html_url":"https://github.com/python-pillow/Pillow/issues/1370","id":98949892,"number":1370,"title":"Pillow 2.9 causes PySide application to crash (whereas 2.8.2 does not)","user":{"login":"canol","id":60890,"avatar_url":"https://avatars.githubusercontent.com/u/60890?v=3","gravatar_id":"","url":"https://api.github.com/users/canol","html_url":"https://github.com/canol","followers_url":"https://api.github.com/users/canol/followers","following_url":"https://api.github.com/users/canol/following{/other_user}","gists_url":"https://api.github.com/users/canol/gists{/gist_id}","starred_url":"https://api.github.com/users/canol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canol/subscriptions","organizations_url":"https://api.github.com/users/canol/orgs","repos_url":"https://api.github.com/users/canol/repos","events_url":"https://api.github.com/users/canol/events{/privacy}","received_events_url":"https://api.github.com/users/canol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-04T11:47:49Z","updated_at":"2015-08-04T12:38:14Z","closed_at":null,"body":"Hello, the program below causes a crash on line 24 (setPixmap() line). It does not crash when I use Pillow 2.8.2. What might be the problem?\r\n\r\n```python\r\nimport sys\r\nfrom PySide import QtGui, QtCore\r\nfrom PIL import Image\r\nfrom PIL import ImageQt\r\n\r\n\r\nclass Example(QtGui.QWidget):\r\n    \r\n    def __init__(self):\r\n        super(Example, self).__init__()\r\n\r\n        pil_image = Image.open(\"test.png\")\r\n\r\n        print(\"Creating ImageQt.\")\r\n        qimage = ImageQt.ImageQt(pil_image)\r\n\r\n        print(\"Converting to QPixmap.\")\r\n        pixmap1 = QtGui.QPixmap.fromImage(qimage)\r\n        print(\"Converted QPixmap.\")\r\n\r\n        hbox = QtGui.QHBoxLayout(self)\r\n\r\n        lbl = QtGui.QLabel(self)\r\n        lbl.setPixmap(pixmap1.copy())\r\n\r\n        hbox.addWidget(lbl)\r\n        self.setLayout(hbox)\r\n        \r\n        self.setGeometry(300, 300, 280, 170)\r\n        self.show()\r\n\r\n\r\ndef main():\r\n    app = QtGui.QApplication(sys.argv)\r\n    ex = Example()\r\n    sys.exit(app.exec_())\r\n\r\n\r\nif __name__ == '__main__':\r\n    main()\r\n```"},"comment":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/comments/127586745","html_url":"https://github.com/python-pillow/Pillow/issues/1370#issuecomment-127586745","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1370","id":127586745,"user":{"login":"canol","id":60890,"avatar_url":"https://avatars.githubusercontent.com/u/60890?v=3","gravatar_id":"","url":"https://api.github.com/users/canol","html_url":"https://github.com/canol","followers_url":"https://api.github.com/users/canol/followers","following_url":"https://api.github.com/users/canol/following{/other_user}","gists_url":"https://api.github.com/users/canol/gists{/gist_id}","starred_url":"https://api.github.com/users/canol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canol/subscriptions","organizations_url":"https://api.github.com/users/canol/orgs","repos_url":"https://api.github.com/users/canol/repos","events_url":"https://api.github.com/users/canol/events{/privacy}","received_events_url":"https://api.github.com/users/canol/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T12:38:14Z","updated_at":"2015-08-04T12:38:14Z","body":"I now tested with hopper.png and it worked. Then I tried to scale that image to 1000*1000 since all the test images I used were big, and it again crashes. I haven't tried on Windows. I tried with different image sizes and it crashes above 450*450. Can you also  try with a big image?\r\n\r\nMy system is:\r\n\r\nPython: 2.7.6\r\nOS: Ubuntu 14.04\r\nI installed Pillow 2.9 and 2.8.2 several times."}}