[AC-3723] TableView bug in Android 5.2.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-06-09T17:49:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Greg Kolesar |
Assignee | Shak Hossain |
Created | 2016-06-03T11:54:58.000+0000 |
Updated | 2016-06-09T17:49:00.000+0000 |
Description
When upgrading from SDK 5.1.1 to 5.2.2, Android suffers a hard crash anytime a TableView is displayed without the separatorStyle property.
Steps to Reproduce
1. Create a project with SDK 5.2.2
2. Create a TableView without the separatorSyle property
3. Run the App
4. Crash
To Fix
Add a separatorStyle property to the TableView as seen below
Error Stack Trace:
[ERROR] : TiApplication: (main) [91,22091] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"; Titanium 5.2.2,2016/03/28 14:12,b685ddb
[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3255)
[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351)
[ERROR] : TiApplication: at android.app.ActivityThread.access$1100(ActivityThread.java:222)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:158)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:7230)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[ERROR] : TiApplication: Caused by: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] : TiApplication: at java.lang.Integer.invalidInt(Integer.java:138)
[ERROR] : TiApplication: at java.lang.Integer.parse(Integer.java:410)
[ERROR] : TiApplication: at java.lang.Integer.parseInt(Integer.java:367)
[ERROR] : TiApplication: at java.lang.Integer.parseInt(Integer.java:334)
[ERROR] : TiApplication: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:409)
[ERROR] : TiApplication: at ti.modules.titanium.ui.widget.tableview.TiTableView.<init>(TiTableView.java:356)
[ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:111)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1219)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:509)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGe
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
[ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:258)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:6877)
[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
[ERROR] : TiApplication: ... 9 more
[ERROR] : AndroidRuntime: FATAL EXCEPTION: main
[ERROR] : AndroidRuntime: Process: com.xxx, PID: 8717
[ERROR] : AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3255)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3351)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)
[ERROR] : AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1796)
[ERROR] : AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7230)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[ERROR] : AndroidRuntime: Caused by: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] : AndroidRuntime: at java.lang.Integer.invalidInt(Integer.java:138)
[ERROR] : AndroidRuntime: at java.lang.Integer.parse(Integer.java:410)
[ERROR] : AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:367)
[ERROR] : AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:334)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:409)
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.widget.tableview.TiTableView.<init>(TiTableView.java:356)
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:111)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1219)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:509)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiVie
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:258)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6877)
[ERROR] : AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1136)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3208)
[ERROR] : AndroidRuntime: ... 9 more
Hello, I tried to test your issue. I wasn't able to reproduce. With SDK 5.2.2.GA, Tableview is running fine in Android without saparatorStyle
Please provide a test case that you are using for us to test. Regards, Sharif.
Hello [~greg.kolesar@gmail.com], Thanks for reporting the issue. However we are not able to reproduce the issue till now with our test code. Please provide us full test code that reproduces the issue. If we are able to reproduce the issue only then we will escalate the ticket. Thanks in advance