Runtime error Bad argument #-2

I’m getting this error when I try to use gotoScene

Runtime error  
 bad argument #-2 to 'insert' (Proxy expected, got nil)  
stack traceback:  
 [C]: ?  
 [C]: in function 'insert'  
 ?: in function '?'  
 ?: in function 'gotoScene'  
 ...ocuments\corona projects\stuck\_scenes\guess\_word.lua:230: in function  
 '\_listener'   

I have a few scenes before this one, that transition fine. Does anyone know what would cause this error? I don’t want to post my code because it is quite bulky [import]uid: 208811 topic_id: 36969 reply_id: 336969[/import]

I would suspect that in the scene you are going to you have an error. And if I were a betting man, you’re trying to insert an image into your display group in that scene that doesn’t exist. Possibly a bad file name on a display.newImageRect() somewhere above it.
[import]uid: 199310 topic_id: 36969 reply_id: 145233[/import]

I would suspect that in the scene you are going to you have an error. And if I were a betting man, you’re trying to insert an image into your display group in that scene that doesn’t exist. Possibly a bad file name on a display.newImageRect() somewhere above it.
[import]uid: 199310 topic_id: 36969 reply_id: 145233[/import]

I would suspect that in the scene you are going to you have an error. And if I were a betting man, you’re trying to insert an image into your display group in that scene that doesn’t exist. Possibly a bad file name on a display.newImageRect() somewhere above it.
[import]uid: 199310 topic_id: 36969 reply_id: 145233[/import]

This is very strange! As far as I can remember I did no further work on my code after I posted this question yesterday. I am running the code now and I am no longer getting the error. How can this be? [import]uid: 208811 topic_id: 36969 reply_id: 145276[/import]

I came across this error again today in another scene. I discovered that, in the scene I was leaving I was either calling storyboard.purge/remove(“scene”) in the exitScene(). After I removed this it worked fine. I also have a question about memory management, Do I have to manually remove and nil out every table I use? [import]uid: 208811 topic_id: 36969 reply_id: 145285[/import]

I would suspect that in the scene you are going to you have an error. And if I were a betting man, you’re trying to insert an image into your display group in that scene that doesn’t exist. Possibly a bad file name on a display.newImageRect() somewhere above it.
[import]uid: 199310 topic_id: 36969 reply_id: 145233[/import]

This is very strange! As far as I can remember I did no further work on my code after I posted this question yesterday. I am running the code now and I am no longer getting the error. How can this be? [import]uid: 208811 topic_id: 36969 reply_id: 145276[/import]

I came across this error again today in another scene. I discovered that, in the scene I was leaving I was either calling storyboard.purge/remove(“scene”) in the exitScene(). After I removed this it worked fine. I also have a question about memory management, Do I have to manually remove and nil out every table I use? [import]uid: 208811 topic_id: 36969 reply_id: 145285[/import]

Year 2021,
I got same err…

I found that it happens if a display object is deleted and recreated again. It is better to hide such an object and show again, it gives no errors.

16:52:34.724  ERROR: Runtime error
16:52:34.724  D:\a\corona\corona\subrepos\widget\widgetLibrary\widget_scrollview.lua:474: bad argument #-2 to '_cachedRemoveSelf' (Proxy expected, got nil)
16:52:34.724  stack traceback:
16:52:34.724  	[C]: in function '_cachedRemoveSelf'
16:52:34.724  	D:\a\corona\corona\subrepos\widget\widgetLibrary\widget_scrollview.lua:474: in function 'method'
16:52:34.724  	D:\a\corona\corona\platform\resources\init.lua:540: in function 'remove'
16:52:34.724  	D:\VS_Projects\Corona_projects\p1\p1\scenes\settings.lua:467: in function 'listener'
16:52:34.724  	D:\a\corona\corona\subrepos\timer\timer.lua:331: in function 'method'
16:52:34.724  	D:\a\corona\corona\platform\resources\init.lua:220: in function <D:\a\corona\corona\platform\resources\init.lua:189>