[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Qt 5.6: Segfault on exit with any QtWebKit application
From:       Florian Bruhin <me () the-compiler ! org>
Date:       2016-03-31 21:23:16
Message-ID: 20160331212316.GS25141 () tonks
[Download RAW message or body]

This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #2 (multipart/signed)]
This is a MIME-formatted message.  If you see this text it means that your
E-mail software does not support MIME-formatted messages.

[Attachment #4 (multipart/mixed)]


Hey,

Since updating to Qt 5.6 (with PyQt 5.5.1), I'm getting a segfault
when exiting from a trivial application using QtWebKit:

	import sys

	from PyQt5.QtCore import QUrl, QTimer
	from PyQt5.QtWidgets import QApplication
	from PyQt5.QtWebKitWidgets import QWebView

	app = QApplication(sys.argv)

	wv = QWebView()
	wv.load(QUrl('http://www.riverbankcomputing.com/'))
	wv.show()

	QTimer.singleShot(1000, app.quit)
	app.exec_()

It happens here:

	#0  0x00007ffff1deaab7 in QObject::disconnect (sender=0x7fff8813ff80, \
signal=signal@entry=0x0, receiver=receiver@entry=0x7fff84010e50, \
method=method@entry=0x0) at kernel/qobject.cpp:2949  #1  0x00007fffdba4af78 in \
QObject::disconnect (member=0x0, receiver=0x7fff84010e50, this=<optimized out>) at \
../../include/QtCore/../../src/corelib/kernel/qobject.h:361  #2  \
QDBusConnectionPrivate::closeConnection (this=this@entry=0x7fff84010e50) at \
qdbusintegrator.cpp:1126  #3  0x00007fffdba3bb36 in QDBusConnectionManager::run \
(this=0x7fffdbcadd00 <(anonymous \
namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:191  \
#4  0x00007ffff1be6de8 in QThreadPrivate::start (arg=0x7fffdbcadd00 <(anonymous \
namespace)::Q_QGS__q_manager::innerFunction()::holder>) at \
thread/qthread_unix.cpp:340  #5  0x00007ffff76f5424 in start_thread () from \
/usr/lib/libpthread.so.0  #6  0x00007ffff7434cbd in clone () from /usr/lib/libc.so.6

(note the member=0x0)

thread apply all bt full: http://paste.the-compiler.org/view/d9af5d1c

This looks like a Qt issue, but I attempted to write the same code in
C++, and it doesn't crash. I've also tried with Otter Browser which
runs fine as well. You can find the Python and C++ code attached.

Any idea what's going wrong here?

Florian

-- 
    http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
       GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
     I'm running a crowdfunding to work on my FOSS-project full-time:
                  http://igg.me/at/qutebrowser


["webkittest.tar.gz" (application/octet-stream)]
["signature.asc" (application/pgp-signature)]
[Attachment #9 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic