{ "id": "112990", "key": "TIMOB-15306", "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": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-01-07T19:03:27.000+0000", "created": "2013-04-17T11:12:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "supportTeam" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "34142", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "119336", "key": "TIMOB-15018", "fields": { "summary": "Android: Launching production build after debug builds causes app to hang", "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 } } } }, { "id": "34129", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "124219", "key": "TIMOB-16131", "fields": { "summary": "Can't launch app on android device with Run option", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-22T20:44:31.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" }, { "id": "10207", "name": "Tooling" } ], "description": "h2. Description\r\nApplication hangs on splash screen when going from the Debug \"Titanium Android on Device\" build of the app to the \"Titanium App Store Distribution\" build of the app.\r\n\r\nh2. Steps to reproduce\r\n1. Publish the sample app using the \"Titanium App Store Distribution\" option and install the generated apk file onto an android device.\r\n2. Run the application, you should see screen.\r\n3. Uninstall the sample app.\r\n4. From Titanium select the Debug \"Titanium Android on Device\" option.\r\n5. Run the application once it is installed and you should see the screen.\r\n6. Stop the debugger and uninstall the sample app. \r\n7. Reinstall the published apk from step 1.\r\n8. Run the application, it will now hang at the splash screen.\r\n\r\nNote:Once this happens the only way to get the published version of the app to work again is to completely reset the android device.\r\n\r\nPlease find the attached sample project.", "attachment": [ { "id": "37561", "filename": "Simple.zip", "author": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-17T11:12:16.000+0000", "size": 3694594, "mimeType": "application/zip" } ], "flagged": false, "summary": "TiStudio: Application hangs on splash screen when going from the Debug \"Titanium Android on Device\" build of the app to the \"Titanium App Store Distribution\" build of the app.", "creator": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rsharma", "key": "rsharma", "displayName": "Rupesh Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "254546", "author": { "name": "cbrunnkvist", "key": "cbrunnkvist", "displayName": "Conny Brunnkvist", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Yeah, I'm experiencing exactly the same thing. Thought I was going to publish the app, blocked because the .apk built version hangs forever on splash without logging anything in particular.\n\n(Using TiMobile SDK: 3.1.0.GA)", "updateAuthor": { "name": "cbrunnkvist", "key": "cbrunnkvist", "displayName": "Conny Brunnkvist", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2013-05-29T15:33:33.000+0000", "updated": "2013-05-29T15:33:33.000+0000" }, { "id": "254559", "author": { "name": "cbrunnkvist", "key": "cbrunnkvist", "displayName": "Conny Brunnkvist", "active": true, "timeZone": "Asia/Jakarta" }, "body": "Figured out the solution: the 'hang' happens as the app is *waiting for the debugger* to connect - when \"Debug - Install on device\" is used, in one of the build steps, a `deploy.json` is planted somewhere on the device (e.g. /sdcard/{appId}/) where it is not affected by \"Uninstall app\"/\"Clear data\" etc*!*\n\nTypical deploy.json:\n{code:json}\n {\"fastdevPort\": -1, \"debuggerEnabled\": true, \"debuggerPort\": 9419, \"profilerEnabled\": false, \"profilerPort\": -1}\n{code}\nQuick fix for making the device usable for .apk testing again: \n\nAlt.1: connect the device and select Run (*not* Debug) -> Titanium Android on Device ... This should create a non-debuggy .json file \n\nAlt.2: open ${ANDROID_SDK_ROOT}/tools/monitor, connect to device by USB-cable, File Explorer tab, browse to the {appId} folder and manually delete `deploy.json`", "updateAuthor": { "name": "cbrunnkvist", "key": "cbrunnkvist", "displayName": "Conny Brunnkvist", "active": true, "timeZone": "Asia/Jakarta" }, "created": "2013-05-29T16:15:18.000+0000", "updated": "2013-05-29T16:15:18.000+0000" }, { "id": "279749", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I don't think we can properly fix this without changing how deploy.json is loaded. Instead of putting the file on the sdcard, it would be better to put it in the apk so that when an app is uninstalled, it will take the debug settings with it. I don't know what changes would be required in the Android code to support this.\n\nAs far as the Android build is concerned, the only changes required is writing the deploy.json into the app build dir and remove the adb push call.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-15T10:02:53.000+0000", "updated": "2013-11-15T10:02:53.000+0000" }, { "id": "414913", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate of the ticket that is mentioned above and has since been closed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:44:31.000+0000", "updated": "2017-03-22T20:44:31.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }