Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9153] Android: Deployment: Android Emulator intermittently fails to launch app after timed out

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-05-12T21:11:57.000+0000
Affected Version/sRelease 2.0.0
Fix Version/s2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0
ComponentsAndroid, Tooling
Labelsandroidbuild, ay-verified, cb-verified, core, qe-and040912
ReporterDustin Hyde
AssigneeChris Barber
Created2012-03-29T13:37:17.000+0000
Updated2017-03-16T20:59:00.000+0000

Description

Emulator launches and fails to load app with timed out log: [INFO] logfile = /Users/dhyde/Documents/Titanium Studio 2.0.0 Workspace/NewProject/build.log [INFO] Building NewProject for Android ... one moment [INFO] Titanium SDK version: 2.0.0 (03/28/12 18:32 7c5487f) [ERROR] Timed out waiting for emulator to be ready, you may need to close the emulator and try again Steps to Reproduce: 1. Create project, launch on emulator. Expected Result: App should launch. Actual Result: Intermittently app does not install. Timed out error.

Attachments

FileDateSize
StudioConsoleLog.txt2013-11-14T08:57:30.000+000012463

Comments

  1. Shyam Bhadauria 2013-04-13

    Not reproducible with the following env. SDK: 3.1.0.v20130412191547 Studio:3.1.0.201304121929 Android Runtime: V8 Machine OS : MAC 10.8 Device : Android emulator 2.2 Tried launching the app on emulator 8-10 times.Each time emulator launched app properly.
  2. Chris Barber 2013-08-27

    This is fixed by https://github.com/appcelerator/titanium_mobile/pull/4612, specifically TIMOB-14784.
  3. Chris Barber 2013-10-18

    The new Android build by default waits 2 minutes after the build completes for the emulator to start and then another 2 minutes to install the app. These are configurable via the "android.emulatorStartTimeout" and "android.appStartTimeout" CLI config settings. The unit is milliseconds.
  4. Dhirendra Jha 2013-11-14

    Environment - Appc Studio - 3.2.0.201311122338 SDK - 3.2.0.v20131113183932 acs -1.0.7 alloy - 1.3.0 titanium - 3.2.0 titanium-code-processor - 1.1.0 Xcode - 5.0.2 OS - Mac OS X Mavericks (10.9) Emulators - Google APIs - API Level 18 (4.3), Google APIs - API Level 19 (4.4) Result-1: Shows below error message with default 2 minutes wait - -------------------------- The current timeout is set to 120000 ms You can increase this timeout by running: titanium config android.emulatorStartTimeout [ERROR] : Emulator failed to start in a timely manner [ERROR] Application Installer abnormal process termination. Process exit value was 1 -------------------------- Result-2: Shows below error message if I set the timeout to 3 minutes. Here emulator launches but fail to install app. In this case console still shows the default 2 minutes wait time. See the attached console log file.
  5. Chris Barber 2013-11-14

    [~djha] I can't make the Android ARM emulator boot faster. If your computer is too slow, then you will need to increase the timeout. If you manually launch the emulator, you should not have this problem. I'm resolving this as fixed again.
  6. Lokesh Choudhary 2013-11-14

    I verified the build & launch of an app on emulators : Android 4.3 (API level 18) ; Android 2.3.3 (API level 10) ; Android 4.2.2 (API level 17) & Android 4.4 (API level 19). The launch process times out sometimes if the emulator takes a long time to start. Also, once the emulator is running, building the app again launches that apps successfully. Appcel Studio : 3.2.0.201311140721 Ti SDK : 3.2.0.v20131108155642 Mac OSX : 10.8.5 Alloy : 1.3.0 CLI - 3.2.0
  7. Priya Agarwal 2013-12-17

    Have also verified the build & launch of an app on emulators : Android 2.3.3 (API level 10) and Android 4.4 (API level 19). For the first time gets timed out error.Once the emulator is running, the app launches successfully. Tested Environment: Appcelerator Studio: 3.2.0.201312162210 SDK:3.2.0.v20131216191854 alloy: 1.3.0-cr2 acs: 1.0.10 npm: 1.3.2 titanium: 3.2.0-cr3 titanium-code-processor: 1.1.0-cr2 Xcode:5.0.2 OS: Mac OSX 10.9
  8. Lokesh Choudhary 2013-12-18

    Build an app on emulator 5 times & all the times it did not timeout & ran successfully. Closing. Environment: Appcel Studio : 3.2.0.201312171913 Ti SDK : 3.2.0.v20131217190633 Mac OSX : 10.8.5 Alloy : 1.3.0-cr2 CLI - 3.2.0-cr3 Emulators: android 4.3, 4.2.2 , 4.4
  9. Charles Tran 2013-12-31

    The timeout occurred on android emulator, but i'm build on android device is ok. Please, reopen this ticket. Thanks. Environtment tested: Titanium Studio, build: 3.2.0.201312191547 Titanium SDK version 3.2.0.GA CLI version 3.2.0 Aloy 1.3.0 Mac OSX: 10.9.1 Emulators: android 4.4, 2.3.3
  10. Ingo Muschenetz 2014-05-12

    [~cbarber], thoughts?
  11. Chris Barber 2014-05-12

    The emulator launch timeout is set to 2 minutes and the app launch timeout is set to 2 minutes. If your computer is slow, then you must increase these timeouts.
        ti config android.emulatorStartTimeout 300000
        ti config android.appStartTimeout 300000
        
    You may also need to restart the ADB server:
        adb kill-server
        adb start-server
        
  12. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source