[PyQt] Simultaneous use of QVideoWidget/QMediaPlayer and QQuickWidget segfaults on macOS with PyQt5

Cody Scott cody at perspexis.com
Tue Aug 8 22:23:40 BST 2017


On Windows 10, I don't get a segfault. I do see a warning in the command
prompt.

QQuickWidget cannot be used as a native child widget. Consider setting
Qt::AA_DontCreateNativeWidgetSiblings

On Mon, Aug 7, 2017 at 5:00 AM, Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 7 Aug 2017, at 1:23 am, Nicolas de Maubeuge <
> nicolas.de.maubeuge at gmail.com> wrote:
> >
> > Hi,
> >
> > It appears that using a QVideoWidget and a QQuickWidget in the same
> PyQt5 application causes a segmentation fault on macOS.
> >
> > The issue happens when a MediaPlayer connected to the QVideoWidget plays
> the video with mediaPlayer.play().
> > This seems to affect at least PyQt5 with Python 3.6.2, 3.6.1, and 3.5.3
> on macOS 10.12. Both QVideoWidget and QuickWidget work fine when used
> separately, which makes me think this could be either a Qt or PyQt bug.
> >
> > Attached is a small test code that demonstrates the problem as well as a
> core dump.
> > This issue only affects macOS as the previous code runes fine on Windows
> and Linux
> >
> > Any help would be appreciated.
>
> Seems to work fine for me.
>
> Phil
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170808/19b8fa2a/attachment-0001.html>


More information about the PyQt mailing list