Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Issues with Android Simulator

I'm having major issues with the Android Simulator. It was working fine before when I only had the 1.6 android sdk installed but now that I have 2.1 and 2.2 installed, it's very very touchy. It only loads up the simulator and launches my app maybe 1 out of 5 times. After it does successfully load, if I make a change and want to reload it, clicking the Launch button does nothing. I have to close out the simulator and the Titanium app then reopen it and launch again.

How long until the next Android simulator comes out? Are there any tips I can try? I've already reinstalled the Titanium app but it didn't make a difference.

— asked November 15th 2010 by Justin Toth
  • android
  • simulator
0 Comments

2 Answers

  • Accepted Answer

    When it fails, you need to be looking at the Trace level log to see if there was a build error or some other problem reported by the device. Occasionally, you need to force a full rebuild by touching tiapp.xml.

    — answered November 15th 2010 by Don Thorp
    permalink
    0 Comments
  • Here's one example:

    [INFO] Deployed Instant … Application should be running.
    [TRACE] D/dalvikvm( 54): GC freed 5168 objects / 290048 bytes in 268ms
    [TRACE] D/dalvikvm( 30): GC freed 277 objects / 10528 bytes in 621ms
    [TRACE] D/dalvikvm( 30): GC freed 45 objects / 1968 bytes in 244ms
    [TRACE] D/AndroidRuntime( 231): Shutting down VM
    [TRACE] W/dalvikvm( 231): threadid=3: thread exiting with uncaught exception (group=0x4001aa28)
    [TRACE] E/AndroidRuntime( 231): Uncaught handler: thread main exiting due to uncaught exception
    [TRACE] D/dalvikvm( 30): GC freed 2 objects / 48 bytes in 173ms
    [TRACE] E/AndroidRuntime( 231): java.lang.RuntimeException: Unable to instantiate application com.navtrak.instant.InstantApplication: java.lang.ClassNotFoundException: com.navtrak.instant.InstantApplication in loader dalvik.system.PathClassLoader@4376ab50
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:505)
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3862)
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread.access$2800(ActivityThread.java:116)
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
    [TRACE] E/AndroidRuntime( 231): at android.os.Handler.dispatchMessage(Handler.java:99)
    [TRACE] E/AndroidRuntime( 231): at android.os.Looper.loop(Looper.java:123)
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread.main(ActivityThread.java:4203)
    [TRACE] E/AndroidRuntime( 231): at java.lang.reflect.Method.invokeNative(Native Method)
    [TRACE] E/AndroidRuntime( 231): at java.lang.reflect.Method.invoke(Method.java:521)
    [TRACE] E/AndroidRuntime( 231): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
    [TRACE] E/AndroidRuntime( 231): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
    [TRACE] E/AndroidRuntime( 231): at dalvik.system.NativeStart.main(Native Method)
    [TRACE] E/AndroidRuntime( 231): Caused by: java.lang.ClassNotFoundException: com.navtrak.instant.InstantApplication in loader dalvik.system.PathClassLoader@4376ab50
    [TRACE] E/AndroidRuntime( 231): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
    [TRACE] E/AndroidRuntime( 231): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
    [TRACE] E/AndroidRuntime( 231): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
    [TRACE] E/AndroidRuntime( 231): at android.app.Instrumentation.newApplication(Instrumentation.java:1018)
    [TRACE] E/AndroidRuntime( 231): at android.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:500)
    [TRACE] E/AndroidRuntime( 231): … 11 more
    [TRACE] I/Process ( 54): Sending signal. PID: 231 SIG: 3
    [TRACE] I/dalvikvm( 231): threadid=7: reacting to signal 3
    [TRACE] I/dalvikvm( 231): Wrote stack trace to '/data/anr/traces.txt'
    [TRACE] I/ARMAssembler( 54): generated scanline00000077:03515104_00000000_00000000 [ 27 ipp] (41 ins) at [0x325ed0:0x325f74] in 5734463 ns
    [TRACE] I/ARMAssembler( 54): generated scanline
    00000077:03515104_00001001_00000000 [ 64 ipp] (84 ins) at [0x325f78:0x3260c8] in 1509495 ns
    [TRACE] W/ActivityManager( 54): Launch timeout has expired, giving up wake lock!
    [TRACE] W/ActivityManager( 54): Activity idle timeout for HistoryRecord{438a9278 com.navtrak.instant/.InstantActivity}
    [TRACE] D/dalvikvm( 95): GC freed 4747 objects / 269672 bytes in 100ms

    — answered November 15th 2010 by Justin Toth
    permalink
    1 Comment
    • is com.navtrak.instant your application? It looks like a full build needs to performed touch tiapp.xml and it will force a rebuild.

      — commented November 15th 2010 by Don Thorp
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.