{ "id": "155541", "key": "TIMOB-20528", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-03T09:54:35.000+0000", "created": "2016-03-08T08:59:51.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [], "assignee": null, "updated": "2018-12-03T09:54: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": "App is crashing using Facebook Module in 5.2.0.GA .\r\n\r\n*Test Environment:*\r\n\r\nAppcelerator Studio, build: 4.5.0.201602170821\r\nOperating System Mac OS X -EI Capitan,Versio-10.11.1\r\nAppcelerator Command-Line Interface, version 5.2.0\r\nSDK Version = 5.2.0.GA \r\nNode.js Version = 4.2.2 npm Version = 2.14.7\r\nAndroid Devices HTC One_M8 Ey android 5.0.2 (android-21) \r\nModule Version: 5.0.0 \r\n\r\n\r\n*Test Steps to reproduce:*\r\n\r\n1.Create a brand new project using 5.2.0.GA \r\n2.Add in only one module e.g. facebook \r\n3.Build to an Android 5.1.1 device e.g. Nexus 7\r\n4.Run project\r\n\r\n*Test case:*\r\n{code}\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: 'pink'});\r\n\r\nvar fb = require('facebook');\r\n\r\nfb.addEventListener('login', function(e) {\r\n\r\n if (e.success) {\r\n\r\n alert('Logged in');\r\n\r\n }\r\n\r\n});\r\n\r\nfb.addEventListener('logout', function(e) {\r\n\r\n alert('Logged out');\r\n\r\n});\r\n\r\n\r\n\r\nif (Ti.Platform.name === 'android') {\r\n\r\n win.fbProxy = fb.createActivityWorker({lifecycleContainer: win});\r\n\r\n}\r\n\r\n\r\n\r\n// Add the button. Note that it doesn't need a click event listener.\r\n\r\nwin.add(fb.createLoginButton({\r\n\r\n readPermissions: ['read_stream','email'],\r\n\r\n top: 50\r\n\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\n\r\n*Test Result:* App is crashing. Here is the console log.\r\n\r\n{code}\r\n\r\n[ERROR] : TiApplication: (main) [13,378] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.0,2016/02/20 08:05,384775e\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.gsl.fbtaskrakhi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:148)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5417)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n[ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory.\r\n[ERROR] : TiApplication: \tat com.facebook.login.LoginManager.registerCallback(LoginManager.java:128)\r\n[ERROR] : TiApplication: \tat com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445)\r\n[ERROR] : TiApplication: \tat facebook.LoginButtonView.(LoginButtonView.java:40)\r\n[ERROR] : TiApplication: \tat facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:253)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseAc\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18\r\n\r\n{code}", "attachment": [ { "id": "65940", "filename": "Screenshot_20181203-154819.png", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-12-03T09:54:18.000+0000", "size": 50402, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: App is crashing using Facebook Module in 5.2.0.GA ", "creator": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 4.5.0.201602170821\r\nOperating System Mac OS X -EI Capitan,Versio-10.11.1\r\nAppcelerator Command-Line Interface, version 5.2.0\r\nSDK Version = 5.2.0.GA \r\nNode.js Version = 4.2.2 npm Version = 2.14.7\r\nModule Version: 5.0.0 \r\nAndroid SDK API: 23, Nexus 7", "comment": { "comments": [ { "id": "379531", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~msamah] Take a look?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-03-11T12:44:36.000+0000", "updated": "2016-03-11T12:44:36.000+0000" }, { "id": "394617", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~rmitro] The pre-packaged module in 5.4.0.GA was corrupt and will be resolved in 5.5.0. Please use the version from [ti.facebook|https://github.com/appcelerator-modules/ti.facebook/releases/tag/android-5.2.0] directly.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-29T07:34:06.000+0000", "updated": "2016-08-29T07:34:06.000+0000" }, { "id": "394619", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ooo. looks like [~hansknoechel] is right. Why don't you get the latest module in github to test at the mean time? That will be the working one.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-29T07:37:14.000+0000", "updated": "2016-08-29T07:37:14.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }