Bug? ListView index exceeds maxCellCount Error

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

while adding data from a serial line to a listview, received following log information:
B4X:
com.sun.javafx.scene.control.skin.VirtualFlow addTrailingCells
INFORMATION: index exceeds maxCellCount. Check size calculations for class anywheresoftware.b4j.objects.ListViewWrapper$MyCallBack$1

Tried to reproduce, but not able as lost the serial line data.

Any hints what the cause could be?
 
Last edited:

rwblinn

Well-Known Member
Licensed User
Longtime User
No it did not - just an info warning. looked at the hint from @inakigarm and it seems indeed a timing issue in getting newdata while completing the scrollto event.
For this case:
The listview logs incoming data from the serial line via asyncstream eg. newdata is added to the listview followed by a scrollto(items.size - 1) to see the last entry.
So this warning can probably be ignored.
 
Top