Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6600] Android: V8: Debugger: Unable to bind listening port if in use by another app.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-04T13:22:17.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-50, Release 1.8.0.1, Release 2.0.0
ComponentsAndroid
Labelsmodule_debugger, qe-testadded, verified-1.8.0.1
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2011-12-12T20:24:43.000+0000
Updated2014-06-19T12:43:08.000+0000

Description

Since we use a static port number for the V8 debugger agent's listening port, it may sometimes create conflicts if multiple applications in debug mode are running on the device. To test this launch an application in debug mode. Then switch to another application in your workspace and launch that as well in debug mode. Watch logcat and you should see an error from V8 that it failed to bind the port and will try again. Solution is probably to use the port number in deploy data for the device side (V8) like we do with the adb forwarding port (on host).

Comments

  1. Josh Roesslein 2011-12-12

    [PR 940](https://github.com/appcelerator/titanium_mobile/pull/940)
  2. Michael Pettiford 2011-12-15

    Tested on Ti Studio 1.0.7.201112141707 Ti Mob SDK 1.8.0.1.v20111214093905 V8 OSX Lion Emulator 2.2 After running the repro. steps there wasn't any error output from v8
  3. Wilson Luu 2011-12-19

    Verified fix on: SDK build: 1.8.0.1.RC3 Runtime: V8 Titanium Studio, build: 1.0.7.201112152014 OS: Mac OS X Lion Device: Android Emulator 2.3.3 Note: Did not verify fix on sdk build 1.9.0
  4. Dustin Hyde 2012-01-04

    Added label qe-testadded.

JSON Source