Gallery crashes on start

REPRODUCIBILITY (% or how often): 100%
BUILD ID = OS VERSION (Settings > About product): 4.3.0.12
HARDWARE (XA2, X10, X10 II, …): vollaphone/gigaset GS 290
UI LANGUAGE: en_US
REGRESSION: (compared to previous public release: Yes, No, ?): yup

DESCRIPTION:

Trying to open Gallery app displays cover view, spinning wheels and then goes away.

Running in a terminal works with a bunch’o errors. see below

PRECONDITIONS:

None. This happens regradless, even after a reboot.

STEPS TO REPRODUCE:

  1. tap gallery icon

EXPECTED RESULT:

The sight of all those beautiful pictures.

ACTUAL RESULT:

Boom.

ADDITIONAL INFORMATION:

logs produced with:
jolla-gallery > gal.log 2>&1

[D] unknown:0 - Using Wayland-EGL
library "libpq_cust.so" not found
[W] unknown:0 - DeclarativeGalleryService::DeclarativeGalleryService(QObject*) Failed to register com.jolla.gallery service

** (process:11252): WARNING **: 17:45:59.450: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:11252): WARNING **: 17:45:59.451: Error opening accounts DB: unable to open database file
[W] unknown:0 - Manager could not be created. DB is locked

** (process:11252): CRITICAL **: 17:45:59.452: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.452: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.453: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.453: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.633: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/vk.db" Service "VK" with data type "Images" will be inactive
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/vk.db" Service "VK" with data type "Images" will be inactive

** (process:11252): CRITICAL **: 17:45:59.656: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.657: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.658: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.658: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/dropbox.db" Service "Dropbox" with data type "Images" will be inactive

** (process:11252): CRITICAL **: 17:45:59.671: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/dropbox.db" Service "Dropbox" with data type "Images" will be inactive

** (process:11252): CRITICAL **: 17:45:59.691: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.691: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.692: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.692: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): WARNING **: 17:45:59.693: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:11252): WARNING **: 17:45:59.693: Error opening accounts DB: unable to open database file
[W] unknown:0 - Manager could not be created. DB is locked

** (process:11252): WARNING **: 17:45:59.694: Cannot create directory: /home/defaultuser/.local/share/system/privileged/Accounts/libaccounts-glib

** (process:11252): WARNING **: 17:45:59.694: Error opening accounts DB: unable to open database file
[W] unknown:0 - Manager could not be created. DB is locked

** (process:11252): CRITICAL **: 17:45:59.701: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.723: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.723: ag_manager_set_db_timeout: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.723: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed

** (process:11252): CRITICAL **: 17:45:59.724: ag_manager_list_services: assertion 'AG_IS_MANAGER (manager)' failed
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_ini_read: unable to open file
SailfishKeyProvider_storedKey(): error: no scheme or key found for provider/service
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/onedrive.db" Service "OneDrive" with data type "Images" will be inactive

** (process:11252): CRITICAL **: 17:45:59.737: ag_manager_list: assertion 'AG_IS_MANAGER (manager)' failed
[W] unknown:0 - bool AbstractSocialCacheDatabasePrivate::initializeThreadData(AbstractSocialCacheDatabasePrivate::ThreadData*) const Unable to create database "/home/defaultuser/.local/share/system/privileged//Images/onedrive.db" Service "OneDrive" with data type "Images" will be inactive
[W] unknown:0 - NextcloudImageCache: failed to open database: "Unable to create database directory: /home/defaultuser/.local/share/system/privileged/Images"
[W] unknown:0 - NextcloudUserModel::loadData: failed: "Database is not open, cannot query users"
[W] unknown:0 - NextcloudUserModel::loadData: failed: "Database is not open, cannot query users"
[W] unknown:0 - NextcloudUserModel::loadData: failed: "Database is not open, cannot query users"
[W] unknown:0 - NextcloudUserModel::loadData: failed: "Database is not open, cannot query users"
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image
[W] unknown:0 - QImage::scaled: Image is a null image

I believe it’s my fault. I’ve been rebuilding Videoworks (just did a harbour release) and the gallery crash behaviour seems to be the result of my writing to the Videos directory? In any case, after 3 or 4 reboots, the gallery is back (indexing?). Then, do some video editing, save to file and the Gallery app crashes as above.