[TIMOB-23754] Fails when sending to a real device with android 6.0, in smaller devices runs smoothly
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Eduardo Olvera |
Assignee | Unknown |
Created | 2016-07-01T15:46:35.000+0000 |
Updated | 2018-02-28T19:54:46.000+0000 |
Description
Hello , 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
Error:
[INFO] : TiApplication: (main) [4,4] checkpoint, app created.
[INFO] : TiApplication: (main) [110,114] Titanium 5.2.2 (2016/03/28 14:12 b685ddb)
[INFO] : TiApplication: (main) [104,218] Titanium Javascript runtime: v8
[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[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.
[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
[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.
[WARN] : TiTempFileHelper: (main) [27,27] The external temp directory doesn't exist, skipping cleanup
[WARN] : V8Object: (KrollRuntimeThread) [230,257] Runtime disposed, cannot set property 'userAgent'
[ERROR] : linker: readlink('/proc/self/fd/19') failed: Permission denied [fd=19]
[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.
[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
[ERROR] : TiApplication: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.bea.paypal-1/lib/arm/libti.paypal.so: has text relocations
[ERROR] : TiApplication: at java.lang.Runtime.loadLibrary(Runtime.java:372)
[ERROR] : TiApplication: at java.lang.System.loadLibrary(System.java:1076)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
[ERROR] : TiApplication: at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)
[TRACE] : updating tiapp metadata with Appcelerator Platform...
[TRACE] : Uploaded tiapp metadata with Appcelerator Platform!
[INFO] : Process: Sending signal. PID: 9677 SIG: 9
Hello, We need a sample test code to test the issue in Android 6 device. Please send a test code that reproduces the issue.
var Paypal = require('ti.paypal'); var win = Ti.UI.createWindow({ backgroundColor:'white', title:'Billing' }); var u = Ti.Android != undefined ? 'dp' : 0; var status = Ti.UI.createLabel({ top: 50 + u, height: 45 + u, color: '#333', text: '' }); win.add(status); var button; function addButtonToWindow() { if (button) { win.remove(button); button = null; } button = Paypal.createPaypalButton({ // NOTE: height/width only determine the size of the view that the button is embedded in - the actual button size // is determined by the buttonStyle property! width: 194 + u, height: 37 + u, buttonStyle: Paypal.BUTTON_194x37, // The style & size of the button bottom: 50 + u, language: 'en_US', textStyle: Paypal.PAYPAL_TEXT_PAY, // Causes the button's text to change from "Pay" to "Donate" //appID: '<<
function openWindow(){ var payPal = Alloy.createController('payPal').getView(); payPal.open(); } $.index.open(); Thank you
Hello [~Edd_127], What is your Ti SDK, CLI and module version? What's the other 'smaller device' that runs smoothly? Thanks.
Hello, SDK version : 5.2 Module: ti.paypal-android-2.2.3 and ios 1.0.2 I mean versions of android, but it is only in the demo version of paypal . sanbox and live the button does not appear
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. 1. [Screenshot 1](http://s22.postimg.org/8wwlcmxcx/0_sa_d3_b0564eb2ce3dbf6dc9255a110dc02dfd.jpg) 2. [Screenshot 2](http://s10.postimg.org/tln6g1zxl/0_sa_d1_fdddabb6f6265ee5e76a23b5179de387.jpg) Environment: SDK 5.5.0.GA CLI 5.5.0 Studio: 4.7.1.201609100950 Android 6.0.1 Ti.paypal 2.2.3 Android Thanks.
only changes the line of code where specific DEMO, LIVE or NONE, LIVE or demo do not work well