Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when scroll view is removed: attempt to call method 'insert' (a nil value) #18

Open
Benzeliden opened this issue Dec 25, 2018 · 0 comments

Comments

@Benzeliden
Copy link

Crash log from device:

/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_momentumScrolling.lua:819: attempt to call method 'insert' (a nil value)


stack traceback:
	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_momentumScrolling.lua:819: in function 'createScrollBar'
	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_scrollview.lua:306: in function 'listener'
	/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/timer/timer.lua:212: in function 'method'
	/Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:190>
	

Happens if you call scroll:setScrollHeight (which set up a 2ms timer for rendering a scroll bar) and scroll view got removed just before timer triggered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant