Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ProxyWebView segfaults on application exit. #93

Open
itziakos opened this issue Jun 19, 2017 · 0 comments
Open

ProxyWebView segfaults on application exit. #93

itziakos opened this issue Jun 19, 2017 · 0 comments
Labels

Comments

@itziakos
Copy link
Member

The following testcase demonstrates the issue. The test will segfault on windows 10 pyside 1.2.2 and python 2.7.13

import unittest
import faulthandler

from jigna.qt import QtCore, QtGui
from jigna.core.proxy_qwebview import ProxyQWebView

faulthandler.enable()

class TestProxyQWebview(unittest.TestCase):

    def setUp(self):
        self.app = QtGui.QApplication.instance() or QtGui.QApplication([])

    def test_setUrl(self):
        app = self.app

        def create():
            widget = ProxyQWebView()
            widget.show()
            widget.setUrl(QtCore.QUrl('https://www.enthought.com'))
            print 'DONE'

        QtCore.QTimer.singleShot(10, create)
        QtCore.QTimer.singleShot(10000, app.quit)
        print 'Start'
        app.exec_()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant