Testcase: test_add_album

Build #:258:20150717:20150708
Arch:mako (Nexus 4)
Release:wily
Variant:touch
Artifacts
Console Log

Failure explanation

This test failure has not yet been categorized.
Log in to edit.

Test case data

testcase
test_add_album
testsuite
gallery_app.tests.test_albums_view.TestAlbumsView
returncode
1
command
autopilot
stderr
_StringException: Binary content:
  FailedTestScreenshot (image/png)

/var/log/syslog: {{{
Jul 17 04:56:58 ubuntu-phablet powerd[892]: handle_requestSysState from :1.82 (active) - ACTIVE (1)
Jul 17 04:56:58 ubuntu-phablet powerd[892]: name_watch_add: looking for :1.82
Jul 17 04:56:58 ubuntu-phablet powerd[892]: watching :1.82 to see when it disappears on dbus
Jul 17 04:56:58 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:56:58 ubuntu-phablet powerd[892]: handle_requestSysState - SUCCESS
Jul 17 04:56:58 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:56:58 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:56:58 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:09 ubuntu-phablet powerd[892]: handle_requestSysState from :1.19 (usensord) - ACTIVE (1)
Jul 17 04:57:09 ubuntu-phablet powerd[892]: name_watch_add: looking for :1.19
Jul 17 04:57:09 ubuntu-phablet powerd[892]: watching :1.19 to see when it disappears on dbus
Jul 17 04:57:09 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:57:09 ubuntu-phablet powerd[892]: handle_requestSysState - SUCCESS
Jul 17 04:57:09 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:57:09 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:57:09 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:10 ubuntu-phablet powerd[892]: handle_clearSysState from :1.19, cookie: 7c693d9c-0af6-4a8f-b7b8-1eca75f275ef
Jul 17 04:57:10 ubuntu-phablet powerd[892]: clear_sys_request: usensord - :1.19
Jul 17 04:57:10 ubuntu-phablet powerd[892]: name_watch_remove: looking for :1.19
Jul 17 04:57:10 ubuntu-phablet powerd[892]: name_watch: ref_count for :1.19 is now 0
Jul 17 04:57:10 ubuntu-phablet powerd[892]: no longer watching :1.19, there are no more requests
Jul 17 04:57:10 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:57:10 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:57:10 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:57:10 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:13 ubuntu-phablet powerd[892]: handle_requestSysState from :1.19 (usensord) - ACTIVE (1)
Jul 17 04:57:13 ubuntu-phablet powerd[892]: name_watch_add: looking for :1.19
Jul 17 04:57:13 ubuntu-phablet powerd[892]: watching :1.19 to see when it disappears on dbus
Jul 17 04:57:13 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:57:13 ubuntu-phablet powerd[892]: handle_requestSysState - SUCCESS
Jul 17 04:57:13 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:57:13 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:57:13 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:14 ubuntu-phablet powerd[892]: handle_clearSysState from :1.19, cookie: 2766f614-0375-47e3-9eb2-906a757f411d
Jul 17 04:57:14 ubuntu-phablet powerd[892]: clear_sys_request: usensord - :1.19
Jul 17 04:57:14 ubuntu-phablet powerd[892]: name_watch_remove: looking for :1.19
Jul 17 04:57:14 ubuntu-phablet powerd[892]: name_watch: ref_count for :1.19 is now 0
Jul 17 04:57:14 ubuntu-phablet powerd[892]: no longer watching :1.19, there are no more requests
Jul 17 04:57:14 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:57:14 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:57:14 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:57:14 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:18 ubuntu-phablet dhclient: DHCPREQUEST of 10.99.248.18 on wlan0 to 10.99.248.1 port 67 (xid=0x6c5ac5b6)
Jul 17 04:57:18 ubuntu-phablet dhclient: DHCPACK of 10.99.248.18 from 10.99.248.1
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info> (wlan0): DHCPv4 state changed reboot -> renew
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   address 10.99.248.18
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   plen 22 (255.255.252.0)
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   gateway 10.99.248.1
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   server identifier 10.99.248.1
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   lease time 600
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   nameserver '10.99.248.1'
Jul 17 04:57:18 ubuntu-phablet NetworkManager[1927]: <info>   domain name 'example.org'
Jul 17 04:57:18 ubuntu-phablet dhclient: bound to 10.99.248.18 -- renewal in 286 seconds.
Jul 17 04:57:18 ubuntu-phablet dbus[791]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Jul 17 04:57:18 ubuntu-phablet dbus[791]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Jul 17 04:57:18 ubuntu-phablet nm-dispatcher: Dispatching action 'dhcp4-change' for wlan0
Jul 17 04:57:33 ubuntu-phablet powerd[892]: handle_clearSysState from :1.82, cookie: b42c571f-7706-49a5-8637-77c8469b4c39
Jul 17 04:57:33 ubuntu-phablet powerd[892]: clear_sys_request: active - :1.82
Jul 17 04:57:33 ubuntu-phablet powerd[892]: name_watch_remove: looking for :1.82
Jul 17 04:57:33 ubuntu-phablet powerd[892]: name_watch: ref_count for :1.82 is now 0
Jul 17 04:57:33 ubuntu-phablet powerd[892]: no longer watching :1.82, there are no more requests
Jul 17 04:57:33 ubuntu-phablet powerd[892]: libsuspend: acquire_wake_lock: powerd_power_request
Jul 17 04:57:33 ubuntu-phablet powerd[892]: Enqueue state change to ACTIVE
Jul 17 04:57:33 ubuntu-phablet powerd[892]: queue empty && state == current, discarding
Jul 17 04:57:33 ubuntu-phablet powerd[892]: libsuspend: release_wake_lock: powerd_power_request
Jul 17 04:57:33 ubuntu-phablet dbus[791]: [system] Activating service name='com.canonical.PropertyService' (using servicehelper)
Jul 17 04:57:33 ubuntu-phablet dbus[791]: [system] Successfully activated service 'com.canonical.PropertyService'
}}}

Application Log (com.ubuntu.gallery_gallery_2.9.1.1209): {{{
libust[8467/8471]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8471]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8472]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8472]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
Testability driver loaded. Wire protocol version is "1.4".
Testability driver loaded. Wire protocol version is "1.4".
Unable to register object on D-Bus! Testability interface will not be available.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/GalleryApplication.qml:202:5: QML Binding: Binding loop detected for
property "target"

(process:8467): dconf-CRITICAL **: unable to create file '/run/user/32011/dconf/user': Permission denied.  dconf will not work properly.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/GalleryApplication.qml:202:5: QML Binding: Binding loop detected for
property "target"
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:310:9: QML ActionContext: Unity.Action deprecatedContext.
Please use ActionContext from Ubuntu.Components.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/LoadingScreen.qml:38:9: QML ActivityIndicator: Theme.createStyleComponent()
is deprecated. Use ThemeSettings instead.
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=1080, height=846)
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:154:42: Unable to assign [undefined] to bool
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:288:26: Unable to assign QString to QQmlComponent*
Opening ("/home/phablet/Pictures", "/home/phablet/Videos") ...
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table MediaTable already exists")
SQLite string:  "-- Media table

CREATE TABLE MediaTable (
  id INTEGER PRIMARY KEY,
  filename TEXT NOT NULL
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table AlbumTable already exists")
SQLite string:  "-- Album table

CREATE TABLE AlbumTable (
  id INTEGER PRIMARY KEY,
  time_added INTEGER,
  title TEXT NOT NULL,
  subtitle TEXT NOT NULL
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index AlbumTableTimeAddedIndex already exists")
SQLite string:  "CREATE INDEX AlbumTableTimeAddedIndex ON AlbumTable(time_added)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table MediaAlbumTable already exists")
SQLite string:  "-- Media/album relationship table

CREATE TABLE MediaAlbumTable (
  media_id INTEGER REFERENCES MediaTable ON DELETE CASCADE,
  album_id INTEGER REFERENCES AlbumTable ON DELETE CASCADE
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaAlbumTableMediaIndex already exists")
SQLite string:  "CREATE INDEX MediaAlbumTableMediaIndex ON MediaAlbumTable(media_id)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaAlbumTableAlbumIndex already exists")
SQLite string:  "CREATE INDEX MediaAlbumTableAlbumIndex ON MediaAlbumTable(album_id)"
Error executing database file:  "rc/sql/2.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: is_closed")
SQLite string:  "-- Album table
-- Add columns for open state and current page

