camera stops working after camera.start();camera.stop();camera.start()

Bug #1220626 reported by Maxim Ermilov
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cordova Ubuntu
Incomplete
Undecided
Unassigned
qtubuntu-camera (Ubuntu)
Confirmed
High
Unassigned

Bug Description

steps to reproduce:
1. run attached script on phone
2. press start button
3. press stop button
4. press start button
5. -> image stuck

It will work again only after
6. press stop button
7. press start button

Revision history for this message
Maxim Ermilov (zaspire) wrote :
Changed in qtubuntu-camera (Ubuntu):
assignee: nobody → Günter Schwann (schwann)
Revision history for this message
Günter Schwann (schwann) wrote :

I tested it on Galaxy Nexus with image 20130918.1 and it works as expected.

Which HW did you test this on? Can you check again with a newer image?

Revision history for this message
Günter Schwann (schwann) wrote :

The problem most probably is, that the disconnect() call in libhybris is not yet synchronous. Sergio is working on that one.

Bill Filler (bfiller)
Changed in qtubuntu-camera (Ubuntu):
assignee: Günter Schwann (schwann) → Sergio Schvezov (sergiusens)
importance: Undecided → High
Omer Akram (om26er)
Changed in qtubuntu-camera (Ubuntu):
status: New → Confirmed
Revision history for this message
David Barth (dbarth) wrote :

To make this work you need to add those settings in the declaration:
            captureMode: Camera.CaptureStillImage
            focus.focusMode: Camera.FocusAuto
            focus.focusPointMode: Camera.FocusPointAuto

Also I removed this statement:
            cameraState: Camera.UnloadedState

So I think the Cordova integration can be fixed and made to work, without waiting for the synchronous disconnect API. The camera-app does work as well without that API fix either.

tags: added: html5-blocker
David Barth (dbarth)
tags: removed: html5-blocker
Changed in cordova-ubuntu:
status: New → Incomplete
Changed in qtubuntu-camera (Ubuntu):
assignee: Sergio Schvezov (sergiusens) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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