{ "id": "161537", "key": "TIMOB-23754", "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": null, "resolutiondate": null, "created": "2016-07-01T15:46:35.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:46.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "\r\nHello , I 'm developing a propitiation for ios and android but when I compile the application , do the test fails when a real device Motorola G with android 6.0 \r\n\r\nError:\r\n[INFO] : TiApplication: (main) [4,4] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [110,114] Titanium 5.2.2 (2016/03/28 14:12 b685ddb)\r\n[INFO] : TiApplication: (main) [104,218] Titanium Javascript runtime: v8\r\n[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[ERROR] : linker: warning: unable to get realpath for the library \"/data/app/com.bea.paypal-1/lib/arm/libstlport_shared.so\". Will use given name.\r\n[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]\r\n[ERROR] : linker: warning: unable to get realpath for the library \"/data/app/com.bea.paypal-1/lib/arm/libkroll-v8.so\". Will use given name.\r\n[WARN] : TiTempFileHelper: (main) [27,27] The external temp directory doesn't exist, skipping cleanup\r\n[WARN] : V8Object: (KrollRuntimeThread) [230,257] Runtime disposed, cannot set property 'userAgent'\r\n[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]\r\n[ERROR] : linker: warning: unable to get realpath for the library \"/data/app/com.bea.paypal-1/lib/arm/libti.paypal.so\". Will use given name.\r\n[ERROR] : TiApplication: (KrollRuntimeThread) [65,322] Sending event: exception on thread: KrollRuntimeThread msg:java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations; Titanium 5.2.2,2016/03/28 14:12,b685ddb\r\n[ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations\r\n[ERROR] : TiApplication: \tat java.lang.Runtime.loadLibrary(Runtime.java:372)\r\n[ERROR] : TiApplication: \tat java.lang.System.loadLibrary(System.java:1076)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)\r\n[TRACE] : updating tiapp metadata with Appcelerator Platform...\r\n[TRACE] : Uploaded tiapp metadata with Appcelerator Platform!\r\n[INFO] : Process: Sending signal. PID: 9677 SIG: 9", "attachment": [], "flagged": false, "summary": " Fails when sending to a real device with android 6.0, in smaller devices runs smoothly", "creator": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "389769", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, We need a sample test code to test the issue in Android 6 device. Please send a test code that reproduces the issue.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-07-01T17:53:07.000+0000", "updated": "2016-07-01T17:53:39.000+0000" }, { "id": "389770", "author": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "body": "\r\nvar Paypal = require('ti.paypal');\r\n\r\nvar win = Ti.UI.createWindow({ \r\n\tbackgroundColor:'white',\r\n title:'Billing'\r\n\r\n});\r\nvar u = Ti.Android != undefined ? 'dp' : 0;\r\n\r\nvar status = Ti.UI.createLabel({\r\n top: 50 + u, height: 45 + u, color: '#333',\r\n text: ''\r\n});\r\nwin.add(status);\r\n\r\nvar button;\r\nfunction addButtonToWindow() {\r\n if (button) {\r\n win.remove(button);\r\n button = null;\r\n }\r\n \r\n button = Paypal.createPaypalButton({\r\n // NOTE: height/width only determine the size of the view that the button is embedded in - the actual button size\r\n // is determined by the buttonStyle property!\r\n width: 194 + u, height: 37 + u,\r\n buttonStyle: Paypal.BUTTON_194x37, // The style & size of the button\r\n bottom: 50 + u,\r\n\r\n language: 'en_US',\r\n textStyle: Paypal.PAYPAL_TEXT_PAY, // Causes the button's text to change from \"Pay\" to \"Donate\"\r\n\r\n //appID: '<<>>', // The appID issued by Paypal for your application; for testing, feel free to delete this property entirely.\r\n paypalEnvironment: Paypal.PAYPAL_ENV_NONE, // Sandbox, None or Live\r\n\r\n feePaidByReceiver: false,\r\n enableShipping: false, // Whether or not to select/send shipping information\r\n\r\n payment: { // The payment itself\r\n paymentType: Paypal.PAYMENT_TYPE_SERVICE, // The type of payment\r\n subtotal: 10, // The total cost of the order, excluding tax and shipping\r\n tax: 0,\r\n shipping: 0,\r\n currency: 'USD',\r\n recipient: 'kwhinn_1305817727_per@appcelerator.com',\r\n customID: 'AppMov',\r\n invoiceItems: [\r\n { name: 'Full Fare', totalPrice: 1, itemPrice: 1, itemCount: 1 },\r\n { name: 'Half Fare', totalPrice: 1, itemPrice: 0.5, itemCount: 1 }\r\n ],\r\n ipnUrl: 'http://www.cityofdavenportiowa.com/',\r\n merchantName: 'Pay',\r\n memo: 'iowa'\r\n }\r\n });\r\n\r\n // Events available\r\n button.addEventListener('paymentCancelled', function (e) {\r\n status.text = 'Payment Cancelled.';\r\n // The button should only be used once; so after a payment is cancelled, succeeds, or errors, we must redisplay it.\r\n addButtonToWindow();\r\n });\r\n button.addEventListener('paymentSuccess', function (e) {\r\n status.text = 'Payment Success. TransactionID: ' + e.transactionID + ', Reloading...';\r\n // The button should only be used once; so after a payment is cancelled, succeeds, or errors, we must redisplay it.\r\n addButtonToWindow();\r\n });\r\n button.addEventListener('paymentError', function (e) {\r\n status.text = 'Payment Error, errorCode: ' + e.errorCode + ', errorMessage: ' + e.errorMessage;\r\n // The button should only be used once; so after a payment is cancelled, succeeds, or errors, we must redisplay it.\r\n addButtonToWindow();\r\n });\r\n button.addEventListener('unknownResponse', function (e) {\r\n status.text = 'Unknown Response, statusCode: ' + e.statusCode;\r\n // The button should only be used once; so after a payment is cancelled, succeeds, or errors, we must redisplay it.\r\n addButtonToWindow();\r\n });\r\n\r\n /* button.addEventListener('buttonDisplayed', function () {\r\n status.text = 'The button was displayed!';\r\n });*/\r\n button.addEventListener('buttonError', function () {\r\n status.text = 'The button failed to display!';\r\n });\r\n\r\n win.add(button);\r\n \r\n}\r\naddButtonToWindow();\r\nwin.open();\r\nstatus.show();\r\nbutton.show();", "updateAuthor": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-07-01T17:58:39.000+0000", "updated": "2016-07-01T17:58:39.000+0000" }, { "id": "389772", "author": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "body": "function openWindow(){\r\n\tvar payPal = Alloy.createController('payPal').getView();\r\n\tpayPal.open();\r\n}\r\n\t\t\r\n$.index.open();\r\n\r\nThank you", "updateAuthor": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-07-01T17:59:54.000+0000", "updated": "2016-07-01T18:00:10.000+0000" }, { "id": "395812", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~Edd_127],\r\n\r\nWhat is your Ti SDK, CLI and module version? What's the other 'smaller device' that runs smoothly?\r\n\r\nThanks.", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-09-10T18:44:38.000+0000", "updated": "2016-09-10T18:44:38.000+0000" }, { "id": "395894", "author": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nSDK version : 5.2\r\nModule: ti.paypal-android-2.2.3 and ios 1.0.2\r\n\r\nI mean versions of android, but it is only in the demo version of paypal . sanbox and live the button does not appear", "updateAuthor": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-09-12T15:24:33.000+0000", "updated": "2016-09-12T15:24:33.000+0000" }, { "id": "397044", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tested this issue in Android 6 device. I am using the code provided in the comment. I wasn't able to reproduce the issue as described. The module seems to work fine. See my Screenshot. \r\n\r\n1. [Screenshot 1|http://s22.postimg.org/8wwlcmxcx/0_sa_d3_b0564eb2ce3dbf6dc9255a110dc02dfd.jpg]\r\n2. [Screenshot 2|http://s10.postimg.org/tln6g1zxl/0_sa_d1_fdddabb6f6265ee5e76a23b5179de387.jpg]\r\n\r\nEnvironment:\r\n\r\nSDK 5.5.0.GA\r\nCLI 5.5.0\r\nStudio: 4.7.1.201609100950\r\nAndroid 6.0.1\r\nTi.paypal 2.2.3 Android \r\n\r\nThanks.\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-09-23T15:14:15.000+0000", "updated": "2016-09-23T15:14:15.000+0000" }, { "id": "397048", "author": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "body": "only changes the line of code where specific DEMO, LIVE or NONE,\r\n\r\nLIVE or demo do not work well", "updateAuthor": { "name": "Edd_127", "key": "edd_127", "displayName": "Eduardo Olvera", "active": true, "timeZone": "America/Mexico_City" }, "created": "2016-09-23T15:53:33.000+0000", "updated": "2016-09-23T15:53:33.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }