Runtime error ("attempt to index field 'view'")

@David:

Are you using our old widget library or widgets v2.0? [import]uid: 84637 topic_id: 33902 reply_id: 145120[/import]

In my case i’m on 1030 so pre 2.0 … but certainly not ready to jump into that … waiting for that to settle down a bit and for the issues with any new code to be resolved. [import]uid: 118012 topic_id: 33902 reply_id: 145121[/import]

@Danny:

As I said at the end of my previous post, I use version 2013.1031 which is a version just before widget v2.
Actually, I installed a new version with widget v2 but I got many problems like not being able to upgrade my theme file or using widget v1 (changing the required file name to “widget-v1” didn’t work).

I’m still waiting for the famous theming guide for the v2 but it’s not the subject here.
(http://developer.coronalabs.com/forum/2013/02/22/widgetnewbutton-20131034-brakes-build)

Regards
David [import]uid: 223645 topic_id: 33902 reply_id: 145144[/import]

I am seeing this same thing on Build 1030 using the TableView. When a user selects a row i dump all the rows in the table and insert all the rows to reflect the changes i want to display. About 1 of ever 4 taps i see this error … it does not show in the GUI in any way … everything is rendered properly, and still functions properly.

With the new android error stuff this will not be good to have the user get a popup with this error. It appears to be entirely within Corona or that is what i interpret from this error message:

2013-03-04 14:02:36.247 Corona Simulator[76165:707] Runtime error  
 ?:0: attempt to index field 'view' (a nil value)  
stack traceback:  
 [C]: ?  
 ?: in function '?'  
 ?: in function 'listener'  
 ?: in function <?:247>  
 ?: in function <?:218>  

Couple more details i can provide:

When user taps on a row i toss all the rows and rerender the table. The selected row has a Widget.button on it … when the error occurs the first tap on the button on the selected row does not work as expected. Like the tap is just lost to the ether. The subsequent tap does work. Not sure it that helps to narrow down what you might be looking for to fix this.

Cheers [import]uid: 118012 topic_id: 33902 reply_id: 144981[/import]

@mslack:

I haven’t seen that issue before. Would you be so kind as to whip up a simple test case that exhibits this issue and file it here? https://developer.coronalabs.com/content/bug-submission

Thanks [import]uid: 84637 topic_id: 33902 reply_id: 144982[/import]

If you build your app with the “debug.keystore”, then you will see a full Lua stack trace with file names and line numbers. This will pinpoint where exactly it is going wrong. I recommend that you do this just in case the error is within your own Lua listener, in which case the runtime error will tell you exactly how to solve it. [import]uid: 32256 topic_id: 33902 reply_id: 144983[/import]

Hi,
I have the same issue.
I use the property “listener” to get row touch event and I’m getting the same error if I touch the row more than twice.

Table filling:

tableView:deleteAllRows()  
 tableView.items = resp.items  
 for i=1, #resp.items do  
 tableView:insertRow({  
 id = i,  
 height=45,  
 rowColor= {0xf7,0xf7,0xf7},  
 lineColor={0xae, 0xae, 0xae},  
 onRender = function(event)  
 local item = tableView.items[event.target.id]  
 local label = display.newText(item.question, 10\*2, 12, "HelveticaNeue", 20)  
 label:setTextColor(0)  
 label:setReferencePoint(display.TopCenterReferencePoint)  
 label.x = display.contentWidth/2  
 event.view:insert(label)  
 end,  
 listener = function(event)   
 local item = tableView.items[event.target.id]  
 lC:goReglageAideReponse(item.question, item.answer)  
 end,  
 })  
 end  

The error :

?:0: attempt to index field 'view' (a nil value)  
message  
stack traceback:  
 [C]: ?  
 ?: in function '?'  
 ?: in function 'listener'  
 ?: in function <?:247>  
 ?: in function <?:218>  

The debug mode is enabled cause if error occur into my code, I get file name and line number where the error is located. Which is not the case here.

I use the buils 2013.1031

Thanks
David [import]uid: 223645 topic_id: 33902 reply_id: 145055[/import]

i think the latest corona builds are disapointing… there have been showed up so many errors… hope the next builds fix them… [import]uid: 185094 topic_id: 33902 reply_id: 145058[/import]

David,

If the Lua stack trace doesn’t show you file names and line numbers when building with a “debug.keystore”, then that indicates that there is a bug in our internal Lua scripts. We’ll look into fixing this. Thanks for posting the above results. I’m sure it’ll help us track it down. [import]uid: 32256 topic_id: 33902 reply_id: 145111[/import]

@David:

Are you using our old widget library or widgets v2.0? [import]uid: 84637 topic_id: 33902 reply_id: 145120[/import]

In my case i’m on 1030 so pre 2.0 … but certainly not ready to jump into that … waiting for that to settle down a bit and for the issues with any new code to be resolved. [import]uid: 118012 topic_id: 33902 reply_id: 145121[/import]

@Danny:

As I said at the end of my previous post, I use version 2013.1031 which is a version just before widget v2.
Actually, I installed a new version with widget v2 but I got many problems like not being able to upgrade my theme file or using widget v1 (changing the required file name to “widget-v1” didn’t work).

I’m still waiting for the famous theming guide for the v2 but it’s not the subject here.
(http://developer.coronalabs.com/forum/2013/02/22/widgetnewbutton-20131034-brakes-build)

Regards
David [import]uid: 223645 topic_id: 33902 reply_id: 145144[/import]

I am seeing this same thing on Build 1030 using the TableView. When a user selects a row i dump all the rows in the table and insert all the rows to reflect the changes i want to display. About 1 of ever 4 taps i see this error … it does not show in the GUI in any way … everything is rendered properly, and still functions properly.

With the new android error stuff this will not be good to have the user get a popup with this error. It appears to be entirely within Corona or that is what i interpret from this error message:

2013-03-04 14:02:36.247 Corona Simulator[76165:707] Runtime error  
 ?:0: attempt to index field 'view' (a nil value)  
stack traceback:  
 [C]: ?  
 ?: in function '?'  
 ?: in function 'listener'  
 ?: in function <?:247>  
 ?: in function <?:218>  

Couple more details i can provide:

When user taps on a row i toss all the rows and rerender the table. The selected row has a Widget.button on it … when the error occurs the first tap on the button on the selected row does not work as expected. Like the tap is just lost to the ether. The subsequent tap does work. Not sure it that helps to narrow down what you might be looking for to fix this.

Cheers [import]uid: 118012 topic_id: 33902 reply_id: 144981[/import]

@mslack:

I haven’t seen that issue before. Would you be so kind as to whip up a simple test case that exhibits this issue and file it here? https://developer.coronalabs.com/content/bug-submission

Thanks [import]uid: 84637 topic_id: 33902 reply_id: 144982[/import]

If you build your app with the “debug.keystore”, then you will see a full Lua stack trace with file names and line numbers. This will pinpoint where exactly it is going wrong. I recommend that you do this just in case the error is within your own Lua listener, in which case the runtime error will tell you exactly how to solve it. [import]uid: 32256 topic_id: 33902 reply_id: 144983[/import]

Hi,
I have the same issue.
I use the property “listener” to get row touch event and I’m getting the same error if I touch the row more than twice.

Table filling:

tableView:deleteAllRows()  
 tableView.items = resp.items  
 for i=1, #resp.items do  
 tableView:insertRow({  
 id = i,  
 height=45,  
 rowColor= {0xf7,0xf7,0xf7},  
 lineColor={0xae, 0xae, 0xae},  
 onRender = function(event)  
 local item = tableView.items[event.target.id]  
 local label = display.newText(item.question, 10\*2, 12, "HelveticaNeue", 20)  
 label:setTextColor(0)  
 label:setReferencePoint(display.TopCenterReferencePoint)  
 label.x = display.contentWidth/2  
 event.view:insert(label)  
 end,  
 listener = function(event)   
 local item = tableView.items[event.target.id]  
 lC:goReglageAideReponse(item.question, item.answer)  
 end,  
 })  
 end  

The error :

?:0: attempt to index field 'view' (a nil value)  
message  
stack traceback:  
 [C]: ?  
 ?: in function '?'  
 ?: in function 'listener'  
 ?: in function <?:247>  
 ?: in function <?:218>  

The debug mode is enabled cause if error occur into my code, I get file name and line number where the error is located. Which is not the case here.

I use the buils 2013.1031

Thanks
David [import]uid: 223645 topic_id: 33902 reply_id: 145055[/import]

i think the latest corona builds are disapointing… there have been showed up so many errors… hope the next builds fix them… [import]uid: 185094 topic_id: 33902 reply_id: 145058[/import]

David,

If the Lua stack trace doesn’t show you file names and line numbers when building with a “debug.keystore”, then that indicates that there is a bug in our internal Lua scripts. We’ll look into fixing this. Thanks for posting the above results. I’m sure it’ll help us track it down. [import]uid: 32256 topic_id: 33902 reply_id: 145111[/import]

@David:

Are you using our old widget library or widgets v2.0? [import]uid: 84637 topic_id: 33902 reply_id: 145120[/import]

In my case i’m on 1030 so pre 2.0 … but certainly not ready to jump into that … waiting for that to settle down a bit and for the issues with any new code to be resolved. [import]uid: 118012 topic_id: 33902 reply_id: 145121[/import]