[AC-5398] Android: Application crashes on Titanium SDK 6.3.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-11-21T14:04:40.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Alloy, Studio, Titanium SDK & CLI |
Labels | 6.3.0.GA, andoid |
Reporter | shumne |
Assignee | Shak Hossain |
Created | 2017-11-21T13:14:34.000+0000 |
Updated | 2017-11-21T14:04:40.000+0000 |
Description
After running application on Android with titanium SDK* 6.3.0.GA*, it crashes with the following error.
[ERROR] : TiApplication: (main) [235,235] Sending event: exception on thread: main msg:java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to org.appcelerator.titanium.view.TiCompositeLayout$LayoutParams; Titanium 6.3.0,2017/10/31 18:13,undefined
[ERROR] : TiApplication: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to org.appcelerator.titanium.view.TiCompositeLayout$LayoutParams
[ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUIScrollableView$1.onMeasure(TiUIScrollableView.java:99)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : TiApplication: at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : TiApplication: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
[ERROR] : TiApplication: at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
[ERROR] : TiApplication: at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.widget.LinearLayout.measureVertical(LinearLayout.java:875)
[ERROR] : TiApplication: at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2728)
[ERROR] : TiApplication: at android.view.View.measure(View.java:17604)
[ERROR] : TiApplication: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2077)
[ERROR] : TiApplication: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1201)
[ERROR] : TiApplication: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1412)
[ERROR] : TiApplication: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1089)
[ERROR] : TiApplication: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6027)
[ERROR] : TiApplication: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:804)
[ERROR] : TiApplication: at android.view.Choreographer.doCallbacks(Choreographer.java:617)
[ERROR] : TiApplication: at android.view.Choreographer.doFrame(Choreographer.java:587)
[ERROR] : TiApplication: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:790)
[ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:739)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:135)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5401)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:372)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:919)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)
[ERROR] : AndroidRuntime: FATAL EXCEPTION: main
[ERROR] : AndroidRuntime: Process: com.vmware.customer360, PID: 18218
[ERROR] : AndroidRuntime: java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to org.appcelerator.titanium.view.TiCompositeLayout$LayoutParams
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.widget.TiUIScrollableView$1.onMeasure(TiUIScrollableView.java:99)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:654)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:486)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : AndroidRuntime: at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:139)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : AndroidRuntime: at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
[ERROR] : AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
[ERROR] : AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.widget.LinearLayout.measureVertical(LinearLayout.java:875)
[ERROR] : AndroidRuntime: at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5690)
[ERROR] : AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
[ERROR] : AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2728)
[ERROR] : AndroidRuntime: at android.view.View.measure(View.java:17604)
[ERROR] : AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2077)
[ERROR] : AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1201)
[ERROR] : AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1412)
[ERROR] : AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1089)
[ERROR] : AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6027)
[ERROR] : AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:804)
[ERROR] : AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:617)
[ERROR] : AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:587)
[ERROR] : AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:790)
[ERROR] : AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
[ERROR] : AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
[ERROR] : AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5401)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:919)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:714)
*Same app runs on SDK 6.0.4.GA without any error*
[~shumne] Thanks for the report, this looks to be a duplicate of TIMOB-25539 so I'm going to close it as that. If you're able to reduce your code to a minimal test case that would really help in fixing the issue. Thanks again!