[TIMOB-11027] Android: App freezes on splash screen with NPE in handleBindApplication
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-09T04:13:37.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
Components | Android |
Labels | api, qe-testadded |
Reporter | Arthur Evans |
Assignee | Hieu Pham |
Created | 2012-09-20T15:19:04.000+0000 |
Updated | 2014-07-22T10:20:45.000+0000 |
Description
When trying to test ActionBar tabs in the 4.0.3 emulator, my app was freezing on the splash screen.
The following log was showing up, which Josh says is related to the Fastdev process:
E/TiApplication( 873): java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException
E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957)
E/TiApplication( 873): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/TiApplication( 873): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/TiApplication( 873): at android.os.Handler.dispatchMessage(Handler.java:99)
E/TiApplication( 873): at android.os.Looper.loop(Looper.java:137)
E/TiApplication( 873): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/TiApplication( 873): at java.lang.reflect.Method.invokeNative(Native Method)
E/TiApplication( 873): at java.lang.reflect.Method.invoke(Method.java:511)
E/TiApplication( 873): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/TiApplication( 873): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/TiApplication( 873): at dalvik.system.NativeStart.main(Native Method)
E/TiApplication( 873): Caused by: java.lang.NullPointerException
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showToast(TiFastDev.java:157)
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showDisabledWarning(TiFastDev.java:164)
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.connect(TiFastDev.java:147)
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.readDeployData(TiFastDev.java:119)
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.<init>(TiFastDev.java:99)
E/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.initFastDev(TiFastDev.java:73)
E/TiApplication( 873): at org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:372)
E/TiApplication( 873): at com.appcelerator.timob8192.Timob8192Application.onCreate(Timob8192Application.java:34)
E/TiApplication( 873): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
E/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
E/TiApplication( 873): ... 10 more
And then a bit later...
W/ActivityManager( 77): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 77): Activity idle timeout for ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}
I/InputDispatcher( 77): Application is not responding: AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}}. 5008.3ms since event, 5007.4ms since wait started
I/WindowManager( 77): Input event dispatching timed out sending to application AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}}
Steps to reproduce:
1. Create a new project in Titanium Studio
2. Add this snippet to tiapp.xml
<manifest>
<uses-sdk android:targetSdkVersion="11"/>
</manifest>
3. Run the project on 3.0+ emulator.
4. Observe crash.
Closing as fixed. Tested with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.0.GA Android Emulator 3.0