[TIMOB-6600] Android: V8: Debugger: Unable to bind listening port if in use by another app.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-04T13:22:17.000+0000 |
Affected Version/s | Release 1.8.0 |
Fix Version/s | Sprint 2011-50, Release 1.8.0.1, Release 2.0.0 |
Components | Android |
Labels | module_debugger, qe-testadded, verified-1.8.0.1 |
Reporter | Josh Roesslein |
Assignee | Josh Roesslein |
Created | 2011-12-12T20:24:43.000+0000 |
Updated | 2014-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).
[PR 940](https://github.com/appcelerator/titanium_mobile/pull/940)
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
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
Added label qe-testadded.