canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
33 stars 49 forks source link

Message "Timer is not a type" be got while executing QT related cases through control (remote) by using snap #1371

Closed baconYao closed 1 month ago

baconYao commented 3 months ago

Bug Description

No QT window be shown on screen.

Log while running the touchscreen/multitouch-zoom job

file:///snap/checkbox22/current/providers/checkbox-provider-base/data/touch_zoom_test.qml:74 Timer is not a type

Related issue: https://github.com/canonical/checkbox/issues/728

To Reproduce

  1. Install Checkbox on DUT via the following commands
    $ sudo snap install checkbox22 --beta
    $ sudo snap install checkbox --beta --classic
  2. Run Checkbox Snap via remote on host
    $ checkbox.checkbox-cli remote <IP of DUT>
  3. Choose Desktop Preload Certification Tests for 22.04 (Manual Tests) test plan
  4. Run touchscreen/multitouch-rotate and touchscreen/multitouch-zoom jobs

Environment

OS: Desktop Checkbox Type: Snap

checkbox                   4.0.0-dev329      7644   22.04/edge       ce-certification-qa  classic
checkbox22                 4.0.0-dev329      1005   latest/edge      ce-certification-qa  -

Relevant log output

No response

Additional context

No response

syncronize-issues-to-jira[bot] commented 3 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1511.

This message was autogenerated

Hook25 commented 3 months ago

As per our discussion: this may be related to the QT version installed. The device is running arm64, we need to double check this

baconYao commented 3 months ago

Debug information in checkbox.shell

(checkbox-shell) ubuntu@mtk-genio:~$ export QT_DEBUG_PLUGINS=1
(checkbox-shell) ubuntu@mtk-genio:~$ qmlscene -qt5 ./touch_zoom_test.qml
QFactoryLoader::QFactoryLoader() checking directory path "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqeglfs.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqminimal.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqvnc.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
Found metadata in lib /snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 331520
}

Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/checkbox22/1057/usr/lib/qt5/bin/platforms" ...
loaded library "/snap/checkbox22/1057/usr/lib/aarch64-linux-gnu/qt5/plugins/platforms/libqxcb.so"
qt.qpa.xcb: could not connect to display 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

Aborted (core dumped)

Snap info

checkbox                   4.2.0-dev9          8118   22.04/beta       ce-certification-qa  classic
checkbox-ce-oem            1.0-jammy           425    22.04/edge       ce-certification-qa  classic
checkbox22                 4.2.0-dev9          1057   latest/beta      ce-certification-qa  -