{ "id": "155701", "key": "TIMOB-20564", "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": "17684", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-14T22:52:34.000+0000", "created": "2016-03-13T08:55:03.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "Android", "SDK", "notable" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-03-18T22:53:33.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": "Can't run application on device *Lenovo A630 Android 4.0.4* due error:\r\n\r\n{code}\r\n[ERROR] : TiApplication: (main) [1225,4779] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: android.app.Activity.startActivity; Titanium 5.2.0,2016/02/20 08:05,384775e\r\n[ERROR] : TiApplication: java.lang.NoSuchMethodError: android.app.Activity.startActivity\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:4624)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n{code}\r\n\r\nSteps to reproduce:\r\n\r\nCreate default alloy project and run it on device.\r\n\r\nSDK 5.1.2.GA works without error.\r\n", "attachment": [ { "id": "58621", "filename": "2016-03-13 20-45-03 Android SDK Manager.png", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-03-13T17:46:24.000+0000", "size": 209312, "mimeType": "image/png" }, { "id": "58620", "filename": "Screen Shot 2016-03-13 at 10.14.24 PM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T16:15:03.000+0000", "size": 270757, "mimeType": "image/png" }, { "id": "58628", "filename": "Screen Shot 2016-03-14 at 3.46.48 AM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-14T14:12:22.000+0000", "size": 252442, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: java.lang.NoSuchMethodError: android.app.Activity.startActivity", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Ti.SDK 5.2.0.GA, 5.2.1.v20160307134704, 5.4.0.v20160311141845", "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "379617", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "\r\nHello,\r\n\r\nThe proper method is Titanium.Android.Activity.startActivity. Follow the guide here http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Android.Activity-method-startActivity\r\n\r\nPlease provide the code that you are testing. Also, provide full list of steps to follow. Use the latest SDK 5.2.0.GA for your test.\r\n\r\nThanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T10:26:21.000+0000", "updated": "2016-03-13T16:02:08.000+0000" }, { "id": "379626", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "@Mostafizur Rahman Do you read issue description?", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-03-13T16:03:22.000+0000", "updated": "2016-03-13T16:03:22.000+0000" }, { "id": "379627", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I just tested a default alloy project in Android, The project is running as expected. See the screenshot. Below is my platform Information. \r\n\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.3\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.0.GA\r\n Target Platform = android\r\n{code}\r\n\r\nI have both tested in Android Simulator (5.1.0) and Device (4.4.2). Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T16:09:33.000+0000", "updated": "2016-03-13T16:16:08.000+0000" }, { "id": "379628", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Guys, I wrote about *Lenovo A630* Android *4.0.4*. Can you help me to find bug if you can't test on this device and android version. What changed from 5.1.2.GA to 5.2.0.GA that can lead to this exception? I have this device for test.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-03-13T16:23:28.000+0000", "updated": "2016-03-13T16:23:58.000+0000" }, { "id": "379630", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We don't have the device you mentioned, Also Genymotion emulator does not provide this model. I would suggest you try on a different device and see if the error occurs. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-13T17:40:56.000+0000", "updated": "2016-03-13T17:40:56.000+0000" }, { "id": "379631", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "You can test with sdk emulator. Screenshot attached.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-03-13T17:49:02.000+0000", "updated": "2016-03-13T17:49:02.000+0000" }, { "id": "379634", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested with 5.2.0.GA with an Ally app. Able to reproduce.\r\nMoved ticket to TIMOB.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T03:58:07.000+0000", "updated": "2016-03-14T03:58:07.000+0000" }, { "id": "379635", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Error from logcat:-\r\n{code}\r\nD/AndroidRuntime( 1505): Shutting down VM\r\nW/dalvikvm( 1505): threadid=1: thread exiting with uncaught exception (group=0xb31a1180)\r\nE/TiApplication( 1505): (main) [241,241] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: android.app.Activity.startActivity; Titanium 5.2.0,2016/02/20 08:05,384775e\r\nE/TiApplication( 1505): java.lang.NoSuchMethodError: android.app.Activity.startActivity\r\nE/TiApplication( 1505): \tat ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161)\r\nE/TiApplication( 1505): \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103)\r\nE/TiApplication( 1505): \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444)\r\nE/TiApplication( 1505): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/TiApplication( 1505): \tat android.os.Looper.loop(Looper.java:137)\r\nE/TiApplication( 1505): \tat android.app.ActivityThread.main(ActivityThread.java:4424)\r\nE/TiApplication( 1505): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/TiApplication( 1505): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\nE/TiApplication( 1505): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\nE/TiApplication( 1505): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\nE/TiApplication( 1505): \tat dalvik.system.NativeStart.main(Native Method)\r\nE/AndroidRuntime( 1505): FATAL EXCEPTION: main\r\nE/AndroidRuntime( 1505): java.lang.NoSuchMethodError: android.app.Activity.startActivity\r\nE/AndroidRuntime( 1505): \tat ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161)\r\nE/AndroidRuntime( 1505): \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103)\r\nE/AndroidRuntime( 1505): \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444)\r\nE/AndroidRuntime( 1505): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\nE/AndroidRuntime( 1505): \tat android.os.Looper.loop(Looper.java:137)\r\nE/AndroidRuntime( 1505): \tat android.app.ActivityThread.main(ActivityThread.java:4424)\r\nE/AndroidRuntime( 1505): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/AndroidRuntime( 1505): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\nE/AndroidRuntime( 1505): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\nE/AndroidRuntime( 1505): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\nE/AndroidRuntime( 1505): \tat dalvik.system.NativeStart.main(Native Method)\r\nW/ActivityManager( 881): Force finishing activity sg.www.appcelerator/.CrashmetooActivity\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T03:58:52.000+0000", "updated": "2016-03-14T03:58:52.000+0000" }, { "id": "379636", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested this on both Alloy and Classic on 5.2.0.GA on an Android 4.0.3 emulator. Able to reproduce the crash.\r\n\r\nIt seems there's something going on in Android 4.0.X. Will be investigating this. [~falko]", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T04:19:26.000+0000", "updated": "2016-03-14T04:19:26.000+0000" }, { "id": "379646", "author": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "body": "5_2_X PR https://github.com/appcelerator/titanium_mobile/pull/7840", "updateAuthor": { "name": "ssombhatla", "key": "ssombhatla", "displayName": "Srikanth Sombhatla", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T06:09:56.000+0000", "updated": "2016-03-14T06:09:56.000+0000" }, { "id": "379647", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Cherry-Picked into \r\n5_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/7841\r\nMaster PR: https://github.com/appcelerator/titanium_mobile/pull/7842", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T07:02:08.000+0000", "updated": "2016-03-14T07:02:08.000+0000" }, { "id": "379648", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Thank you for quick PRs. It works without error on my test device and emulator.", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-03-14T07:48:13.000+0000", "updated": "2016-03-14T07:48:13.000+0000" }, { "id": "379649", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Thanks for reporting and creating this Jira ticket!", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T07:54:38.000+0000", "updated": "2016-03-14T07:54:38.000+0000" }, { "id": "379697", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged into 5_2_X, 5_3_X and Master", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-03-14T22:53:05.000+0000", "updated": "2016-03-15T01:59:19.000+0000" }, { "id": "380156", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix. The app does not crash with the error.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.5.0.201602170831\r\nTi SDK : 5.2.1.v20160317105842, 5.3.0.v20160318094530, 5.4.0.v20160318144950\r\nTi CLI : 5.0.6\r\nAlloy : 1.7.35\r\nMAC El Capitan : 10.11.13\r\nAppc NPM : 4.2.4-2\r\nAppc CLI : 5.2.1-12\r\nNode: 4.2.2\r\nAndroid emulator: android 4.0.3\r\nDevice: Samsung Galaxy S3 Android 4.0.4\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-18T22:53:26.000+0000", "updated": "2016-03-18T22:53:26.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }