{ "id": "79713", "key": "TIMOB-5138", "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": "12080", "description": "", "name": "Sprint 2011-40", "archived": true, "released": true, "releaseDate": "2011-10-10" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-10T13:16:40.000+0000", "created": "2011-08-26T16:55:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "merge-1.7.6", "module_emulator", "qe-testadded", "regression" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "13077", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "81223", "key": "TIMOB-5467", "fields": { "summary": "iOS: Switching build targets without clean causes build to fail.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2014-06-19T12:46:35.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": "New:\r\n1.create a simple app with 1.8.0\r\n2.run it in the emulator\r\n3.install to device\r\n4.eyeball device\r\n\r\nresults:app crashes on launch\r\n\r\n\r\nOLD steps:\r\nSteps to reproduce:\r\n\r\n1. Create a titanium mobile project for android using TiMob: 1.8.0.v20110819142548\r\n2. Add following to tiapp.xml within and tags which would look something like this:\r\n\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n\r\n3. Build and run it on Android Emulator.\r\n4. Install it on Android device. (It works on Android Emulator though.)\r\n5. Try to run the application.\r\n6. It would say. sorry, app quits unexpectedly. (Note: I runs properly if we directly install it on device without running it in Emulator)\r\n\r\nadb logcat output is pasted below.\r\n\r\nNote:\r\nIf you create the mobile with TiMob 1.7.2 and follow above from steps2 to step6, application would run properly. Also, if you first create the project with TiMob 1.7.2 and then change it to TiMob 1.8.0.v20110819142548 from tiapp.xml, and then repeat the steps from step2 to step6, it will again run properly. \r\n\r\n\r\n{code}\r\n\r\nE/AndroidRuntime( 5726): FATAL EXCEPTION: main\r\nE/AndroidRuntime( 5726): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.anyApp/com.appcelerator.anyApp.AnyappActivity}: java.lang.NullPointerException\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread.access$2300(ActivityThread.java:125)\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)\r\nE/AndroidRuntime( 5726): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\nE/AndroidRuntime( 5726): \tat android.os.Looper.loop(Looper.java:123)\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread.main(ActivityThread.java:4627)\r\nE/AndroidRuntime( 5726): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/AndroidRuntime( 5726): \tat java.lang.reflect.Method.invoke(Method.java:521)\r\nE/AndroidRuntime( 5726): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)\r\nE/AndroidRuntime( 5726): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\nE/AndroidRuntime( 5726): \tat dalvik.system.NativeStart.main(Native Method)\r\nE/AndroidRuntime( 5726): Caused by: java.lang.NullPointerException\r\nE/AndroidRuntime( 5726): \tat java.io.Reader.(Reader.java:65)\r\nE/AndroidRuntime( 5726): \tat java.io.InputStreamReader.(InputStreamReader.java:65)\r\nE/AndroidRuntime( 5726): \tat ti.modules.titanium.yahoo.YahooModule.bindContextSpecific(YahooModule.java:39)\r\nE/AndroidRuntime( 5726): \tat org.appcelerator.titanium.TiApplication.bindModules(TiApplication.java:117)\r\nE/AndroidRuntime( 5726): \tat org.appcelerator.titanium.kroll.KrollBridge.(KrollBridge.java:42)\r\nE/AndroidRuntime( 5726): \tat org.appcelerator.titanium.TiContext.createTiContext(TiContext.java:319)\r\nE/AndroidRuntime( 5726): \tat org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:96)\r\nE/AndroidRuntime( 5726): \tat org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:39)\r\nE/AndroidRuntime( 5726): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)\r\nE/AndroidRuntime( 5726): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)\r\nE/AndroidRuntime( 5726): \t... 11 more\r\nW/ActivityManager( 1096): Force finishing activity com.appcelerator.anyApp/.AnyappActivity\r\nW/ActivityManager( 1096): Activity pause timeout for HistoryRecord{449a5c48 com.appcelerator.anyApp/.AnyappActivity}\r\nD/dalvikvm( 5290): GC_EXPLICIT freed 3797 objects / 254792 bytes in 65ms\r\nE/QSB.Suggestions( 5290): LEAK! Finalized without being closed: Suggestions[]\r\nW/ActivityManager( 1096): Activity destroy timeout for HistoryRecord{449a5c48 com.appcelerator.anyApp/.AnyappActivity}\r\nD/dalvikvm( 5337): GC_EXPLICIT freed 244 objects / 9416 bytes in 75ms\r\nI/power ( 1096): *** set_screen_state 0\r\nD/SurfaceFlinger( 1096): About to give-up screen, flinger = 0x120f38\r\nD/Sensors ( 1096): using accelerometer (name=accelerometer)\r\nD/WifiService( 1096): ACTION_SCREEN_OFF\r\nD/WifiService( 1096): setting ACTION_DEVICE_IDLE timer for 900000ms\r\nD/StatusBar( 1096): DISABLE_EXPAND: yes\r\nD/GoogleLoginService( 1214): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }\r\nD/dalvikvm( 1214): GC_EXPLICIT freed 1248 objects / 62624 bytes in 79ms\r\nE/Tethering( 1096): active iface (usb0) reported as added, ignoring\r\nD/WifiService( 1096): ACTION_BATTERY_CHANGED pluggedType: 2\r\n\r\n{code}", "attachment": [ { "id": "22885", "filename": "timob5158Diff.txt", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-09T11:48:36.000+0000", "size": 10132, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: After building for emulator, application crashes on launch on device", "creator": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX Lion\r\nTiMob: 1.8.0.v20110819142548\r\nTiMob: 1.7.2\r\nTiStud: 1.0.4.201108101535\r\n\r\nDevices Tried:\r\nDroid 1\r\nGoogle Nexus S", "comment": { "comments": [ { "id": "165451", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also encountering it with just a new project on 10.6.8 with 1.8.0.v20110906155354\r\n1. Create project\r\n2. Run on emulator\r\n3. Run on device\r\n\r\nSee the same errors as the log above", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-08T16:53:18.000+0000", "updated": "2011-09-08T16:53:18.000+0000" }, { "id": "165539", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I ran through the steps and when it failed, I grabbed the folder. I then cleaned and tried again without launching simulator first. I ran a diff on the folders and it looks like there are some differences that might be a factor. See attached txt file.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-09T11:48:18.000+0000", "updated": "2011-09-09T11:48:18.000+0000" }, { "id": "165706", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "was - Android: tag does not let application launch on Android device, rewritten to describe behavior", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-12T15:14:53.000+0000", "updated": "2011-09-12T15:14:53.000+0000" }, { "id": "167912", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "While I'm working on this, i just want to be sure everybody knows the workaround is to do Project -> Clean from inside Studio before building for device. If you're not using Studio, you can \"touch\" the tiapp.xml file to get it to work.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-10-04T05:56:53.000+0000", "updated": "2011-10-04T05:56:53.000+0000" }, { "id": "167968", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/525", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-10-04T16:39:39.000+0000", "updated": "2011-10-04T16:39:39.000+0000" }, { "id": "168367", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Titanium Studio, build: 1.0.5.201109301412\nusing: 1.8.0.v20111007112617 with \nNexus S 2.3.6\nHero 2.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-07T15:08:11.000+0000", "updated": "2011-10-07T15:08:11.000+0000" }, { "id": "171632", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T14:04:04.000+0000", "updated": "2011-11-05T14:04:04.000+0000" }, { "id": "176786", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As of 1.8.0.1.v20111219180133 we are not seeing this issue on rhino/v8 on win 7 and 10.6.8", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-20T16:12:06.000+0000", "updated": "2011-12-20T16:12:06.000+0000" }, { "id": "177438", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marking as resolved per Natalie's comment", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T11:08:34.000+0000", "updated": "2011-12-28T11:08:34.000+0000" }, { "id": "178721", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201091758\r\nTi Mob SDK 1.8.0.1\r\nOSX Lion\r\nDroid 3, emulator 2.2 v8 and rhino\r\n\r\nExpected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T11:26:24.000+0000", "updated": "2012-01-10T11:26:24.000+0000" }, { "id": "178750", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added Label: qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T13:14:39.000+0000", "updated": "2012-01-10T13:14:39.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }