[PyQt] PyQt5.4 stuck on QtQuick.Dialogs
Fabien Castan
fabcastan at gmail.com
Sun Feb 1 19:09:51 GMT 2015
Works fine with the latest snapshot.
Thanks
2015-01-29 15:02 GMT+01:00 Phil Thompson <phil at riverbankcomputing.com>:
> On 27/01/2015 12:36 am, Fabien Castan wrote:
>
>> Here is a minimal example.
>> Thanks
>>
>
> Works fine for me.
>
> Phil
>
>
> 2015-01-27 1:20 GMT+01:00 Phil Thompson <phil at riverbankcomputing.com>:
>>
>> On 27/01/2015 12:14 am, Fabien Castan wrote:
>>>
>>> Hi,
>>>> I still have the problem with the latest snapshot
>>>> "PyQt-gpl-5.4.1-snapshot-55f521ae431b".
>>>>
>>>> #0 pthread_cond_wait@@GLIBC_2.3.2 () at
>>>> ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
>>>> #1 0x00007ffff01f9b03 in QWaitCondition::wait(QMutex*, unsigned long)
>>>> ()
>>>> from /opt/Qt5.4/5.4/gcc_64/lib/libQt5Core.so.5
>>>> #2 0x00007fffec5cc7c2 in ?? () from
>>>> /opt/Qt5.4/5.4/gcc_64/lib/libQt5Qml.so.5
>>>> #3 0x00007fffec570134 in ?? () from
>>>> /opt/Qt5.4/5.4/gcc_64/lib/libQt5Qml.so.5
>>>> #4 0x00007fffec570590 in ?? () from
>>>> /opt/Qt5.4/5.4/gcc_64/lib/libQt5Qml.so.5
>>>> #5 0x00007fffec5536dd in QQmlComponentPrivate::loadUrl(QUrl const&,
>>>> QQmlComponent::CompilationMode) () from
>>>> /opt/Qt5.4/5.4/gcc_64/lib/libQt5Qml.so.5
>>>> #6 0x00007fffe93f5ecf in meth_QQmlComponent_loadUrl () from
>>>> /home/fab/Téléchargements/ButtleOFX_Alpha_Linux64_v2.0/
>>>> py3.3_env/lib/python3.3/site-packages/PyQt5/QtQml.so
>>>>
>>>> Regards,
>>>> Fabien
>>>>
>>>>
>>> Then I need a complete, small example that demonstrates the problem.
>>>
>>> Phil
>>>
>>>
>>> 2015-01-03 11:23 GMT+01:00 Phil Thompson <phil at riverbankcomputing.com>:
>>>
>>>>
>>>> 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
>>>>> _______________________________________________
>>>>> PyQt mailing list PyQt at riverbankcomputing.com
>>>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>>>
>>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150201/b9b0c0ce/attachment.html>
More information about the PyQt
mailing list