Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5B312200D11 for ; Mon, 2 Oct 2017 14:57:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 59C831609EF; Mon, 2 Oct 2017 12:57:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A639D1609DE for ; Mon, 2 Oct 2017 14:57:05 +0200 (CEST) Received: (qmail 84605 invoked by uid 500); 2 Oct 2017 12:57:04 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 84594 invoked by uid 99); 2 Oct 2017 12:57:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2017 12:57:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 17BD4D9712 for ; Mon, 2 Oct 2017 12:57:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id WE-nTIvbHPex for ; Mon, 2 Oct 2017 12:57:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 1A3CB5F3FF for ; Mon, 2 Oct 2017 12:57:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 11C2EE0EF5 for ; Mon, 2 Oct 2017 12:57:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 96561242BF for ; Mon, 2 Oct 2017 12:57:00 +0000 (UTC) Date: Mon, 2 Oct 2017 12:57:00 +0000 (UTC) From: "Dominic Johnson (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: =?utf-8?Q?[jira]_[Commented]_(CB-10246)_camera.g?= =?utf-8?Q?etPicture_fails_with_=E2=80=9CCamera_cancelled=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 02 Oct 2017 12:57:06 -0000 [ https://issues.apache.org/jira/browse/CB-10246?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D161879= 88#comment-16187988 ]=20 Dominic Johnson commented on CB-10246: -------------------------------------- Hi Koen I have the same error and I wondered if you could expand on your solution: "a click-event (sometimes) firing twice" Thanks Dominic > camera.getPicture fails with =E2=80=9CCamera cancelled=E2=80=9D > ----------------------------------------------- > > Key: CB-10246 > URL: https://issues.apache.org/jira/browse/CB-10246 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-camera > Affects Versions: 3.5.0 > Reporter: Koen Jans > Labels: Android, triaged, wfc > > Hi All, > I'm developing a cordova app (cli-5.2.0) in which pictures are taken usin= g the cordova camera plugin > (cordova-plugin-camera, version 1.2.0). > {noformat} > var camera =3D navigator.camera;=20 > var cameraOptions =3D { =20 > destinationType: Camera.DestinationType.DATA_URL=20 > }; > camera.getPicture(function(result) { > alert('success'); > }, function(error) { > alert('fail ' + error); > }, cameraOptions); > {noformat} > This code works fine.. ..most of the time.=20 > On a particular slow android 4.4.4 device, this only works fine like 9 ou= t of 10 times.=20 > In like 1 out of 10, the call fails saying 'Camera cancelled' (although i= t was not cancelled with the back button or something).=20 > In that case, the failure callback 'Camera cancelled' is fired, and right= after that, the Camera UI is shown nevertheless. > (if a picture is taken then, the success callback is not called).=20 > It's hard to tell when this happens, but it looks like it happens more of= ten if the device is app is more busy.=20 > The log files do not show much more detail, except for things like: > bq.Attempted to send a second callback for ID: Camera1337050609 > However, these logs are also written if the call succeeds. > Any hints or help is much appreciated. > Thanks for your time, > Koen -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org