[TIMOB-15841] CLI: App does not get installed on emulator & fails with "error :1" when debugging for android on emulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-10T00:34:01.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | 2013 Sprint 25, 2013 Sprint 25 Core, Release 3.2.0, Release 3.3.0 |
Components | CLI |
Labels | module_debugger, qe-3.2.0, qe-testadded |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2013-11-28T00:12:54.000+0000 |
Updated | 2014-03-21T22:51:05.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
debug_logs.txt | 2013-12-09T11:39:38.000+0000 | 20381 |
Degguer Connection refused error.txt | 2013-12-05T11:26:32.000+0000 | 3574 |
Below are the studio logs when the failure occurs. I do not see any errors in the logs though.
Initially I was also facing the error scenario as mentioned in this bug. Apart from that I also faced issues related to adb server. I was continuously getting Connection refused or 'Error initiating the debugger connection' connection error in the Studio log file. The Console log said to check the abd server connection. I tried to resolve this problem by using the cli commands as given below, $ killall adb $ cd
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5075 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5076
Reopening as still I get the same error. After working with Allen & Praveen we saw that debugging works fine on custom created emulators & not on created using python by studio. Environment: Appcel Studio : 3.2.0.201312052211 Ti SDK : 3.2.0.v20131206113246 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta
@Ingo-I am not exactly sure as I don't remember since when I had the old non custom emulators,but these steps might work: 1.Use CLI 3.1.2.GA & 3.1.3 studio so that you studio/CLI would create an emulator for you. Mine created by studio/CLI are named something like this "titanium_22_HVGA". 2.When you use Studio 3.2.0 & CLI 3.2.0-beta you will see these emulators in the emulators list to build for. 3.Debug any app on these emulators from the 3.2.0 studio. You should see the issue.
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5091 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5092
Below are my observations while verifying this issue Success scenario: 1. I was able to launch the Debug perspective. 2. The app successfully launched on the emulator. 3. The breakpoints were updated in the Breakpoint window. Failure Scenario: 1. The breakpoints were not hit. Please observe the console log file 'debug_log.txt' attached for further clarification.
Verified the issue for app not getting installed on the emulator & I was not able to reproduce the issue. If we do not have a SD card for an emulator then we see error in the studio console:
The app gets installed successfully installed on the emulator & the debugger session is successfully started. Environment: Appcel Studio : 3.2.0.201312081316 Ti SDK : 3.2.0.v20131209000852 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta
I also verified the issue Shreya is seeing about debug breakpoint not getting hit & I could not reproduce the issue. I tested with two apps one of them being kitchensink & both times I was able to hit the debug point. Environment: Appcel Studio : 3.2.0.201312081316 Ti SDK : 3.2.0.v20131209000852 Mac OSX : 10.8.5 Alloy : 1.3.0-beta CLI - 3.2.0-beta
Closing based on my above comments.