ubuntuuitoolkit tests hang on touch_custom suite

Bug #1297846 reported by Chris Wayne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Savilerow project
Confirmed
Medium
Chris Wayne
ubuntu-ui-toolkit (Ubuntu)
Confirmed
High
Zsombor Egri

Bug Description

The ubuntuuitoolkit tests fail reliably, as they get caught repeating this:

08:41:19.917 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:20.524 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:20.615 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:21.343 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:21.868 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:21.962 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:22.757 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:23.302 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:23.450 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:24.260 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:24.753 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:24.832 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:25.622 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:26.236 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:26.333 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:27.104 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:27.666 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:27.745 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
08:41:28.508 DEBUG dbus:432 - Selecting objects of any type with attributes: {'objectName': 'testListElement5'}
08:41:29.043 INFO logging:45 - QQuickListView: _show_more_elements_below. Arguments (). Keyword arguments: {}.
08:41:29.238 DEBUG _uinput:546 - Dragging from 432,413 to 432,100

for about 5 hours until some timeout is reached.

Test results are then blocked, and the suite never shows up as completing. https://jenkins.qa.ubuntu.com/job/trusty-touch_custom-mako-smoke-daily/93/console

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-ui-toolkit-autopilot 0.1.46+14.04.20140321.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-18.38-generic 3.13.6
Uname: Linux 3.13.0-18-generic x86_64
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 26 09:20:19 2014
InstallationDate: Installed on 2013-07-26 (242 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
PackageArchitecture: all
SourcePackage: ubuntu-ui-toolkit
UpgradeStatus: Upgraded to trusty on 2013-11-21 (124 days ago)

Revision history for this message
Chris Wayne (cwayne) wrote :
Revision history for this message
Chris Wayne (cwayne) wrote :

It's a bit difficult to reproduce this locally for me, but it happens 100% of the time ont he dashboard. To try to reproduce:

ubuntu-device-flash --channel devel-proposed-customized
phablet-click-test-setup

adb shell mount -o rw,remount /
adb shell apt-get install ubuntu-ui-toolkit-autopilot

phablet-test-run ubuntuuitoolkit

Revision history for this message
Chris Wayne (cwayne) wrote :

This image contains a customized theme, which can be found in /custom/xdg/data/themes/Ubuntu/Custom

Revision history for this message
Chris Wayne (cwayne) wrote :

I've reproduced this locally, and it's important to note that the phone is still responsive, it's just the test that seems to be hanging.

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
Revision history for this message
Zsombor Egri (zsombi) wrote :

Plenty of the tests are showing up only white screen. This happens when the component cannot load the visuals. Either the theme is broken, or the theme engine has bugs. I will check the toolkit gallery, whether that works or not.

Revision history for this message
Zsombor Egri (zsombi) wrote :

Hmm... I do not see XDG_DATA_DIRS set...

Revision history for this message
Zsombor Egri (zsombi) wrote :

I grabbed the theme from the phone and set up the environment to use the theme same way the phone does. I copied the theme files under my home folder into custom-theme path, so ~/custom-theme/themes/Ubuntu/Custom was the path to the files. $HOME/.config/ubuntu-ui-toolkit/theme.ini has the theme=themes.Ubuntu.Custom line set.

Environment: XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME/custom-theme

Running ubuntu-ui-toolkit-gallery example on the desktop, I'm getting the following warning just by launching it:
(file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:45, unknown) - file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:45:5: QML QQuickImage: Cannot open: file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/artwork/background_paper.png
(file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:42, unknown) - file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:42: ReferenceError: internals is not defined
(file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:42, unknown) - file:///home/zsombor/custom-themes/themes/Ubuntu/Custom/MainViewStyle.qml:42: ReferenceError: internals is not defined

Never the less these are only errors on MainViewStyle, these should be all corrected. Otherwise the application works smoothly, all the colours are taken from the custom theme, so the theme seems to be loaded fine. However, if I run autopilot tests with the theme, all of them seem to be broken, like the environment variables would have not been loaded in the tests.

Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
status: New → Confirmed
importance: Undecided → High
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: none → april-2014
Chris Wayne (cwayne)
Changed in savilerow:
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Chris Wayne (cwayne18)
Revision history for this message
Cris Dywan (kalikiana) wrote :

Where can I see the theme being used here?

The autopilot test shouldn't pick up custom themes, we only check the default theme and ultimately things like color checks will fail even if your theme is bug-free.

Revision history for this message
Chris Wayne (cwayne) wrote : Re: [Bug 1297846] Re: ubuntuuitoolkit tests hang on touch_custom suite
Download full text (4.0 KiB)

I disagree that it shouldn't pick up custom themes. This is a fundamental
part of the customized image, and needs to be tested. The theme can be
found in lp:savilerow, and is quite literally just a different color Palette

On Thu, Apr 17, 2014 at 8:23 AM, Christian Dywan <email address hidden>wrote:

> Where can I see the theme being used here?
>
> The autopilot test shouldn't pick up custom themes, we only check the
> default theme and ultimately things like color checks will fail even if
> your theme is bug-free.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1297846
>
> Title:
> ubuntuuitoolkit tests hang on touch_custom suite
>
> Status in The Savilerow project:
> Confirmed
> Status in Ubuntu UI Toolkit:
> Confirmed
> Status in “ubuntu-ui-toolkit” package in Ubuntu:
> New
>
> Bug description:
> The ubuntuuitoolkit tests fail reliably, as they get caught repeating
> this:
>
> 08:41:19.917 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:20.524 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:20.615 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:21.343 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:21.868 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:21.962 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:22.757 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:23.302 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:23.450 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:24.260 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:24.753 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:24.832 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:25.622 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:26.236 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:26.333 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:27.104 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:27.666 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:27.745 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
> 08:41:28.508 DEBUG dbus:432 - Selecting objects of any type with
> attributes: {'objectName': 'testListElement5'}
> 08:41:29.043 INFO logging:45 - QQuickListView:
> _show_more_elements_below. Arguments (). Keyword arguments: {}.
> 08:41:29.238 DEBUG _uinput:546 - Dragging from 432,413 to 432,100
>
> for about 5 hours until some timeout is reached.
>
> Test results are t...

Read more...

Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: april-2014 → june-2014
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
milestone: june-2014 → august-2014
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit (Ubuntu)
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
milestone: august-2014 → 11.07
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → High
status: New → Confirmed
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

anyone still think we need to keep this bug since no traffic for half of a year ?

Changed in savilerow:
importance: Critical → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.