[TIMOB-13306] Android: App kills Android Debugger session on Windows
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-04-04T20:26:56.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 07 Core, 2013 Sprint 07, Release 3.2.0 |
Components | Android |
Labels | module_android, qe-testadded, regression |
Reporter | Federico Casali |
Assignee | Allen Yeung |
Created | 2013-04-01T23:32:59.000+0000 |
Updated | 2014-02-24T22:46:21.000+0000 |
Description
Problem description
Debugger it's not working as expected on Windows OS, exiting just after installing the app on device.
Steps to reproduce
1) Create a new default project (either classic one or alloy)
2) Add a breakpoint and debug the App on device
Result: 'Debug on Android Device' window appears as expected. The App is built, but just after installing and launching the App, the Debugger exit and disconnect. The App is installed on device, but it's then stuck at the splashscreen if trying to manually launch it.
Attaching Studio error log.
Not reproducible using Studio GA 3.0.2.201302191606 (regression)
Attachments
Max, can you please take a look?
After investigation, a simple fix to CLI resolved the issue. Basically it adds a small timeout to launching app on device. I still do believe there is a bug related to race condition in Titanium Studio.
PR https://github.com/appcelerator/titanium_mobile/pull/4066
V8 protocol log/exception:
This should be reverted to do the launch. We fixed the problem from the Studio side.
Reverting this fix: https://github.com/appcelerator/titanium_mobile/pull/4082 3_1_X backport: https://github.com/appcelerator/titanium_mobile/pull/4083
Verified as fixed with: Titanium Studio: 3.1.0.201304031528 TiSDK: 3.1.0.v20130404173046 Android Google Nexus One Alloy version 1.1.0-beta CLI version 3.1.0-beta Current behavior is reverted to the original one, with the App auto launching once installed. Studio still display a misleading message on the 'Debug on Android Device' popup window, telling the user to manually launch the app. Opening a separate Jira for this.
Verified as fixed and closing. +Environment:+ Windows 8.1 Titanium Studio, build: 3.2.0.201310240435 Titanium SDK, build: 3.1.3.GA CLI: 3.1.2 Alloy: 1.2.2 Samsung Galaxy S4: 4.2.2 App launches automatically and studio changes to debug perspective. Stops at breakpoint successfully and never kills session.