We have moved to a new Sailfish OS Forum. Please start new discussions there.
6

bug: camera stopped working

asked 2014-08-28 20:43:16 +0300

vbregier gravatar image

updated 2014-09-05 17:43:28 +0300

Hi,

My camera stopped working. Apps using the camera under android are getting pictures fine, and other sailfish using the camera seem not to be able to get pictures either. So I expect this is a system issue. I tried stopping android VM ith killdroid app, reinstalling jolla-camera-settings package, but it changed nothing.

Any ideas ? Is there a pkcon command to ask reinstallation of all system packages ? I would like to avoid loosing my configuration with a Reset Device...

Here is a log I got with journalctl -fa when camera app starts:

août 28 19:46:14 zeratul [21313]: [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Media' does not contain a module identifier directive - i t cannot be protected from external registrations.
août 28 19:46:14 zeratul [21313]: [W] QQmlImportDatabase::importPlugin:1697 - Module 'com.jolla.camera' does not contain a module identifier directive - it cannot be protected from external registrations.
août 28 19:46:14 zeratul [21313]: [W] QQmlImportDatabase::importPlugin:1697 - Module 'QtDocGallery' does not contain a module identifier directive - it cannot be protected from external registrations.
août 28 19:46:14 zeratul ohmd[518]: *** resource_request:  register   40
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'scene-mode' from interface 'Gs tPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'noise-reduction' from interface 'GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'image-preview-supported-caps' from interface 'GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'image-capture-supported-caps' from interface 'GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'flicker-mode' from interface ' GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'exposure' from interface 'GstP hotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'colour-tone-mode' from interface 'GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'capabilities' from interface ' GstPhotography'
août 28 19:46:14 zeratul [21313]: GLIB CRITICAL ** GLib-GObject - Object class GstDroidCamSrc doesn't implement property 'aperture' from interface 'GstP hotography'
août 28 19:46:15 zeratul lipstick[962]: DeclarativeCoverWindow: I have a default alpha buffer
août 28 19:46:16 zeratul lipstick[962]: Unable to open /proc/16378/oom_score _adj for writing
août 28 19:46:16 zeratul ohmd[518]: *** resource_request:  update   40
août 28 19:46:16 zeratul ohmd[518]: *** resource_request:  register   41
août 28 19:46:16 zeratul ohmd[518]: *** resource_request:  acquire   40
août 28 19:46:16 zeratul ohmd[518]: *** resource_request:  acquire   41
août 28 19:46:16 zeratul [21313]: [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Gallery' does not contain a module identifier directive - it cannot be protected from external registrations.
août 28 19:46:16 zeratul [21313]: [W] CameraBinSession::processBusMessage:91 9 - CameraBin error: "Your GStreamer installation is missing a plug-in."
août 28 19:46:16 zeratul [21313]: [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Ambience' does not contain a module identifier directive - it cannot be protected from external registrations.
août 28 19:46:16 zeratul booster-silica-qt5[21468]: [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL
août 28 19:46:17 zeratul booster-silica-qt5[21468]: [W] QQmlImportDatabase:: importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module ident ifier directive - it cannot be protected from external registrations.
août 28 19:46:17 zeratul ohmd[518]: *** resource_request:  register   42
août 28 19:46:17 zeratul ohmd[518]: *** resource_request:  audio   42
août 28 19:46:17 zeratul ohmd[518]: *** resource_request:  update   42
août 28 19:46:17 zeratul [21313]: [W] unknown:16 - file:///usr/share/jolla-camera/pages/gallery/GalleryView.qml:16: Unable to assign [undefined] to bool
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  release   41
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  update   40
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  release   40
août 28 19:46:18 zeratul lipstick[962]: Unable to open /proc/16378/oom_score_adj for writing
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  unregister   40
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  unregister   41
août 28 19:46:18 zeratul ohmd[518]: *** resource_request:  unregister   42
edit retag flag offensive close delete

Comments

I got an interesting log with csd tool, running «Front Camera» test.

Anybody knows what this « QCameraImageCapture error: "Camera not ready" » might be ?

$ csd
[D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL
[W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations.
[D] FactoryUtils::getFlags:94 - FILE   said: "0200"
[D] FactoryUtils::isVerified:123 - Head =  "0200"
[D] FactoryUtils::writeCsdResults:55 - writeCsdResults: "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
DeclarativeCoverWindow: I have a default alpha buffer
[D] FactoryUtils::writeCsdResults:55 - writeCsdResults: "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
[W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Media' does not contain a module identifier directive - it cannot be protected from external registrations.
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'scene-mode' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'noise-reduction' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'image-preview-supported-caps' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'image-capture-supported-caps' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'flicker-mode' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'exposure' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'colour-tone-mode' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'capabilities' from interface 'GstPhotography'
(csd:2266): GLib-GObject-CRITICAL **: Object class GstDroidCamSrc doesn't implement property 'aperture' from interface 'GstPhotography'
FrontCamera Component.onCompleted
Clicked 19
[W] QDeclarativeCameraCapture::_q_captureFailed:246 - QCameraImageCapture error: "Camera not ready"
Capture failed
do Capture
vbregier ( 2014-09-04 17:37:19 +0300 )edit

Have you installed any gstreamer plugins from open repos?

Could you do: rpm -qa | grep gstreamer

And paste the output here?

MSameer ( 2014-09-08 21:15:49 +0300 )edit

I had installed openrepos packages that provide extra codec support to gstreamer, yes. I think I have removed all of them when trying to solve this issue.

$ rpm -qa |grep gstreamer
PackageKit-gstreamer-plugin-0.8.9+46-1.17.1.armv7hl
gstreamer0.10-droidcamsrc-0.1.1-10.11.2.jolla.armv7hl
libgstreamer0.10-gralloc-0.1.0-10.7.2.jolla.armv7hl
gstreamer0.10-colorconv-0.0.20131121.0-10.1.3.jolla.armv7hl
nemo-gstreamer0.10-interfaces-0.0.20131118.0-1.3.3.armv7hl
gstreamer0.10-ffmpeg-extra-0.10.13-1.armv7hl
gstreamer0.10-droideglsink-0.1.0-10.7.2.jolla.armv7hl
gstreamer0.10-ffmpeg-0.10.13-10.1.4.jolla.armv7hl
libgstreamer0.10-nativebuffer-0.1.0-10.7.2.jolla.armv7hl
gstreamer0.10-omx-0.1.0-10.8.8.jolla.armv7hl
gstreamer-0.10.36-1.1.3.armv7hl

Thank you for your help (if you’re still watching this thread 1 month later).

vbregier ( 2014-10-04 23:55:51 +0300 )edit

Remove gstreamer0.10-ffmpeg-extra-0.10.13-1.armv7hl

Then as nemo user execute: rm /home/nemo/.gstreamer-0.10/registry

MSameer ( 2014-10-05 00:16:41 +0300 )edit

I removed gstreamer0.10-ffmpeg-extra-0.10.13-1.armv7hl, rm /home/nemo/.gstreamer-0.10, rebooted, but I still get the bug :( And csd still reports the same "camera not ready" message…

vbregier ( 2014-10-07 00:56:17 +0300 )edit

4 Answers

Sort by » oldest newest most voted
2

answered 2014-10-15 00:24:45 +0300

vbregier gravatar image

updated 2014-10-15 00:27:34 +0300

Ok, after some effort,

$ sudo zypper in -f gst-plugins-{good,bad,ugly}

then reboot, did the trick.

I post this as an answer in case somebody gets the same problem (thought I fear this was a random problem that could happen to any installed package…)

edit flag offensive delete publish link more
1

answered 2014-09-08 18:37:55 +0300

stezz gravatar image

Hi,

it seems you are missing a plugin. I have no idea how that happened though. Have you executed some command while in developer mode or done any development on top of camera/GStreamer?

Plugin should not disappear by themselves... Not sure if @MSameer can help here...

edit flag offensive delete publish link more

Comments

1

I have been using dev. mode to access the device, yes (that’s the point of jolla, that I can be root on my own device).

I don’t think I removed any package from gstreamer initially installed, but might have done so by mistake.

Shouldn’t camera package depend on all plugins necessary for it to work, anyways ? That’s the point of dependencies…

vbregier ( 2014-10-04 23:51:53 +0300 )edit

I am facing the same problem in my phone but when i go into terminl and try to reinstall plugins, it says sudo and zypper commands are not found. What shud i do?

daniel057 ( 2016-10-12 19:13:09 +0300 )edit
1

answered 2014-11-01 13:53:19 +0300

Lauri Laanemets gravatar image

I have exactly the same issue. Perhaps caused by the combination of opt-in release and gPodder from OpenRepos.

But I just cannot get it working. I have re-installed the gstreamer good and bad, and reinstalled the gst-plugins-droidcamsrc, but nothing helps.

And along with that, none of the Android apps work aymore. What should I do?

edit flag offensive delete publish link more

Comments

1

Looking at the GitHub source of GsrDroidCamSrc, the following properties indeed do not exsist: 'scene-mode', 'noise-reduction', 'image-preview-supported-caps', 'image-capture-supported-caps', 'flicker-mode', 'exposure', 'colour-tone-mode', 'capabilities', 'aperture'

Perhaps these "critical" messages are not related? Or GidHub is out of date?

Lauri Laanemets ( 2014-11-01 15:05:32 +0300 )edit
1

OK, now I know. My camera HW is probably broken. Even after factory reset it doesn't work :(

jourrnal gives something like "Cannot open camera device"

Lauri Laanemets ( 2014-11-01 17:02:00 +0300 )edit
1

Hehe, I got it working!

The "critical" messages in the log was not an issue at all. I dropped my phone once from a low height, and seems that camera was displaced from it's connecting pins. So, "gently" putting pressure on the camera module from each side did the trick. Probably a bad HW design?

Lauri Laanemets ( 2014-11-01 23:37:58 +0300 )edit
0

answered 2014-08-28 20:49:37 +0300

simo gravatar image

updated 2014-08-28 22:30:30 +0300

  • pkcon refresh
  • pccon update [packet name]
  • pkcon install [packet-name]
edit flag offensive delete publish link more

Comments

Command failed: Option 'update-system' is not supported

J4ZZ ( 2014-08-28 22:26:33 +0300 )edit

ow, we're missing one very basic linux option in that case... Edited that away, but I would like to see it as an option too

simo ( 2014-08-28 22:30:14 +0300 )edit

pkcon get-updates should do it instead. :)

J4ZZ ( 2014-08-29 19:29:26 +0300 )edit

I was looking for a way to reinstall (overwriting the files currently on the system) all the installed packages…

vbregier ( 2014-09-04 17:24:13 +0300 )edit

@vbregies How about just uninstalling those first with pkcon remove [packet-name] then?

simo ( 2014-09-04 17:27:46 +0300 )edit
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2014-08-28 20:43:16 +0300

Seen: 1,399 times

Last updated: Nov 01 '14