cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11282) Chrome inspector connection lost, detached from target
Date Tue, 17 May 2016 14:49:12 GMT

     [ https://issues.apache.org/jira/browse/CB-11282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Simon Williams updated CB-11282:
--------------------------------
    Description: 
Hi. I am having issues with using the Chrome remote inspector (chrome://inspect) with Android.

The WebView appears in the list and selecting to inspect attaches and shows some console messages,
but within half a second it loses the connection, saying "Detached from the target, reason:
Connection lost".

In the adb logcat it shows the following:

{code}
E/chromium(15597): [ERROR:http_connection.cc(35)] Too large read data is pending: capacity=1048576,
max_buffer_size=1048576, read=1048576
{code}

This seems to be due to the size of the source file (I am bundling everything into a single
file with browserify). If I run uglify on the bundle (taking it from 2.2Mb to 330K) then it
works fine.

I should also mention that this is definitely Cordova specific. The Chrome remote inspector
works fine for other WebViews/browsers regardless of size.

Thanks.

  was:
Hi. I am having issues with using the Chrome remote inspector (chrome://inspect) with Android.

The WebView appears in the list and selecting to inspect attaches and shows some console messages,
but within half a second it loses the connection, saying "Detached from the target, reason:
Connection lost".

In the adb logcat it shows the following:

{code}
E/chromium(15597): [ERROR:http_connection.cc(35)] Too large read data is pending: capacity=1048576,
max_buffer_size=1048576, read=1048576
{/code}

This seems to be due to the size of the source file (I am bundling everything into a single
file with browserify). If I run uglify on the bundle (taking it from 2.2Mb to 330K) then it
works fine.

I should also mention that this is definitely Cordova specific. The Chrome remote inspector
works fine for other WebViews/browsers regardless of size.

Thanks.


> Chrome inspector connection lost, detached from target
> ------------------------------------------------------
>
>                 Key: CB-11282
>                 URL: https://issues.apache.org/jira/browse/CB-11282
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: 6.1.1
>         Environment: Android, Linux
>            Reporter: Simon Williams
>              Labels: debugging, inspector
>
> Hi. I am having issues with using the Chrome remote inspector (chrome://inspect) with
Android.
> The WebView appears in the list and selecting to inspect attaches and shows some console
messages, but within half a second it loses the connection, saying "Detached from the target,
reason: Connection lost".
> In the adb logcat it shows the following:
> {code}
> E/chromium(15597): [ERROR:http_connection.cc(35)] Too large read data is pending: capacity=1048576,
max_buffer_size=1048576, read=1048576
> {code}
> This seems to be due to the size of the source file (I am bundling everything into a
single file with browserify). If I run uglify on the bundle (taking it from 2.2Mb to 330K)
then it works fine.
> I should also mention that this is definitely Cordova specific. The Chrome remote inspector
works fine for other WebViews/browsers regardless of size.
> Thanks.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message