Runtime Error on Device: Widgets

Hi guys.

I’m new to Corona SDK and Lua.

I’m developing my first app on Corona SDK and it works fine on the Windows simulator, but when I build and install it on the device, it starts to run, but I run into this runtime error.

/Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/widget/widgetLibrary/widget_button.lua:598: attempt to index local ‘viewOver’ (a nil value)

Please let me know what I need to do to fix this.

Thanks.

Stop doing that!

Seriously though…

  1. File a bug and in the bug, tell them to contact roaminggamer (I have a fix, but it needs to be integrated by them).

  2. Post back here and say what the bug number is.

3. This is caused by a piece of code running one frame after you delete and looking for an object that has been destroyed.

I could just post the fix here, but that would involve sending you the fixed widget library and instructions on how to override the default library with it.  I’d rather just fix this once and for all.

-Ed

Stop doing that!

Seriously though…

  1. File a bug and in the bug, tell them to contact roaminggamer (I have a fix, but it needs to be integrated by them).

  2. Post back here and say what the bug number is.

3. This is caused by a piece of code running one frame after you delete and looking for an object that has been destroyed.

I could just post the fix here, but that would involve sending you the fixed widget library and instructions on how to override the default library with it.  I’d rather just fix this once and for all.

-Ed