ALTER TABLE AlbumTable ADD COLUMN is_closed BOOLEAN DEFAULT 1"
Error executing database file:  "rc/sql/2.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: current_page")
SQLite string:  "ALTER TABLE AlbumTable ADD COLUMN current_page INTEGER DEFAULT -1"
Error executing database file:  "rc/sql/3.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table PhotoEditTable already exists")
SQLite string:  "-- Photo edit table

CREATE TABLE PhotoEditTable (
  media_id INTEGER PRIMARY KEY REFERENCES MediaTable ON DELETE CASCADE,
  crop_rectangle TEXT
)"
Error executing database file:  "rc/sql/4.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: cover_nickname")
SQLite string:  "-- Album table
-- Add column for the album cover name.

ALTER TABLE AlbumTable ADD COLUMN cover_nickname TEXT DEFAULT "default""
Error executing database file:  "rc/sql/5.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: is_enhanced")
SQLite string:  "-- Add is_enhanced column to PhotoEditTable to support one-touch auto-enhance

ALTER TABLE PhotoEditTable ADD COLUMN is_enhanced BOOLEAN default false"
Error executing database file:  "rc/sql/6.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: width")
SQLite string:  "-- Media table
-- Add columns for media size.

ALTER TABLE MediaTable ADD COLUMN width INT"
Error executing database file:  "rc/sql/6.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: height")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN height INT"
Error executing database file:  "rc/sql/7.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: orientation")
SQLite string:  "-- Add orientation column to PhotoEditTable to support rotating files where we
-- don't store the orientation as metadata in the file itself.

ALTER TABLE PhotoEditTable ADD COLUMN orientation INT DEFAULT 0"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: timestamp")
SQLite string:  "-- Optimizations for media table

ALTER TABLE MediaTable ADD COLUMN timestamp INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: exposure_time")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN exposure_time INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: original_orientation")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN original_orientation INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: filesize")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN filesize INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaTableFilenameIndex already exists")
SQLite string:  "CREATE INDEX MediaTableFilenameIndex ON MediaTable(filename)"
Opened ("/home/phablet/Pictures", "/home/phablet/Videos") 0 media files loaded in 35 ms - inf ms per media
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:246:5: QML Button: Theme.createStyleComponent() is deprecated. Use
ThemeSettings instead.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:47:5: QML Header: Theme.createStyleComponent() is deprecated. Use
ThemeSettings instead.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/Utility/PhotosToolbarActions.qml:48:5: QML ActionItem:
Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
qml: WARNING: Header is an internal component of Ubuntu.Components andits API may change or be removed at any moment.Please use MainView and Page
instead.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: Page.tools is a deprecated property. Please use Page.head instead.
qml: WARNING: Header is an internal component of Ubuntu.Components andits API may change or be removed at any moment.Please use MainView and Page
instead.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:186: TypeError: Cannot read property 'peers' of null
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:186: TypeError: Cannot read property 'peers' of null
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
Unable to set collection of type void*
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumViewer/AlbumViewer.qml:395: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumViewer/AlbumViewer.qml:393: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumEditor/AlbumEditor.qml:126: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumEditor/AlbumEditor.qml:158: TypeError: Cannot read property of null
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
QFileSystemWatcher::addPaths: list is empty
libust[8467/8498]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8467/8497]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8900]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8900]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
Testability driver loaded. Wire protocol version is "1.4".
Testability driver loaded. Wire protocol version is "1.4".
Unable to register object on D-Bus! Testability interface will not be available.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/GalleryApplication.qml:202:5: QML Binding: Binding loop detected for
property "target"

(process:8894): dconf-CRITICAL **: unable to create file '/run/user/32011/dconf/user': Permission denied.  dconf will not work properly.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/GalleryApplication.qml:202:5: QML Binding: Binding loop detected for
property "target"
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:310:9: QML ActionContext: Unity.Action deprecatedContext.
Please use ActionContext from Ubuntu.Components.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/LoadingScreen.qml:38:9: QML ActivityIndicator: Theme.createStyleComponent()
is deprecated. Use ThemeSettings instead.
UbuntuWindow - regular geometry
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=1080, height=846)
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:154:42: Unable to assign [undefined] to bool
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/MainScreen.qml:288:26: Unable to assign QString to QQmlComponent*
Opening ("/home/phablet/Pictures", "/home/phablet/Videos") ...
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table MediaTable already exists")
SQLite string:  "-- Media table

