Runtime Error 2 Corona Apps -- Udp, Userdata, Lua_Pcall?

Has anyone seen this error before?

<Warning>: Lua Runtime Error: lua_pcall failed with status: 2, error message is: calling ‘send’ on bad self (udp{connected} expected, got userdata)

It gets thrown right when my app loads, and I first click a button.

I’m pretty sure it has something to do with memory because when I my other corona app, and then rerun, everything seems fine.

Just wondering what it’s actually trying to do here.

I think I’ve found the problem.

I’m using LUAGlider for my IDE and it inserts this line at the top of main.lua…

require “CiderDebugger”;

I’m not sure what exactly it’s doing, but it’s supposed to delete that line on build.

I
tried to build straight from the Corona Simulator and not from
LUAGlider, and I have successfully run both apps backgrounding each
other and foregrounding.

PROBLEM : Apps freeze if you build (iOS) using LUAglider to launch the Corona Simulator

FIX : Delete the “CiderDebugger” line and launch/build with the Corona Simulator separately from LUAglider.

So this fixes it too. Found in the Glider sub-forum…

 

When deploying to device from glider, use the hammer icon for build, rather than the ‘run’ or ‘debug’ buttons.

This will remove the require(“glider”) line from your main.cs, and allow the app to run on device.

-Ray

I think I’ve found the problem.

I’m using LUAGlider for my IDE and it inserts this line at the top of main.lua…

require “CiderDebugger”;

I’m not sure what exactly it’s doing, but it’s supposed to delete that line on build.

I
tried to build straight from the Corona Simulator and not from
LUAGlider, and I have successfully run both apps backgrounding each
other and foregrounding.

PROBLEM : Apps freeze if you build (iOS) using LUAglider to launch the Corona Simulator

FIX : Delete the “CiderDebugger” line and launch/build with the Corona Simulator separately from LUAglider.

So this fixes it too. Found in the Glider sub-forum…

 

When deploying to device from glider, use the hammer icon for build, rather than the ‘run’ or ‘debug’ buttons.

This will remove the require(“glider”) line from your main.cs, and allow the app to run on device.

-Ray