Jolla-Camera issues. (OS 4.3.0.12 / Jolla C/Intex Aquafish.)

Jolla-Camera shows coloured bars and gray grains. (Seems to be some Gstreamer default)

[nemo@Sailfish ~]$ jolla-camera
[D] unknown:0 - Using Wayland-EGL
gst-plugin-scanner: /usr/share/droidmedia/hybris.c:53: __resolve_sym: Assertion `ptr != NULL' failed.
gst-plugin-scanner: /usr/share/droidmedia/hybris.c:53: __resolve_sym: Assertion `ptr != NULL' failed.
ALSA lib conf.c:3817:(config_file_open) cannot access file /etc/alsa/conf.d/50-arcam-av-ctl.conf
ALSA lib conf.c:3737:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib conf.c:4201:(snd_config_update_r) hooks failed, removing configuration
[W] unknown:0 - no alsa devices available
[W] unknown:20 - file:///usr/lib/qt5/qml/com/jolla/camera/settings/CameraDeviceToggle.qml:20: TypeError: Cannot read property 'length' of undefined
[D] onCompleted:105 - ViewPlaceholder requires a SilicaFlickable parent
[nemo@Sailfish ~]$ 

How do I fix this?

(It’s not hardware failure because the camera is usable with an Android app.)

Background: After upgrading to 4.3.0.12 the camera app wasn’t starting up/crashing.

Read in a forum post that deleting the contents of /home/nemo/.cache/gstreamer-1.0/ would fix the issue.

Deleting the cache did get the app to start up but it can’t seem to access the camera anymore and instead shows the GStreamer test bars and gray grains.

Also read elsewhere that “/usr/bin/killall minimediaservice” would fix the camera but that doesn’t help either.

I’m unable to uninstall/re-install the camera app

[root@Sailfish nemo]# pkcon remove jolla-camera
Resolving                                                                                                                                                                                                                                                  
Querying                                                                                                                                                                                                                                                   
Testing changes                                                                                                                                                                                                                                           
Finished                                                                                                                                                                                                                                                  
Fatal error: This request will break your system!
[root@Sailfish nemo]# 

Does this help? Have a look here: [4.3.0.12] Jolla camera (also torch) does not start at all - as well as videos do not play That bug at least affects Xperia X and XA2

I had seen that post but thought it only applied to folks who had a missing repo or had messed with official repos in some way.

These are my repos. (global and user)

Enabled repositories (global): 
 - adaptation-common ... https://releases.jolla.com/releases/4.3.0.12/jolla-hw/adaptation-common/armv7hl/
 - adaptation0       ... https://store-repository.jolla.com/releases/4.3.0.12/jolla-hw/adaptation-qualcomm-l500d/armv7hl/
 - aliendalvik       ... https://store-repository.jolla.com/releases/4.3.0.12/aliendalvik/l500d/
 - apps              ... https://releases.jolla.com/jolla-apps/4.3.0.12/armv7hl/
 - customer-jolla    ... https://releases.jolla.com/features/4.3.0.12/customers/jolla/armv7hl/
 - hotfixes          ... https://releases.jolla.com/releases/4.3.0.12/hotfixes/armv7hl/
 - jolla             ... https://releases.jolla.com/releases/4.3.0.12/jolla/armv7hl/
 - mentaljam-obs     ... http://repo.merproject.org/obs/home:/mentaljam/4.3.0.12_armv7hl/
 - sailfish-eas      ... https://store-repository.jolla.com/features/4.3.0.12/sailfish-eas/armv7hl/
 - xt9               ... https://store-repository.jolla.com/features/4.3.0.12/xt9/armv7hl/

Enabled repositories (user): 
 - openrepos-direc85 ... https://sailfish.openrepos.net/direc85/personal/main
 - store             ... https://store-repository.jolla.com/l500d/armv7hl/?version=4.3.0.12

Disabled repositories (global, might be overridden by user config): 

Disabled repositories (user): 
 - home           ... https://download.jollamobile.com/home:/honeybadger/latest_armv7hl/
 - customer-intex ... 
[root@Sailfish nemo]# 

I saw your last replies in that thread that the “store” repo also causes issues.

So I have removed both user repos.

The camera still shows the gstreamer color bars and gray noise.

(I have deleted the SSU cache and run ssu ur and also deleted the gstreamer cache and rebooted the phone for good luck :slight_smile: )