CREATE TABLE MediaTable (
  id INTEGER PRIMARY KEY,
  filename TEXT NOT NULL
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table AlbumTable already exists")
SQLite string:  "-- Album table

CREATE TABLE AlbumTable (
  id INTEGER PRIMARY KEY,
  time_added INTEGER,
  title TEXT NOT NULL,
  subtitle TEXT NOT NULL
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index AlbumTableTimeAddedIndex already exists")
SQLite string:  "CREATE INDEX AlbumTableTimeAddedIndex ON AlbumTable(time_added)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table MediaAlbumTable already exists")
SQLite string:  "-- Media/album relationship table

CREATE TABLE MediaAlbumTable (
  media_id INTEGER REFERENCES MediaTable ON DELETE CASCADE,
  album_id INTEGER REFERENCES AlbumTable ON DELETE CASCADE
)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaAlbumTableMediaIndex already exists")
SQLite string:  "CREATE INDEX MediaAlbumTableMediaIndex ON MediaAlbumTable(media_id)"
Error executing database file:  "rc/sql/1.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaAlbumTableAlbumIndex already exists")
SQLite string:  "CREATE INDEX MediaAlbumTableAlbumIndex ON MediaAlbumTable(album_id)"
Error executing database file:  "rc/sql/2.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: is_closed")
SQLite string:  "-- Album table
-- Add columns for open state and current page

ALTER TABLE AlbumTable ADD COLUMN is_closed BOOLEAN DEFAULT 1"
Error executing database file:  "rc/sql/2.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: current_page")
SQLite string:  "ALTER TABLE AlbumTable ADD COLUMN current_page INTEGER DEFAULT -1"
Error executing database file:  "rc/sql/3.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "table PhotoEditTable already exists")
SQLite string:  "-- Photo edit table

CREATE TABLE PhotoEditTable (
  media_id INTEGER PRIMARY KEY REFERENCES MediaTable ON DELETE CASCADE,
  crop_rectangle TEXT
)"
Error executing database file:  "rc/sql/4.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: cover_nickname")
SQLite string:  "-- Album table
-- Add column for the album cover name.

ALTER TABLE AlbumTable ADD COLUMN cover_nickname TEXT DEFAULT "default""
Error executing database file:  "rc/sql/5.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: is_enhanced")
SQLite string:  "-- Add is_enhanced column to PhotoEditTable to support one-touch auto-enhance

ALTER TABLE PhotoEditTable ADD COLUMN is_enhanced BOOLEAN default false"
Error executing database file:  "rc/sql/6.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: width")
SQLite string:  "-- Media table
-- Add columns for media size.

ALTER TABLE MediaTable ADD COLUMN width INT"
Error executing database file:  "rc/sql/6.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: height")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN height INT"
Error executing database file:  "rc/sql/7.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: orientation")
SQLite string:  "-- Add orientation column to PhotoEditTable to support rotating files where we
-- don't store the orientation as metadata in the file itself.

ALTER TABLE PhotoEditTable ADD COLUMN orientation INT DEFAULT 0"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: timestamp")
SQLite string:  "-- Optimizations for media table

ALTER TABLE MediaTable ADD COLUMN timestamp INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: exposure_time")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN exposure_time INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: original_orientation")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN original_orientation INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "duplicate column name: filesize")
SQLite string:  "ALTER TABLE MediaTable ADD COLUMN filesize INT DEFAULT NULL"
Error executing database file:  "rc/sql/8.sql"
SQLite error:  QSqlError("1", "Unable to execute statement", "index MediaTableFilenameIndex already exists")
SQLite string:  "CREATE INDEX MediaTableFilenameIndex ON MediaTable(filename)"
Opened ("/home/phablet/Pictures", "/home/phablet/Videos") 0 media files loaded in 28 ms - inf ms per media
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:246:5: QML Button: Theme.createStyleComponent() is deprecated. Use
ThemeSettings instead.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:47:5: QML Header: Theme.createStyleComponent() is deprecated. Use
ThemeSettings instead.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/Utility/PhotosToolbarActions.qml:48:5: QML ActionItem:
Theme.createStyleComponent() is deprecated. Use ThemeSettings instead.
qml: WARNING: Header is an internal component of Ubuntu.Components andits API may change or be removed at any moment.Please use MainView and Page
instead.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: Page.tools is a deprecated property. Please use Page.head instead.
qml: WARNING: Header is an internal component of Ubuntu.Components andits API may change or be removed at any moment.Please use MainView and Page
instead.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:186: TypeError: Cannot read property 'peers' of null
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker10.qml:186: TypeError: Cannot read property 'peers' of null
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
Unable to set collection of type void*
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
qml: WARNING! Do not put Page/Tabs/PageStack inside another Page because that causes confusion which is the active page that sets the title and
actions.
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumViewer/AlbumViewer.qml:395: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumViewer/AlbumViewer.qml:393: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumEditor/AlbumEditor.qml:126: TypeError: Cannot read property of null
file:///usr/share/click/preinstalled/com.ubuntu.gallery/2.9.1.1209/rc/qml/AlbumEditor/AlbumEditor.qml:158: TypeError: Cannot read property of null
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
QFileSystemWatcher::addPaths: list is empty
libust[8894/8914]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:971)
libust[8894/8913]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:971)
}}}

