简体   繁体   中英

?:0: attempt to index field 'parent' (a nil value)

Full error:

Runtime error
?:0: attempt to index field 'parent' (a nil value)
stack traceback:
        ?: in function <?:565>
        ?: in function <?:221>

I've read multiple topics about it, none was helpful. The code works perfectly on the other computer, so there's no error in code.

I've noticed that this error is provided by ScrollView widget.If i insert any element that's been required from another .lua file and change scene-s the error will stay in loop at Simulator Output.

I have uninstalled/installed Corona multiple times, also restarted my computer several times, no changes.

Full project code was copied to other computer and it worked w/o any errors.

Is there a way to uninstall every little bit of corona? Since the project history stays after uninstall. I have also cleared appData, do i really need to format my computer to get it working again?

Edit

Also i have multiple projects, the older ones have the same error now..

SOLUTION: The problem was because of the bug in daily build, reverted some older version of Corona fixed the issue

Seems to be a problem with Corona's widget library. I noticed people were finding similar errors last year here https://forums.coronalabs.com/topic/49750-attempt-to-index-field-parent-a-nil-value/

I would recommend contacting some Corona devs or posting the issue on their forums.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM