{ "id": "125326", "key": "TIMOB-16305", "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": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2015-06-05T06:51:34.000+0000", "created": "2014-01-23T21:32:25.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "36968", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "124446", "key": "TIMOB-16132", "fields": { "summary": "CLI: Android: Bake deploy.json into built apk", "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": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:42: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": "On a Samsung Galaxy Note 10.1 (2012 Edition), any project that is built with Alloy gets stuck at the splash screen. Projects built in \"Classic\" have no such issue. \r\n\r\nWhen the project is built in \"Debug\" mode (connected to the debugger) it works as expected. However, if this app is restarted on the device, without the debugger, is gets stuck at the splash screen. \r\n\r\nApplication log\r\n\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [103,103] Titanium 3.3.0 (2014/01/14 17:57 5d19c60)\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 7.942MB for 272514-byte allocation\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 8.385MB for 136265-byte allocation\r\n[INFO] : TiApplication: (main) [410,513] Titanium Javascript runtime: v8\r\n[WARN] : V8Object: Runtime disposed, cannot set property 'userAgent'\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] : TiApplication: (main) [0,0] Analytics have been disabled\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 8.833MB for 614416-byte allocation\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.mycompany.myappname@41d0c9c8\r\n\r\nAnything in alloy.js never runs.\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: Alloy Projects Stuck at Splash screen (Samsung Note 10.1)", "creator": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "andrew@gstreetmedia.com", "key": "andrew@gstreetmedia.com", "displayName": "Andrew Greenstreet", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.0.GA => 3.3.0 Lastest. Alloy 1.3.0", "closedSprints": [ { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "289613", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Moving this ticket to Engineering as I can reproduce the issue on Samsung Note 10.1. Also, note that on Samsung Nexus 10 tablet its working fine. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-24T18:26:31.000+0000", "updated": "2014-01-24T18:26:31.000+0000" }, { "id": "289655", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce the issue on Galaxy Note 10.1 for an alloy as well as classic app.Both apps hang on the splash screen when run after debug session has been run.\nThe deploy.json exists in the app folder after debug, deleting it & running the app launches the app successfully.\n\nCarried out the same tests on Samsung galaxy S4 & Samsung galaxy tab 3 10.1 and was not able to reproduce the issue. I checked the app folder for deploy.json on these devices & could not find it. It gets deleted.\n\nEnvironment:\nAppc Studio : 3.2.1.201401221450 \nTi SDK : 3.2.1.v20140122175749 , 3.2.0.GA\nMac OSX : 10.8.5\nAlloy : 1.3.1-beta3 , 1.3.0\t\nCLI - 3.2.1 beta3 \nSamsung Galaxy S4 running android 4.2.2\nSamsung Galaxy Tab 3 10.1 running android 4.2.2\nSamsung Galaxy Note 10.1 running android 4.0.4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-24T22:05:13.000+0000", "updated": "2014-01-24T22:05:13.000+0000" }, { "id": "290033", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will likely remove deploy.json in 3.3.0, making this a non-issue at that point.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-28T19:12:32.000+0000", "updated": "2014-01-28T19:12:32.000+0000" }, { "id": "301965", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-16132", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T21:47:53.000+0000", "updated": "2014-04-21T21:47:53.000+0000" }, { "id": "303737", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving as a duplicate.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-06T23:15:03.000+0000", "updated": "2014-05-06T23:15:03.000+0000" }, { "id": "303994", "author": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening this ticket with following configurations : \r\nMac :10.9.2\r\nAppcelerator Studio, build: 3.3.0.201405011408\r\nSDK - 3.3.0.v20140507163312\r\nacs-1.0.14\r\nalloy-1.4.0-dev\r\nnpm-1.3.2\r\ntitanium-3.3.0-dev\r\ntitanium-code-processor-1.1.1\r\nXcode :5.1.1\r\nDevices Used: Nexus 7 (4.3) ,HTC desire (4.0.3) , Samsung Note( 2.3.6) \r\nEmulator : Android 4.1.2 (skin : WXGA800; SDCard :1024 M)\r\n\r\nSteps to reproduce:\r\n1.Create any alloy or classic mobile app project.\r\n2.Add breakpoints.\r\n3.Debug the project on any android device or emulator.\r\n4.Wait till debug process completes ( break point hits ) \r\n5.Force stop the app from the background in order to make sure no background instance is running.\r\n6.Relaunch the same app.\r\nObserved behavior: App stops at the splash screen\r\n\r\nNote : There is no deploy.json file available on the devices I tried.", "updateAuthor": { "name": "dpandey", "key": "dpandey", "displayName": "Deepti Pandey", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-08T10:40:18.000+0000", "updated": "2014-05-08T10:40:18.000+0000" }, { "id": "304021", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~dpandey] When you relaunch the app, is Studio in \"debug\" mode? cc [~emerriman]", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-08T15:47:24.000+0000", "updated": "2014-05-08T15:47:24.000+0000" }, { "id": "304483", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "When the debugging session is halted in Studio, it appears as if the session disconnect triggers the app to die. Then the Android ActivityManager starts up the app again in which case it tries to reconnect to Studio, but Studio is not expecting a debug connection.\r\n\r\nHere's the logcat output:\r\n\r\n{code}\r\nI/ActivityManager( 585): Process com.appcelerator.footest (pid 1669) has died.\r\nW/ActivityManager( 585): Force removing ActivityRecord{529c1190 u0 com.appcelerator.footest/org.appcelerator.titanium.TiActivity t6}: app died, no saved state\r\nI/WindowState( 585): WIN DEATH: Window{529b6c9c u0 com.appcelerator.footest/com.appcelerator.footest.FootestActivity}\r\nI/WindowState( 585): WIN DEATH: Window{529bedbc u0 com.appcelerator.footest/org.appcelerator.titanium.TiActivity}\r\nI/ActivityManager( 585): Start proc com.appcelerator.footest for activity com.appcelerator.footest/.FootestActivity: pid=1692 uid=10056 gids={50056, 3003, 1028, 1015}\r\n{code}\r\n\r\nThis is NOT a Titanium CLI or Android build related issue. This is either inside the titanium-debug jar or somewhere in the Titanium Android platform code. In any case, re-assigning to the Android team for further investigation.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-12T22:48:26.000+0000", "updated": "2014-05-12T22:48:26.000+0000" }, { "id": "306405", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I did some investigation and here is my finding\r\n\r\nI can reproduce the issue with the test Titanium application I have in the Eclipse by creating a file called deploy.json in the assets folder with the following content in the file.\r\n\r\n{\"debuggerEnabled\":false,\"debuggerPort\":52904,\"profilerEnabled\":false,\"profilerPort\":-1}\r\n\r\nNone of the code in the app.js is getting executed. I don't know how the debugger works but my guess is that the app is waiting to connect to the debugger port and it never connects.\r\n\r\nWhen the app get killed forcefully, the deploy.json doesn't get deleted and next time when the app starts, it try to connect to the debugger and it never succeeds and it just wait. If I delete the deploy.json from the app directory after the force stop of the application, it runs fine. May be the studio was supposed to delete the deploy.json after the app debugging is done but since the app is terminated using force stop, deploy.json is never cleaned up. ", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-05-26T14:34:53.000+0000", "updated": "2014-05-26T14:34:53.000+0000" }, { "id": "306739", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The current Android debugger architecture only allows debug builds to run in debug mode. A simple workaround would be to reinstall the app using 'Run' instead of 'Debug' if users wish to run the app normally.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T21:00:14.000+0000", "updated": "2014-05-28T21:00:14.000+0000" }, { "id": "354408", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As according to Hieu's comments, resolving the ticket as done. ", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-05T06:51:24.000+0000", "updated": "2015-06-05T06:51:24.000+0000" }, { "id": "413162", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can confirm that this was done.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:42:33.000+0000", "updated": "2017-03-16T21:42:33.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }