[AC-5311] Ti SDK 6.2.0.GA is crashing Android on opening
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-10-28T19:19:59.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 6.2.0, CLI, SDK6.0.0, android |
Reporter | Caio Perdona |
Assignee | Shak Hossain |
Created | 2017-10-26T19:17:56.000+0000 |
Updated | 2017-10-28T19:19:59.000+0000 |
Description
After I bumped my app's Ti SDK to 6.2.0.GA, my app is crashing on loading.
Log shows something about Number casting, but I can't find where it is.
Already replaced every String.format() line with a cast to string inside the method...
App was working fine with previous versions, so I need some help to find where this bug lies...
Below is the logcat I'm facing:
-- Start application log -----------------------------------------------------
[INFO] TiApplication: (main) [1,1] checkpoint, app created.
[INFO] TiApplication: (main) [149,150] Titanium 6.2.0 (2017/09/12 20:39 undefined)
[INFO] MultiDex: VM with version 2.1.0 has multidex support
[INFO] MultiDex: install
[INFO] MultiDex: VM has multidex support, MultiDex support library is disabled.
[INFO] TiApplication: (main) [118,268] Titanium Javascript runtime: v8
[ERROR] linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20]
[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.
[ERROR] linker: readlink('/proc/self/fd/20') failed: Permission denied [fd=20]
[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.
[DEBUG] PushnotificationsModule: (main) [41,309] inside onAppCreate
[DEBUG] SwiperefreshlayoutModule: (main) [1,310] inside onAppCreate
[DEBUG] TiAdsModule: (main) [8,318] Initializing tiads module.
[WARN] TiAndroid: (KrollRuntimeThread) [435,753] Application instance no longer available. Unable to get current activity.
[WARN] TiAndroid: (KrollRuntimeThread) [2,755] Application instance no longer available. Unable to get current activity.
[WARN] TiAndroid: (KrollRuntimeThread) [1,756] Application instance no longer available. Unable to get current activity.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[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.
[ERROR] linker: readlink('/proc/self/fd/24') failed: Permission denied [fd=24]
[ERROR] linker: warning: unable to get realpath for the library "/data/app/br.com.pinion-1/lib/arm/libfacebook.so". Will use given name.
[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
[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
[INFO] --------------------------app.js-begin-----------------------------
[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [85,85] Push: create module
[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [1,86] Push: init activity!
[INFO] --------------------------geo.js-begin-----------------------------
[INFO] --------------------------geo.js-end-----------------------------
[INFO] --------------------------api.js-begin-----------------------------
[INFO] switchApi Method Called!
[INFO] https://api.pinion.pt
[INFO] --------------------------api.js-end-----------------------------
[INFO] --------------------------services.js-begin-----------------------------
[INFO] --------------------------services.js-end-----------------------------
[INFO] --------------------------login.js-begin-----------------------------
[INFO] switchApi Method Called!
[INFO] https://api.pinion.pt
[INFO] --------------------------ui.js-begin-----------------------------
[DEBUG] PushnotificationsModule: (KrollRuntimeThread) [612,698] unregister called
[INFO] --------------------------app.js-end-----------------------------
[DEBUG] HTTPClient: The persistent handle is disposed.
[DEBUG] PushnotificationsModule: (main) [155,853] Push: ACTIVITY STARTED
[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = br.com.pinion.PinionActivity@7141bde
[DEBUG] PushnotificationsModule: (main) [1,1] Push: ACTIVITY RESUMED: 1
[DEBUG] PushnotificationsModule: (main) [1,2] Push: unregistering receivers
[DEBUG] PushnotificationsModule: (main) [0,2] Push: finished unregistering receivers
[DEBUG] PushnotificationsModule: (main) [0,2] Push: register receivers
[DEBUG] PushnotificationsModule: (main) [2,4] Push: finished registering receivers
[DEBUG] PushnotificationsModule: (main) [1,5] Push: on resume
[DEBUG] TiFacebookModule: (main) [0,5] Calling activateApp
[DEBUG] OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
[DEBUG] PushnotificationsModule: (main) [42,47] Push: ACTIVITY PAUSED: 0
[DEBUG] PushnotificationsModule: (main) [0,47] Push: unregistering receivers
[DEBUG] PushnotificationsModule: (main) [1,48] Push: finished unregistering receivers
[DEBUG] PushnotificationsModule: (main) [2,50] Push: on pause
[DEBUG] TiFacebookModule: (main) [0,50] Calling deactivateApp
[DEBUG] PushnotificationsModule: (main) [34,84] Push: ACTIVITY CREATED
[DEBUG] AndroidRuntime: Shutting down VM
[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
[ERROR] TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.pinion/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Unable to convert null
[ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)
[ERROR] TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2490)
[ERROR] TiApplication: at android.app.ActivityThread.-wrap11(ActivityThread.java)
[ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
[ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] TiApplication: at android.os.Looper.loop(Looper.java:148)
[ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5443)
[ERROR] TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
[ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
[ERROR] TiApplication: Caused by: java.lang.NumberFormatException: Unable to convert null
[ERROR] TiApplication: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:415)
[ERROR] TiApplication: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:448)
[ERROR] TiApplication: at ti.modules.titanium.media.TiUIVideoView.processProperties(TiUIVideoView.java:143)
[ERROR] TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1222)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:507)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:523)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:507)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:485)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:695)
[ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:588)
[ERROR] TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:261)
[ERROR] TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:564)
[ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:684)
[ERROR] TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)
[ERROR] TiApplication: at android.app.Activity.performCreate(Activity.java:6245)
[ERROR] TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1130)
[ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2379)
[ERROR] TiApplication: ... 9 more
[TRACE] updating tiapp metadata with Appcelerator Platform...
[TRACE] Uploaded tiapp metadata with Appcelerator Platform!
Thanks in advance!
Okay, Thanks @Sharif
[~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?
Yes, it still ocurring and is blocking me from implementing new features. I'm still trying to identify where the issue is. What VideoPlayer? Is this related to videoplayer? In every Android device I build and install the app...