Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QT Application crash with onboard virtual keyboard with non root users



  • Hello!

    We are running our application in Ubuntu 16.04. It crashes if the on*board keyboard is opened. The same application run by root works ok. We have created a small qml app with a combo box inside a popup. If combo model is empty, the app works ok.

    Do you have any suggestions?

    Thanks!

    The segfault reported trace:
    1 ??
    2 QQuickItemLayer::~QQuickItemLayer() 0x7fffe6ab5448
    3 QQuickItemLayer::~QQuickItemLayer() 0x7fffe6ab54b9
    4 QAccessibleQuickItem::role() const 0x7fffe6c46832
    5 AtSpiAdaptor::pathForInterface(QAccessibleInterface *) const 0x7fffef3d9171
    6 AtSpiAdaptor::notifyStateChange(QAccessibleInterface *, QString const&, int) 0x7fffef3db9cf
    7 AtSpiAdaptor::notify(QAccessibleEvent *) 0x7fffef3dcdfa
    8 QQuickItemPrivate::setEffectiveVisibleRecur(bool) 0x7fffe6aba7bf
    9 QQuickItem::setParentItem(QQuickItem *) 0x7fffe6ac718a
    10 QQuickItem::~QQuickItem() 0x7fffe6ac7ef8
    11 QQmlPrivate::QQmlElement<QQuickItemDelegate>::~QQmlElement() 0x7fffe4e5a85e
    12 QObject::event(QEvent *) 0x7ffff69eeb98
    13 QQuickItem::event(QEvent *) 0x7fffe6ac60fb
    14 QCoreApplication::notifyInternal2(QObject *, QEvent *) 0x7ffff69c0ea8
    15 QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *) 0x7ffff69c4437
    16 postEventSourceDispatch(_GSource *, int ( *)(void *), void *) 0x7ffff6a19b53
    17 g_main_context_dispatch 0x7ffff2576127
    18 ?? 0x7ffff2576380
    19 g_main_context_iteration 0x7ffff257642c
    20 QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) 0x7ffff6a1918f
    ... <More>

    The example app qml code:

    import QtQuick 2.12
    import QtQuick.Controls 2.5
    import QtQuick.Window 2.12
    
    Window {
        visible: true
        width: 640
        height: 480
        title: qsTr("Hello World")
    
        Page {
            anchors.fill: parent
    
            Button {
                text:">"
                onClicked: pop.open()
            }
        }
    
        Popup {
            id:pop
            Column {
    
                ComboBox {
                    id: cbo
                    textRole: "name"
                    model: ListModel {
                        ListElement {
                            name: "test1"
                        }
                        ListElement {
                            name: "test2"
                        }
                    }
    
                }
                TextField {
                    placeholderText: "writehere..."
                }
    
            }
    
        }
    
        }
    

Log in to reply