[ListView] Scroll on ListView end with an error saying "Ended a touch event which was not counted in trackedTouchCount"
@vjeux
same problem happened to me
same here.
Edit: Happens when I scroll the ListView down and scroll up only a moment later.
@vjeux Seems like a consistent bug.
@chirag04 @Duan112358 could you give us more details?
@lukasreichart
test example of react-native/Examples/Movies

the bug is sometimes unexpectable that I couldn't figure it out.
the stack log is below

when test on a real device, the touch event doesn't respond on some list item after scrolling down to load more.
It is easy to reproduce
- scroll down to load more and scroll back
- random touch some list item
If some doesn't respond, then after a few seconds, the bug is appeared again.
It's quite easy to reproduce while scrolling around in UIExplorer app.
The error message is correct: it seems that the trackedTouchCount isn't incremented, when the touch starts, but when the touch ends the ResponderEventPlugin tries to decrement, it which results in trackedTouchCount beeing -1.
Just an theory: Maybe this error occurs because gestures are handled differently on the ListView and the ListView's elements:
ListView uses ScrollView which is a separate native class and uses a UIScrollView. The ListView's
elements on the other hand use the JS Gesture Responder System.
Imagine the situation: The touch is first handled by the UIScrollView but as the touch changes it's also tracked by the JS Responder System. In this case the touch would never have been started (from the JS perspective) and therefore trackedTouchCount, wasn't incremented.
But maybe someone who understands more of the react-native gesture responder system could take a look? @vjeux @nicklockwood @ide ??
I'm getting this sometimes when returning from a webpage using LinkingIOS.
@jtremback any leads on how to fix this?
I'm getting this as well.
I've gotten this playing around on a iphone 5, never in the simulator.
@meric426 The bug also occurs in the simulator, but is more difficult to reproduce ... :/
What libraries are people using? I'm using react-native-camera, which has been a bit sketchy in general, so I wonder if it is related.
Also, React team- is there a preferred way that everyone can dump logs so that we can examine this issue in greater detail?
I'm getting this as well.
It would be fantastic if someone could reproduce this in a simulator on rnplay.org
@jtremback - it might be useful to set var DEBUG_SPY_MODE = true; in Libraries/Utilities/MessageQueue.js - but you will get a lot of noise from timers, so we'd probably want to filter that out.
This is the invariant violation being fired.
This bug seems to be fixed in react-native 0.6. Maybe I'll try to identify what fixed it, but for now I'am glad that my ScrolViews / ListViews are working again :+1:
@lukasreichart Yes, I didn't come across it since upgrading - you might be right!
Closing this issue since it sounds like it's been fixed. Please holler if it's still an issue.