{ "id": "140403", "key": "ALOY-1225", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "16692", "name": "Alloy 1.7.0", "archived": false, "released": true, "releaseDate": "2015-07-22" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-01-15T19:42:42.000+0000", "created": "2014-11-24T15:39:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "alloy", "android", "crash", "mobile", "social.js" ], "versions": [], "issuelinks": [ { "id": "43333", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "139621", "key": "AC-760", "fields": { "summary": "social.js authorize UI crashes on android", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-01-15T19:42:42.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": "13610", "name": "Builtins", "description": "Builtin Javascript libraries" } ], "description": "Upon calling the 'authorize' method, the loading view opens and then immediately crashes, resulting in the following error. \r\n\r\n[INFO] : libc: Fatal signal 11 (SIGSEGV) at 0x00000014 (code=1), thread 2206 (KrollRuntimeThr)\r\n\r\nThe behavior is consistent. However, if I open and close a facebook authorize dialog before opening the twitter authorize dialog, the twitter dialog will usually work. The issue may lie in the \"popIn\" animation: it appears that the window expands beyond the mobile screen viewport, and will crash at about the time the window should zoom back into the viewport. \r\nSee the attached video for a demo of the bug. \r\n\r\nFunctionality is fine in iOS v 8.1. \r\n\r\nOther notes:\r\n* Line 514 of the social.js file makes us of the deprecated \"Ti.UI.AUTODETECT_NONE\" \r\n* The default navigation/action bar at the top becomes visible", "attachment": [ { "id": "52794", "filename": "app.zip", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:56:09.000+0000", "size": 6097, "mimeType": "application/zip" }, { "id": "52791", "filename": "code.txt", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:39:26.000+0000", "size": 3365, "mimeType": "text/plain" }, { "id": "52792", "filename": "social.js crash.mov", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:39:27.000+0000", "size": 1895276, "mimeType": "video/quicktime" }, { "id": "52793", "filename": "stack trace", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:39:27.000+0000", "size": 17833, "mimeType": "text/html" } ], "flagged": false, "summary": "social.js authorize UI crashes on android", "creator": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "environment": "OS: Mac OS X Yosemite 10.10\r\nTitanium SDK: 3.4.0GA\r\nAlloy: 1.5.1\r\nTitanium Studio, build: 3.4.0.201409261227\r\nAndroid Genymotion emulator: Release 4.3 - API 18", "comment": { "comments": [ { "id": "333391", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "updateAuthor": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:45:42.000+0000", "updated": "2014-11-24T16:02:31.000+0000" }, { "id": "333392", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "body": "app.zip contains primary files for recreating the issue. Should be able to copy contents of app.zip into the \"app\" directory of a clean alloy project. Then move the included tiapp.xml from \"app\" to root. Will also need to include own Facebook and Twitter API keys in index.js. Will also need to include Facebook key in tiapp.xml. ", "updateAuthor": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2014-11-24T15:56:09.000+0000", "updated": "2014-11-24T15:57:24.000+0000" }, { "id": "335996", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is this issue being looked at? Currently busy implementing a twitter share option and looking at the exact same issue right now.\r\n\r\nAlso is there an alternative to share a message to twitter instead of using this library?", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-11T14:22:35.000+0000", "updated": "2014-12-11T14:22:35.000+0000" }, { "id": "336543", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Social.js is working on Android 5. The logs on the Nexus 9 - Android 5.0.1\r\n\r\n{code}\r\n[INFO] : WebViewFactory: Loading com.google.android.webview version 37 (1602158-arm64) (code 111202)\r\n[INFO] : LibraryLoader: Loading: webviewchromium\r\n[INFO] : LibraryLoader: Time to load native libraries: 91 ms (timestamps 5910-6001)\r\n[INFO] : LibraryLoader: Expected native library version number \"\",actual native library version number \"\"\r\n[INFO] : LibraryLoader: Expected native library version number \"\",actual native library version number \"\"\r\n[INFO] : chromium: [INFO:library_loader_hooks.cc(106)] Chromium logging enabled: level = 0, default verbosity = 0\r\n[INFO] : BrowserStartupController: Initializing chromium process, renderers=0\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : chromium: [WARNING:resource_bundle.cc(315)] locale_file_path.empty()\r\n[INFO] : chromium: [INFO:aw_browser_main_parts.cc(63)] Load from apk succesful, fd=67 off=43792 len=2945\r\n[INFO] : chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:68 off:229488 len:643667\r\n[WARN] : AudioManagerAndroid: Requires BLUETOOTH permission\r\n[WARN] : chromium: [WARNING:proxy_service.cc(901)] PAC support disabled because there is no system implementation\r\n[WARN] : chromium: [WARNING:data_reduction_proxy_settings.cc(403)] SPDY proxy OFF at startup\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : AwContents: onDetachedFromWindow called when already detached. Ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[INFO] : Choreographer: Skipped 43 frames! The application may be doing too much work on its main thread.\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[INFO] : chromium: [INFO:SkUtilsArm.cpp(179)] Device supports ARM NEON instructions!\r\n[INFO] : chromium:\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : chromium: [WARNING:simple_index_file.cc(337)] Could not map Simple Index file.\r\n[INFO] : art: Background partial concurrent mark sweep GC freed 2118(126KB) AllocSpace objects, 2(78KB) LOS objects, 22% free, 54MB/70MB, paused 1.559ms total 102.273ms\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[WARN] : art: Attempt to remove local handle scope entry from IRT, ignoring\r\n[INFO] : I/TiWebChromeClient.console: (main) [5650,8947] The value \"device-width;\" for key \"width\" is invalid, and has been ignored. (9:https://api.twitter.com/oauth/authorize?oauth_token=tpFVKZ9nVt9zrjARurRDr46O2TSGfztb&oauth_token_secret=A94NxsWT7MYWtdaPduuKgrs3B0JdXy0T&oauth_callback_confirmed=true)\r\n[INFO] : I/TiWebChromeClient.console: (main) [0,8947] The value \"1.0;\" for key \"initial-scale\" was truncated to its numeric prefix. (9:https://api.twitter.com/oauth/authorize?oauth_token=tpFVKZ9nVt9zrjARurRDr46O2TSGfztb&oauth_token_secret=A94NxsWT7MYWtdaPduuKgrs3B0JdXy0T&oauth_callback_confirmed=true)\r\n[INFO] : I/TiWebChromeClient.console: (main) [0,8947] The value \"1.0;\" for key \"maximum-scale\" was truncated to its numeric prefix. (9:https://api.twitter.com/oauth/authorize?oauth_token=tpFVKZ9nVt9zrjARurRDr46O2TSGfztb&oauth_token_secret=A94NxsWT7MYWtdaPduuKgrs3B0JdXy0T&oauth_callback_confirmed=true)\r\n[INFO] : I/TiWebChromeClient.console: (main) [1,8948] Error parsing a meta element's content: ';' is not a valid key-value pair separator. Please use ',' instead. (9:https://api.twitter.com/oauth/authorize?oauth_token=tpFVKZ9nVt9zrjARurRDr46O2TSGfztb&oauth_token_secret=A94NxsWT7MYWtdaPduuKgrs3B0JdXy0T&oauth_callback_confirmed=true)\r\n{code}\r\n\r\nAlso, when debugging is enabled, the app does not crash on Android < 5.0 and Android >= 4.0 ", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T08:30:20.000+0000", "updated": "2014-12-16T08:40:41.000+0000" }, { "id": "336560", "author": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Allright I found a workaround for now on Android.\r\n\r\nWhen it's trying to set the timestamp it goes wrong on this line (254): \r\n{code}\r\nvar scripts = document.getElementsByTagName(\"script\");\r\n{code}\r\n\r\nI have edited it to: \r\n{code}\r\nvar scripts = null; \r\n{code}\r\n\r\nAnd now the authorization popup works and does not crash.\r\nPatrick", "updateAuthor": { "name": "Serfenia", "key": "serfenia", "displayName": "Patrick van Vuuren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T10:34:48.000+0000", "updated": "2014-12-16T10:34:48.000+0000" }, { "id": "337092", "author": { "name": "wdent", "key": "wdent", "displayName": "William Dent", "active": true, "timeZone": "America/Havana" }, "body": "I found that animation.popIn(window); on/around line 511 in social.js is the culprit for the libc: Fatal signal 11 (SIGSEGV) at 0x00000014 (code=1), thread 2206 (KrollRuntimeThr) and by just changing this to \"window.opacity = 1;\" solves the issue and works every time on Android. \r\n\r\n", "updateAuthor": { "name": "wdent", "key": "wdent", "displayName": "William Dent", "active": true, "timeZone": "America/Havana" }, "created": "2014-12-19T00:13:41.000+0000", "updated": "2014-12-19T00:14:08.000+0000" }, { "id": "338919", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I just tested this issue and the social.js library worked fine for me. I'm wondering if the changes made in ALOY-953 and ALOY-951 may have resolved this issue.\r\n\r\nI'm using 3.4.1.GA SDK, Alloy 1.5.1, and building to my Galaxy S5 running Android 4.4.4. I was able to authorize and post a tweet. \r\n\r\nIf you are still having issues, please post your Alloy and SDK versions. Or, test with the newest versions if you're not already using them. ", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-13T19:16:16.000+0000", "updated": "2015-01-13T19:16:16.000+0000" }, { "id": "339254", "author": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "body": "I updated my app to use 3.4.1.GA and updated to the latest stable version of Alloy. (Running {{alloy -v}} in the command line yielded a version number of 1.5.1.) When I initially ran my app after Tim's post, I was still having issues with the app crashing...even after cleaning the project. So I deleted the app's Resources folder and re-ran the application, which is what finally solved the problem. Is there a way to programmatically remove/update the Resources folder after SDK and/or node updates so that the app reflects the latest changes?", "updateAuthor": { "name": "bachmakm", "key": "bachmakm", "displayName": "Kristen Bachman", "active": true, "timeZone": "America/Havana" }, "created": "2015-01-15T17:36:02.000+0000", "updated": "2015-01-15T17:36:42.000+0000" }, { "id": "339289", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "[~bachmakm] I'm glad the library working for you. I'll close this ticket. ALOY-1063 adds cleaning of the Resources folder but it won't make it to a published version of Alloy for a bit. It's a hook, which should be easy enough to add yourself to your projects. See the associated PR and check our docs on how to install CLI hooks.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-01-15T19:42:17.000+0000", "updated": "2015-01-15T19:42:17.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }