On my current project I am using a TableView that, when selected, loads a scrollview. Periodically when scrolling the TableView I get the following Runtime Error:
[lua]
03-22 19:32:11.584 27913 27926 I Corona : ERROR: Runtime error
03-22 19:32:11.584 27913 27926 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_tableview.lua:389: attempt to index field ‘_view’ (a nil value)
03-22 19:32:11.584 27913 27926 I Corona : stack traceback:
03-22 19:32:11.584 27913 27926 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_tableview.lua:389: in function ‘touch’
03-22 19:32:11.584 27913 27926 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_tableview.lua:952: in function ‘func’
03-22 19:32:11.584 27913 27926 I Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:222: in function </Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:205>
[/lua]
The error will usually appear in the log several times in a row. The TV is in motion when this error pops up which leads me to believe that each block of errors like the above is related to each row of the TV that is causing the issue. I haven’t been able to determine the steps that cause this error, it periodically just pops up when noodling around with the TV. The error suggests that there is a row in the TV that is missing an index that is uncovered on a ‘touch’ event but I don’t know how to test the code referenced in the error. So, my question is: how do I troubleshoot widget_tableview.lua?
Details:
-The error occurs on several builds I have tried, including the most recent daily build 2016.2844
-The error only occurs on a device, not in the simulator
-I have not tested on an Apple device yet
-Device shown in the video is a Nexus 6 with Android 6.0.1
-Also have encountered the issue with a Galaxy Nexus running Android 4.2.2
-The error will occur every time if I play around with the TV long enough
-I’ve seen some posts related to other “jenkins” errors. The only solution that I’ve seen that possibly relates has to do with disabling plugins, which I am trying once I finish this post. I use 1 currently: the Admob plugin.
Below I have included a link to a screen capture video showing the problem (jump to 2:30 to get straight to the Runtime Error). The error occurs while moving the TV up and down, not when selecting a TV row.
Thank you to all that take a look at this!
Ed