{ "id": "97838", "key": "TIMOB-10105", "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": [], "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2012-08-08T21:14:13.000+0000", "created": "2012-07-23T17:15:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-08-08T21:14:13.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": "The attached code uses a transparent theme. It crashes on 2.3 and below but works on 4.0+. Trace:\r\n\r\n{code}\r\n[ERROR][TiApplication( 373)] (KrollRuntimeThread) [3535,3535] APP PROXY: ti.modules.titanium.app.AppModule@405d5da0\r\n[WARN][V8Object( 373)] Runtime disposed, cannot set property 'userAgent'\r\n[DEBUG][dalvikvm( 373)] GREF has increased to 201\r\n[DEBUG][TiAssetHelper( 373)] Fetching \"app.js\" with Fastdev...\r\n[INFO][ActivityManager( 62)] Starting: Intent { cmp=com.appc.tests/org.appcelerator.titanium.TiActivity (has extras) } from pid 373\r\n[DEBUG][AndroidRuntime( 373)] Shutting down VM\r\n[WARN][dalvikvm( 373)] threadid=1: thread exiting with uncaught exception (group=0x40015560)\r\n[ERROR][TiApplication( 373)] (main) [809,4344] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException; Titanium 2.1.0,2012/06/28 12:16,6e3cab6\r\n[ERROR][TiApplication( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622)\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117)\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)\r\n[ERROR][TiApplication( 373)] at android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR][TiApplication( 373)] at android.os.Looper.loop(Looper.java:123)\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647)\r\n[ERROR][TiApplication( 373)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][TiApplication( 373)] at java.lang.reflect.Method.invoke(Method.java:507)\r\n[ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)\r\n[ERROR][TiApplication( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)\r\n[ERROR][TiApplication( 373)] at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR][TiApplication( 373)] Caused by: java.lang.NullPointerException\r\n[ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460)\r\n[ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215)\r\n[ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261)\r\n[ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222)\r\n[ERROR][TiApplication( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216)\r\n[ERROR][TiApplication( 373)] at android.app.Activity.setContentView(Activity.java:1668)\r\n[ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434)\r\n[ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162)\r\n[ERROR][TiApplication( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99)\r\n[ERROR][TiApplication( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\r\n[ERROR][TiApplication( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)\r\n[ERROR][TiApplication( 373)] ... 11 more\r\n[ERROR][AndroidRuntime( 373)] FATAL EXCEPTION: main\r\n[ERROR][AndroidRuntime( 373)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appc.tests/com.appc.tests.AndroidTestsActivity}: java.lang.NullPointerException\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1622)\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1638)\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.access$1500(ActivityThread.java:117)\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:928)\r\n[ERROR][AndroidRuntime( 373)] at android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR][AndroidRuntime( 373)] at android.os.Looper.loop(Looper.java:123)\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.main(ActivityThread.java:3647)\r\n[ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR][AndroidRuntime( 373)] at java.lang.reflect.Method.invoke(Method.java:507)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)\r\n[ERROR][AndroidRuntime( 373)] at dalvik.system.NativeStart.main(Native Method)\r\n[ERROR][AndroidRuntime( 373)] Caused by: java.lang.NullPointerException\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.getCircularProgressBar(PhoneWindow.java:2460)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2215)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2261)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:222)\r\n[ERROR][AndroidRuntime( 373)] at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216)\r\n[ERROR][AndroidRuntime( 373)] at android.app.Activity.setContentView(Activity.java:1668)\r\n[ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:434)\r\n[ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:162)\r\n[ERROR][AndroidRuntime( 373)] at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99)\r\n[ERROR][AndroidRuntime( 373)] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\r\n[ERROR][AndroidRuntime( 373)] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1586)\r\n{code}", "attachment": [ { "id": "29981", "filename": "Archive.zip", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2012-07-23T17:15:09.000+0000", "size": 750636, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Custom transparent theme crashes on 2.3 and below", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "211292", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rick,\r\n\r\nThe last time we spoke I believe we found the cause of this bug.\r\nIt is caused by some window features we request when creating the activity.\r\nIf you create a window w/o a title bar you need to set the parameter \"navBarHidden\" to false.\r\n\r\nYou will need to apply the custom theme only to the custom activity for this window.\r\nOtherwise every window will be affected including the launch activity (which is the one crashing here).\r\n", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T15:18:13.000+0000", "updated": "2012-08-02T15:18:13.000+0000" }, { "id": "211295", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FYI: the crash is caused by requesting title bar features, but the theme causes no title bar to be created for the Window.\r\nThis causes a crash due to 2.3 or earlier trying to setup titlebar features leading to a crash. This is an Android bug.\r\n\r\nAs mentioned before you have to set \"navBarHidden\" on the window to prevent those features.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T15:20:29.000+0000", "updated": "2012-08-02T15:20:29.000+0000" }, { "id": "211298", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also, you shouldn't comment this out:\r\n{code}\r\n\r\n\t\r\n\t\r\n \r\n{code}\r\n\r\nYou won't see the launcher if this isn't included in the main activity (in AndroidManifest.xml).", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T15:31:12.000+0000", "updated": "2012-08-02T15:31:12.000+0000" }, { "id": "211371", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ok so navBarHidden will not crash it?", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2012-08-03T05:41:21.000+0000", "updated": "2012-08-03T05:41:21.000+0000" }, { "id": "213465", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Rick, yes if you set navBarHidden to \"true\" it shouldn't crash.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T16:58:23.000+0000", "updated": "2012-08-08T16:58:23.000+0000" }, { "id": "213484", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing since no further platform changes are required.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-08T17:41:58.000+0000", "updated": "2012-08-08T17:41:58.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }