Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11282

Chrome inspector connection lost, detached from target - large files

    XMLWordPrintableJSON

Details

    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:

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

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            simon@systemparadox.co.uk Simon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: