Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 23A35107B8 for ; Tue, 18 Feb 2014 09:07:42 +0000 (UTC) Received: (qmail 58210 invoked by uid 500); 18 Feb 2014 09:07:40 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 57931 invoked by uid 500); 18 Feb 2014 09:07:33 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Delivered-To: moderator for dev@cordova.apache.org Received: (qmail 21592 invoked by uid 99); 18 Feb 2014 07:10:29 -0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of james.rivett.carnac@gmail.com designates 209.85.219.52 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=HXCfjmwbgCB/1MyiYQ4l5MV7tfAYJ/iuO8trp54Ptj8=; b=NzQCqJlhy6XiLM/Cxx5Khy9Ux9rqTKDl57zM8ro/hLGORZ7CUTFhgr5wOojTgq8TAf JPA4hJ23j94osTm5QOFT/9gG4d5Brxl4/Ft1uju8MfsFfUBKoWT2Jt1DxgOgbSKgF/JC NPy2lzlsbRKuEdoBJIjKSQe/7M7dpNzengFPkOYpJy+ian2zvB8KZ8LMNLIrBOccftC2 WzDO71g/NP4ioSc2z1gZDKT8rXi3mhT3nL5q8PJ/qvjuy7wmOoYHqPyrJTMBM9iIS+OS S1wXDPlTGBPEd0tZVmekTfnjFnYXlxLCHT3cb50bttGGz4exdgMPjXFJPknISSzbEIO/ OfOg== MIME-Version: 1.0 X-Received: by 10.60.95.5 with SMTP id dg5mr24710872oeb.8.1392707401483; Mon, 17 Feb 2014 23:10:01 -0800 (PST) Date: Tue, 18 Feb 2014 15:10:01 +0800 Message-ID: Subject: MessageQueue seems to stop sending messages to the webView From: James Rivett-Carnac To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=089e01227f50f10cc504f2a8f5d9 X-Virus-Checked: Checked by ClamAV on apache.org --089e01227f50f10cc504f2a8f5d9 Content-Type: text/plain; charset=UTF-8 Hello, I'm uisng an embedded cordova webview and am seeing something where by the webview doesn't receive messages sent to it from my plugin. I've seen this with: android 4.3, 4.4.2, (Moto G, Nexus 7 2012) cordova 3.3.0-rc1, 3.3.0-0.1.1, 3.3.1-0.4.2 The application is receiveing informatiion from a USB device (the phone/tablet runs in accessory mode), reading this information in its own thread. These call callbacks, and change the state in the webview (lavaca app). Generally this works without issues. Sometimes, the screen doesn't update. If I profile the threads running, the webview is not showing any activity (except maybe a call to uptime). If I unplug and plug back in the USB, the screen goes through all the pending updates (quickly flashes through them). The app does *not* return to normal opperations at this point: I have to unplug/plug back in for every message that is sent. If I do this while monitoring the threads, I see calls to the android message handler happening at this point. When it is working correctly, these calls happen when the event is triggered. My questions - what could be causing this? Is there a way to force the message queue to trigger, other than unpluggin/pluggin back in? James --089e01227f50f10cc504f2a8f5d9--