test-log: {{{
04:56:57.527 WARNING testcase:175 - Process manager backend unavailable, application snapshot support disabled.
04:56:57.591 DEBUG __init__:217 - Launching gallery-app via click package.
04:56:57.592 INFO _launcher:280 - Attempting to launch click application '(default)' from click package  'com.ubuntu.gallery' and URIs ''
04:56:58.699 INFO _launcher:120 - Attempting to launch application 'com.ubuntu.gallery_gallery_2.9.1.1209' with URIs '' via upstart-app-launch
04:57:05.578 INFO logging:45 - MainScreen: Open a tab. Arguments ('albumsTab',). Keyword arguments: {}.
04:57:05.784 DEBUG dbus:352 - Selecting objects of type Tab with attributes: {}
04:57:06.418 INFO logging:45 - MainScreen: Open a tab. Arguments (0,). Keyword arguments: {}.
04:57:06.732 DEBUG dbus:352 - Selecting objects of type Tab with attributes: {}
04:57:08.669 WARNING _header:298 - Header is an internal QML component of Ubuntu.Components and its API may change or be removed at any moment. Please
use MainView and Page instead.
04:57:08.681 INFO logging:45 - AppHeader: Open a tab. This only supports the new tabs in the header. Arguments (0,). Keyword arguments: {}.
04:57:09.024 DEBUG _common:45 - Moving to object's globalRect coordinates.
04:57:09.025 DEBUG _uinput:485 - Tapping at: 63,121
04:57:13.041 DEBUG _common:45 - Moving to object's globalRect coordinates.
04:57:13.042 DEBUG _uinput:485 - Tapping at: 180,245
04:57:13.462 DEBUG dbus:352 - Selecting objects of type Tab with attributes: {}
04:57:15.477 DEBUG dbus:352 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
04:57:18.269 DEBUG dbus:352 - Selecting objects of type CheckerboardDelegate with attributes: {'objectName': 'checkerboardDelegate'}
04:57:22.002 WARNING _header:298 - Header is an internal QML component of Ubuntu.Components and its API may change or be removed at any moment. Please
use MainView and Page instead.
04:57:22.407 DEBUG _common:45 - Moving to object's globalRect coordinates.
04:57:22.408 DEBUG _uinput:485 - Tapping at: 927,121
04:57:28.369 DEBUG runtest:189 - Deleting /home/phablet/Pictures
04:57:34.017 DEBUG runtest:189 - Restoring backed up pics to /home/phablet/Pictures
}}}

Traceback (most recent call last):
  File "/home/phablet/autopilot/gallery_app/tests/test_albums_view.py", line 75, in test_add_album
    plus = self.album_view.get_plus_icon_empty_album()
  File "/home/phablet/autopilot/gallery_app/emulators/album_view.py", line 72, in get_plus_icon_empty_album
    visible=True)
  File "/usr/lib/python3/dist-packages/autopilot/introspection/dbus.py", line 244, in select_single
    raise StateNotFoundError(type_name_str, **kwargs)
autopilot.exceptions.StateNotFoundError: Object not found with name 'QQuickImage' and properties {'objectName': 'albumCoverAddPhotosImage', 'visible':
True}.

Tips on minimizing the occurrence of this failureare available here:
http://developer.ubuntu.com/api/devel/ubuntu-14.10/python/autopilot/faq/troubleshooting.html

command_type
testcase_test