Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6488] UITableView Error occurred after upgrading from titanium sdk 8.2.0.GA to 8.3.1.GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterkoki_shigeyama
AssigneeAbir Mukherjee
Created2020-02-13T02:01:46.000+0000
Updated2020-02-20T12:28:11.000+0000

Description

I upgraded from sdk8.2.0.GA to 8.3.1.GA. But there was a problem with UITableView. An error occurs in selectItem processing. Here is the code.
$.listDetailView.selectItem(category, section.items.length - 1);
Here is the error.
[ERROR] Script Error {
[ERROR]     column = 32;
[ERROR]     line = 1754;
[ERROR]     message = "Attempted to scroll the table view to an out-of-bounds row (1) when there are only 1 rows in section 0. Table view: <UITableView: 0x7fe16d87bc00; frame = (0 0; 994 150); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x60000384b630>; layer = <CALayer: 0x600003728b40>; contentOffset: {0, 0}; contentSize: {994, 1270}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <TiUIListView: 0x7fe16ff34440; frame = (15 76; 994 150); autoresize = W; layer = <CALayer: 0x600003728640>>>";
8.2.0.GA does not cause an error. How can it be solved?

Comments

  1. Rene Pot 2020-02-20

    Can you share the rest of the relevant code? Preferably a standalone app I can use to reproduce the issue, so we can investigate better!

JSON Source