{ "id": "170146", "key": "AC-5311", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-10-28T19:19:59.000+0000", "created": "2017-10-26T19:17:56.000+0000", "labels": [ "6.2.0", "CLI", "SDK6.0.0", "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-10-28T19:19:59.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "After I bumped my app's Ti SDK to 6.2.0.GA, my app is crashing on loading.\r\nLog shows something about Number casting, but I can't find where it is.\r\nAlready replaced every String.format() line with a cast to string inside the method...\r\nApp was working fine with previous versions, so I need some help to find where this bug lies...\r\nBelow is the logcat I'm facing:\r\n\r\n\r\n{code}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] TiApplication: (main) [1,1] checkpoint, app created.\r\n[INFO] TiApplication: (main) [149,150] Titanium 6.2.0 (2017/09/12 20:39 undefined)\r\n[INFO] MultiDex: VM with version 2.1.0 has multidex support\r\n[INFO] MultiDex: install\r\n[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.\r\n[INFO] TiApplication: (main) [118,268] Titanium Javascript runtime: v8\r\n[ERROR] linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libc++_shared.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libkroll-v8.so\". Will use given name.\r\n[DEBUG] PushnotificationsModule: (main) [41,309] inside onAppCreate\r\n[DEBUG] SwiperefreshlayoutModule: (main) [1,310] inside onAppCreate\r\n[DEBUG] TiAdsModule: (main) [8,318] Initializing tiads module.\r\n[WARN] TiAndroid: (KrollRuntimeThread) [435,753] Application instance no longer available. Unable to get current activity.\r\n[WARN] TiAndroid: (KrollRuntimeThread) [2,755] Application instance no longer available. Unable to get current activity.\r\n[WARN] TiAndroid: (KrollRuntimeThread) [1,756] Application instance no longer available. Unable to get current activity.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libcom.alcoapps.actionbarextras.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libcom.pushwoosh.module.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libninja.ygor.tiads.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libti.map.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libcom.mirasense.scanditsdk.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libcom.rkam.swiperefreshlayout.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libti.imagefactory.so\". Will use given name.\r\n[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]\r\n[ERROR] linker: warning: unable to get realpath for the library \"/data/app/br.com.pinion-1/lib/arm/libfacebook.so\". Will use given name.\r\n[WARN] art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] --------------------------app.js-begin-----------------------------\r\n[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [85,85] Push: create module\r\n[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [1,86] Push: init activity!\r\n[INFO] --------------------------geo.js-begin-----------------------------\r\n[INFO] --------------------------geo.js-end-----------------------------\r\n[INFO] --------------------------api.js-begin-----------------------------\r\n[INFO] switchApi Method Called!\r\n[INFO] https://api.pinion.pt\r\n[INFO] --------------------------api.js-end-----------------------------\r\n[INFO] --------------------------services.js-begin-----------------------------\r\n[INFO] --------------------------services.js-end-----------------------------\r\n[INFO] --------------------------login.js-begin-----------------------------\r\n[INFO] switchApi Method Called!\r\n[INFO] https://api.pinion.pt\r\n[INFO] --------------------------ui.js-begin-----------------------------\r\n[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [612,698] unregister called\r\n[INFO] --------------------------app.js-end-----------------------------\r\n[DEBUG] HTTPClient: The persistent handle is disposed.\r\n[DEBUG] PushnotificationsModule: (main) [155,853] Push: ACTIVITY STARTED\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = br.com.pinion.PinionActivity@7141bde\r\n[DEBUG] PushnotificationsModule: (main) [1,1] Push: ACTIVITY RESUMED: 1\r\n[DEBUG] PushnotificationsModule: (main) [1,2] Push: unregistering receivers\r\n[DEBUG] PushnotificationsModule: (main) [0,2] Push: finished unregistering receivers\r\n[DEBUG] PushnotificationsModule: (main) [0,2] Push: register receivers\r\n[DEBUG] PushnotificationsModule: (main) [2,4] Push: finished registering receivers\r\n[DEBUG] PushnotificationsModule: (main) [1,5] Push: on resume\r\n[DEBUG] TiFacebookModule: (main) [0,5] Calling activateApp\r\n[DEBUG] OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true\r\n[DEBUG] PushnotificationsModule: (main) [42,47] Push: ACTIVITY PAUSED: 0\r\n[DEBUG] PushnotificationsModule: (main) [0,47] Push: unregistering receivers\r\n[DEBUG] PushnotificationsModule: (main) [1,48] Push: finished unregistering receivers\r\n[DEBUG] PushnotificationsModule: (main) [2,50] Push: on pause\r\n[DEBUG] TiFacebookModule: (main) [0,50] Calling deactivateApp\r\n[DEBUG] PushnotificationsModule: (main) [34,84] Push: ACTIVITY CREATED\r\n[DEBUG] AndroidRuntime: Shutting down VM\r\n[ERROR] TiApplication: (main) [16,100] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.pinion/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Unable to convert null; Titanium 6.2.0,2017/09/12 20:39,undefined\r\n[ERROR] TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.pinion/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Unable to convert null\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)\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:5443)\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:728)\r\n[ERROR] TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)\r\n[ERROR] TiApplication: Caused by: java.lang.NumberFormatException: Unable to convert null\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:415)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:448)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.media.TiUIVideoView.processProperties(TiUIVideoView.java:143)\r\n[ERROR] TiApplication: \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1222)\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:507)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:523)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:507)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:695)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:588)\r\n[ERROR] TiApplication: \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:261)\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:564)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:684)\r\n[ERROR] TiApplication: \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)\r\n[ERROR] TiApplication: \tat android.app.Activity.performCreate(Activity.java:6245)\r\n[ERROR] TiApplication: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)\r\n[ERROR] TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)\r\n[ERROR] TiApplication: \t... 9 more\r\n[TRACE] updating tiapp metadata with Appcelerator Platform...\r\n[TRACE] Uploaded tiapp metadata with Appcelerator Platform!\r\n{code}\r\n\r\nThanks in advance!", "attachment": [], "flagged": false, "summary": "Ti SDK 6.2.0.GA is crashing Android on opening", "creator": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.12.6 (16G29)\r\nAppcelerator Command-Line Interface, version 6.2.4\r\nTi SDK 6.2.0.GA\r\nandroid:targetSdkVersion=\"25\"\r\nandroid:minSdkVersion=\"16\"", "comment": { "comments": [ { "id": "429694", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-26T20:16:51.000+0000", "updated": "2017-10-26T20:16:51.000+0000" }, { "id": "429698", "author": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Okay, Thanks @Sharif\r\n", "updateAuthor": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-26T20:38:46.000+0000", "updated": "2017-10-26T20:38:46.000+0000" }, { "id": "429726", "author": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "body": "[~perdona] Hello Caio. Is your error still occurring? Would you like to provide your code of initialising the VideoPlayer? What device/emulator did you see the error exactly?", "updateAuthor": { "name": "mchen", "key": "mchen", "displayName": "Maggie Chen", "active": true, "timeZone": "Asia/Singapore" }, "created": "2017-10-27T07:27:40.000+0000", "updated": "2017-10-27T07:27:40.000+0000" }, { "id": "429743", "author": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, it still ocurring and is blocking me from implementing new features. I'm still trying to identify where the issue is.\r\nWhat VideoPlayer? Is this related to videoplayer?\r\nIn every Android device I build and install the app...", "updateAuthor": { "name": "perdona", "key": "perdona", "displayName": "Caio Perdona", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-27T16:45:08.000+0000", "updated": "2017-10-27T18:50:17.000+0000" }, { "id": "429767", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-10-28T19:19:59.000+0000", "updated": "2017-10-28T19:19:59.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }