[PyQt] PyQt5.4 stuck on QtQuick.Dialogs

Phil Thompson phil at riverbankcomputing.com
Sat Jan 3 10:23:13 GMT 2015


On 02/01/2015 11:29 pm, Fabien Castan wrote:
> Hi,
> 
> I have installed Qt5.4 and compiled PyQt5.4 (with python3.4).
> But I'm stuck when loading a QML file which uses QtQuick.Dialogs.
> 
> Here is a simple QML example:
> 
> ```
> 
> import QtQuick 2.0
> 
> import QtQuick.Controls 1.0
> 
> import QtQuick.Dialogs 1.2 // works fine if you comment this line
> 
> 
> ApplicationWindow {
> 
> 
>     id: root
> 
>     title:"Title"
> 
> 
>     width: 1200
> 
>     height: 800
> 
> }
> 
> ```
> 
> 
> This QML file is loaded without trouble using "qmlscene".
> When I load it from PyQt it remains blocked...
> If I run python3 inside gdb, and kill the process, I get this 
> backtrace:
> 
> (gdb) bt
> #0  pthread_cond_wait@@GLIBC_2.3.2 () at
> ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185

Most likely to be the GIL not being released when it should causing a 
deadlock. Hopefully fixed in tonight's snapshot.

Thanks,
Phil


More information about the PyQt mailing list