FWIW I still get this for ssu up -f. is this needed for the camera to work?

[root@Sailfish nemo]# ssu up -f
Device is not registered, can't update credentials
[root@Sailfish nemo]# 

Output of ssu lr after removing both user repos.

[root@Sailfish nemo]# ssu lr
Enabled repositories (global): 
 - adaptation-common ... https://releases.jolla.com/releases/4.3.0.12/jolla-hw/adaptation-common/armv7hl/
 - adaptation0       ... https://store-repository.jolla.com/releases/4.3.0.12/jolla-hw/adaptation-qualcomm-l500d/armv7hl/
 - aliendalvik       ... https://store-repository.jolla.com/releases/4.3.0.12/aliendalvik/l500d/
 - apps              ... https://releases.jolla.com/jolla-apps/4.3.0.12/armv7hl/
 - customer-jolla    ... https://releases.jolla.com/features/4.3.0.12/customers/jolla/armv7hl/
 - hotfixes          ... https://releases.jolla.com/releases/4.3.0.12/hotfixes/armv7hl/
 - jolla             ... https://releases.jolla.com/releases/4.3.0.12/jolla/armv7hl/
 - mentaljam-obs     ... http://repo.merproject.org/obs/home:/mentaljam/4.3.0.12_armv7hl/
 - sailfish-eas      ... https://store-repository.jolla.com/features/4.3.0.12/sailfish-eas/armv7hl/
 - xt9               ... https://store-repository.jolla.com/features/4.3.0.12/xt9/armv7hl/

Enabled repositories (user): 

Disabled repositories (global, might be overridden by user config): 

Disabled repositories (user): 
 - home           ... https://download.jollamobile.com/home:/honeybadger/latest_armv7hl/
 - customer-intex ... 
[root@Sailfish nemo]# 

I’m using the sfos-upgrade program to upgrade (in case the native installer gets it wrong) and validate the update state. You can download and install the rpm without adding the repo. Running the program may fix the error (it did for me, with the same wrong repo enabled before)

Thanks sebix!

sfos-upgrade fixed the camera issues for me.

(The flashlight too was broken but I hadn’t noticed it but it too works now.)

[root@Sailfish delete]# sfos-upgrade 4.3.0.12 
Notice: Less than 1 GiB (942784 KiB) free space on the root filesystem!
Please consider to clean up or enlarge the root filesystem, see e.g.:
https://gitlab.com/Phoen7x/sailfishX/-/blob/master/README.md#33-increasing-the-root-lvm-volume-size

Notice: Mind that sfos-upgrade is best run on a freshly rebooted device.

Notice: Do you want to ensure this SailfishOS 4.3.0.12 installation to be complete and up to date? (Y/N) Y

Notice: For troubleshooting issues with the upgrade proper, please consult https://jolla.zendesk.com/hc/en-us/articles/360005795474

- Stopping osupdate-check.timer
- Stopping aliendalvik.service
- Stopping alien-settings.service

- Setting SSU to SailfishOS release:
Changing release from 4.3.0.12 to 4.3.0.12
Your device is now in release mode!

- Fetching and installing the SailfishOS upgrade from 4.3.0.12 to 4.3.0.12 (this may take a while):
REFRESHING CACHE AND DOWNLOADING PACKAGES
Finished transaction (status=1, runtime=73699ms)
UPGRADING SYSTEM
Finished transaction (status=1, runtime=8122ms)
FINISHING

Download (3 packages)
 - gmp-droid;0.4-1.2.1.jolla;armv7hl;adaptation-common
 - gstreamer1.0-droid;0.20210820.0-1.2.1.jolla;armv7hl;adaptation-common
 - qtscenegraph-adaptation;0.7.6-1.2.1.jolla;armv7hl;adaptation-common

Install (3 packages)
 - gmp-droid;0.4-1.2.1.jolla;armv7hl;adaptation-common
 - gstreamer1.0-droid;0.20210820.0-1.2.1.jolla;armv7hl;adaptation-common
 - qtscenegraph-adaptation;0.7.6-1.2.1.jolla;armv7hl;adaptation-common

REBOOT NOW unless you need to investigate update
issues or know what you are doing (or both).

All bugs encountered until reboot are features.

Notice: After rebooting, do not miss to run post_sfos-upgrade
[root@Sailfish delete]#