[AC-427] tableView fail to open on Android emulator/device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2015-11-21T18:41:19.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | John Marott |
Assignee | Sharif AbuDarda |
Created | 2015-07-02T17:54:14.000+0000 |
Updated | 2015-11-21T18:41:19.000+0000 |
Description
Steps to Reproduce
Cannot do this without attaching the whole project. The app executes OK on iOS simulator and device (iPhone) but fails on Android both Genymotion Emulator and a real device. In the attached stack trace form the console i can't find one single reference to my code. I therefore suspect that the app crash is due to an error in the Appcelerator platform code. Besides the console output I also attach the actual js code that fails.Actual Result
app shows a message: app stopped working (I get the message in Danish)Expected Result
Window should open as it does on iOSAttachments
File | Date | Size |
---|---|---|
.log | 2015-07-02T17:54:16.000+0000 | 2726 |
app.tss | 2015-07-06T21:25:26.000+0000 | 1902 |
appcelerator console message.rtf | 2015-07-02T17:54:27.000+0000 | 3074 |
diagnostic6091044591827922724.log | 2015-07-02T17:54:25.000+0000 | 76122 |
index.js | 2015-07-06T21:25:03.000+0000 | 467 |
index.tss | 2015-07-06T21:25:26.000+0000 | 155 |
index.xml | 2015-07-06T21:25:36.000+0000 | 124 |
modGetSvk.js | 2015-07-06T21:25:12.000+0000 | 12385 |
new_svk_project_group_activity_row.js | 2015-07-06T21:25:03.000+0000 | 120 |
new_svk_project_group_activity_row.tss | 2015-07-06T21:25:26.000+0000 | 831 |
new_svk_project_group_activity_row.xml | 2015-07-06T21:25:36.000+0000 | 313 |
new_svk_project_group_activity.js | 2015-07-06T21:25:03.000+0000 | 5470 |
new_svk_project_group_activity.js | 2015-07-02T17:54:29.000+0000 | 5630 |
new_svk_project_group_activity.tss | 2015-07-06T21:25:26.000+0000 | 1573 |
new_svk_project_group_activity.xml | 2015-07-06T21:25:36.000+0000 | 940 |
[~john@marott.dk] hello, can you please attach a test case? We need a simple piece of code to run and replicates the issue Thanks
I created a very simple project consisting of the attached files. This project behaves exactly like described earlier - that is it opens OK in the iOS simulator but NOT in the Genymotion Emulator. Please remove my blindfold :-) /John Marott
Hello, We tried to replicate the issue using provided test case but got following error. *on iOS:* [ERROR] : Script Error Couldn't find module: /modGetSvk for architecture: x86_64 *on Android:* [ERROR] : TiApplication: (main) [107,8300] Sending event: exception on thread: main msg:java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] : TiApplication: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap [ERROR] : TiApplication: at org.appcelerator.titanium.util.TiConvert.fillLayout(TiConvert.java:180) [ERROR] : TiApplication: at org.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:895) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUILabel.processProperties(TiUILabel.java:146) [ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1209) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:500) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.forceCreateView(TiViewProxy.java:437) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.createControls(TiTableViewRowProxyItem.java:247) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:428) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:91) [ERROR] : TiApplication: at ti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:237) *Testing Environment:* Appcelerator Studio, build: 4.1.0.201507031129 Titanium SDK: 4.0.0 GA iOS simulator: iphone 5s(v8.1) Android Emulator: Google Nexus 10 - 5.0.0 OS X version: 10.9.5 *However here is a simple testcase that shows tableView does not fail to open on Android emulator.* app.js
*Testing Environment:* Appcelerator Studio, build: 4.1.0.201507031129 Titanium SDK: 4.0.0 GA Android Emulator: Google Nexus 10 - 5.0.0 OS X version: 10.9.5 Thanks
You should place the 'modGetSvk.js' in a 'lib' folder under the app directory. /John Marott
[~john@marott.dk] we need a small test case for this issue
Radamantis Torres-Lechuga You may not be aware of my comment from yesterday. I already send you a test case that shows the issue. In order for that test case to work, you need to place the js-file 'modGetSvk.js' in a 'lib' folder in the app directory because it's a module that is being accessed via a require statement in new_svk_project_group_activity.js /John Marott
Hello [~john@marott.dk], Are you still facing the problem? As I have tested tableview is working fine in Android for both emulator and device. The test case you provided has bunch of other things which is not relevant to the issue. Please provide a simple test case only of the table view that is failing for your case. Thanks.
I had this issue in a small test project, and since it seemed difficult for you guyes to find a solution or maybe even to see the problem I just cancled the project. You can close the issue and I apollogize for not having informed you earlier. /John Marott