ScrollView Problem (Runtime error)

Hi guys,

I am randomly getting all these scrollView runtime errors. Attached are 2-examples of them. It appears randomly and hard to reproduce.

I tried looking at the scrollView code here, but couldn’t find any correlation between the error lines reported. 

https://github.com/coronalabs/framework-widget/blob/master/scrollView.lua

The app Android APK was compiled using Corona Enterprise. Not tested it on Apple iOS yet.

Any idea what’s wrong ?

You need to download the entire widget library and use it instead of the one that gets installed by Corona (this is kind of tricky so put a bug in the code and when you’re really using the library it will fail on your ‘bug’).  

By using the downloaded library, you will be able to find the right error location(s).

Also, I’ve fixed a problem like this before for someone else.  

The problem is  caused by code executing AFTER the scrollview has been removed.  i.e. The Lua table stub is still getting events after the display object is removed.

To fix it find the error, then put some code in like this at the entry point to the function containing the issue:

if( self.removeSelf == nil ) then return end

You need to download the entire widget library and use it instead of the one that gets installed by Corona (this is kind of tricky so put a bug in the code and when you’re really using the library it will fail on your ‘bug’).  

By using the downloaded library, you will be able to find the right error location(s).

Also, I’ve fixed a problem like this before for someone else.  

The problem is  caused by code executing AFTER the scrollview has been removed.  i.e. The Lua table stub is still getting events after the display object is removed.

To fix it find the error, then put some code in like this at the entry point to the function containing the issue:

if( self.removeSelf == nil ) then return end