Crash App on the Device (Segmentation fault: 11)

Hi Ansca-Team

I keep getting in the use of information on my app the following error:

Mar 8 11:07:53 unknown ReportCrash[220] <notice>: Formulating crash report for process TestRainbow[200]<br>Mar 8 11:07:54 unknown com.apple.launchd[1] <warning>: (UIKitApplication:TestRainbow[0x488c]) Job appears to have crashed: Segmentation fault: 11<br>Mar 8 11:07:54 unknown SpringBoard[49] <warning>: Application 'TestRainbow' exited abnormally with signal 11: Segmentation fault: 11<br>Mar 8 11:07:54 unknown ReportCrash[220] <error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0<br>Mar 8 11:07:54 unknown ReportCrash[220] <notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/TestRainbow_2012-03-08-110752_iPad-von-JaW985.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0&gt;

Thank you for your help.

Sorry for my bad english :wink:
Do you need the DeviceLog? [import]uid: 107610 topic_id: 23000 reply_id: 323000[/import]

That doesn’t really show any info about why it crashed. Possibly more info in the crash report. [import]uid: 10389 topic_id: 23000 reply_id: 92084[/import]

This happens frequently when you try to delete something that dosn’t exist any more. I’ve also gotten these using any type of scene manager where some event is still running in a scene that’s been removed and those runtime listeners/timers/transitions are trying to access objects that have been removed.

Segmentation Faults generally speaking result from the computer trying to write to memory its not allowed to.
[import]uid: 19626 topic_id: 23000 reply_id: 92101[/import]

Thank you for your help @robmircale

Can you possibly tell me how can I get this error?

[code]Mar 13 14:42:12 iPad-von-JaW985 UIKitApplication:RegenbogenfishDemo[0x3690][3242] : Lua Runtime Error: lua_pcall failed with status: 2, error message is: ?:0: attempt to index upvalue ‘?’ (a nil value)
[code] [import]uid: 107610 topic_id: 23000 reply_id: 93030[/import]

Upvalues are “External Local Variables”. Lets say you have something like:

[lua]local function flintstone()
local family = {“Fred”, “Wilma”, “Pebbles”, “Dino”}

local function printFamily()
for i = 1, #family do
print(family[i])
end
end
end[/lua]

Inside the function printFamily, we are accessing the “family” table which is external to that function, but is locally scoped to its parent. This is an External Local Variable or in Lua-speak, an Upvalue.

So you have somewhere in your code a function trying to reference a variable in it’s parent that doesn’t exist.

Perhaps if you posted your code inside of < code > and < /code > tags (no spaces) then we could help pin-down the problem.
[import]uid: 19626 topic_id: 23000 reply_id: 93033[/import]