Titanium JIRA Archive
Appcelerator Community (AC)

[AC-427] tableView fail to open on Android emulator/device

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2015-11-21T18:41:19.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJohn Marott
AssigneeSharif AbuDarda
Created2015-07-02T17:54:14.000+0000
Updated2015-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 iOS

Attachments

FileDateSize
.log2015-07-02T17:54:16.000+00002726
app.tss2015-07-06T21:25:26.000+00001902
appcelerator console message.rtf2015-07-02T17:54:27.000+00003074
diagnostic6091044591827922724.log2015-07-02T17:54:25.000+000076122
index.js2015-07-06T21:25:03.000+0000467
index.tss2015-07-06T21:25:26.000+0000155
index.xml2015-07-06T21:25:36.000+0000124
modGetSvk.js2015-07-06T21:25:12.000+000012385
new_svk_project_group_activity_row.js2015-07-06T21:25:03.000+0000120
new_svk_project_group_activity_row.tss2015-07-06T21:25:26.000+0000831
new_svk_project_group_activity_row.xml2015-07-06T21:25:36.000+0000313
new_svk_project_group_activity.js2015-07-06T21:25:03.000+00005470
new_svk_project_group_activity.js2015-07-02T17:54:29.000+00005630
new_svk_project_group_activity.tss2015-07-06T21:25:26.000+00001573
new_svk_project_group_activity.xml2015-07-06T21:25:36.000+0000940

Comments

  1. Radamantis Torres-Lechuga 2015-07-02

    [~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
  2. John Marott 2015-07-06

    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
  3. Papia Chowdhury 2015-07-07

    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
       var win = Ti.UI.createWindow();
       var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];
       var table = Ti.UI.createTableView({
         data: tableData
       });
       win.add(table);
       win.open();
       
    *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
  4. John Marott 2015-07-07

    You should place the 'modGetSvk.js' in a 'lib' folder under the app directory. /John Marott
  5. Radamantis Torres-Lechuga 2015-07-08

    [~john@marott.dk] we need a small test case for this issue
  6. John Marott 2015-07-08

    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
  7. Sharif AbuDarda 2015-11-18

    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.
  8. John Marott 2015-11-18

    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

JSON Source