{ "id": "101608", "key": "TIMOB-11027", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14157", "description": "Sprint 2012-20 API", "name": "Sprint 2012-20 API", "archived": true, "released": true, "releaseDate": "2012-10-08" }, { "id": "14272", "description": "2012 Sprint 20", "name": "2012 Sprint 20", "archived": true, "released": true, "releaseDate": "2012-10-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-10-09T04:13:37.000+0000", "created": "2012-09-20T15:19:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-testadded" ], "versions": [], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-22T10:20:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "When trying to test ActionBar tabs in the 4.0.3 emulator, my app was freezing on the splash screen.\r\n\r\nThe following log was showing up, which Josh says is related to the Fastdev process:\r\n\r\n{code}\r\n\r\nE/TiApplication( 873): java.lang.RuntimeException: Unable to create application com.appcelerator.timob8192.Timob8192Application: java.lang.NullPointerException\r\nE/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957)\r\nE/TiApplication( 873): at android.app.ActivityThread.access$1300(ActivityThread.java:123)\r\nE/TiApplication( 873): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)\r\nE/TiApplication( 873): at android.os.Handler.dispatchMessage(Handler.java:99)\r\nE/TiApplication( 873): at android.os.Looper.loop(Looper.java:137)\r\nE/TiApplication( 873): at android.app.ActivityThread.main(ActivityThread.java:4424)\r\nE/TiApplication( 873): at java.lang.reflect.Method.invokeNative(Native Method)\r\nE/TiApplication( 873): at java.lang.reflect.Method.invoke(Method.java:511)\r\nE/TiApplication( 873): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\nE/TiApplication( 873): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\nE/TiApplication( 873): at dalvik.system.NativeStart.main(Native Method)\r\nE/TiApplication( 873): Caused by: java.lang.NullPointerException\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showToast(TiFastDev.java:157)\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.showDisabledWarning(TiFastDev.java:164)\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.connect(TiFastDev.java:147)\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.readDeployData(TiFastDev.java:119)\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.(TiFastDev.java:99)\r\nE/TiApplication( 873): at org.appcelerator.kroll.common.TiFastDev.initFastDev(TiFastDev.java:73)\r\nE/TiApplication( 873): at org.appcelerator.titanium.TiApplication.postAppInfo(TiApplication.java:372)\r\nE/TiApplication( 873): at com.appcelerator.timob8192.Timob8192Application.onCreate(Timob8192Application.java:34)\r\nE/TiApplication( 873): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)\r\nE/TiApplication( 873): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)\r\nE/TiApplication( 873): ... 10 more\r\n{code}\r\n\r\nAnd then a bit later...\r\n\r\n{code}\r\nW/ActivityManager( 77): Launch timeout has expired, giving up wake lock!\r\nW/ActivityManager( 77): Activity idle timeout for ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}\r\nI/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\r\nI/WindowManager( 77): Input event dispatching timed out sending to application AppWindowToken{416997f8 token=Token{4163e270 ActivityRecord{414f0310 com.appcelerator.timob8192/.Timob8192Activity}}}\r\n{code}\r\n\r\nSteps to reproduce:\r\n1. Create a new project in Titanium Studio \r\n2. Add this snippet to tiapp.xml\r\n{code}\r\n\r\n \r\n\r\n{code}\r\n3. Run the project on 3.0+ emulator.\r\n4. Observe crash.\r\n", "attachment": [], "flagged": false, "summary": "Android: App freezes on splash screen with NPE in handleBindApplication", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.0 (master build from 9/19/12)\r\nAndroid 4.0.3 emulator", "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "233810", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.\nTested with:\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK, build: 3.0.0.GA\nAndroid Emulator 3.0", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-10T10:31:20.000+0000", "updated": "2013-01-10T10:31:20.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }