Director not working with Corona 971?

I built an app but recently upgraded corona to 971, along with updating my Xcode etc.
Code was flawless, no errors, no problems but now with corona sdk 971 I get errors in the terminal:
Runtime error
ERROR: Attempt to remove an object that’s already been removed from the stage or whose parent/ancestor group has already been removed.
stack traceback:
[C]: ?
[C]: in function ‘removeSelf’
?: in function ‘remove’
?: in function ‘removeSelf’
/Users/brianphillips/Desktop/bfacts/director.lua:180: in function ‘cleanGroups’
/Users/brianphillips/Desktop/bfacts/director.lua:177: in function ‘cleanGroups’
/Users/brianphillips/Desktop/bfacts/director.lua:177: in function ‘cleanGroups’
/Users/brianphillips/Desktop/bfacts/director.lua:298: in function ‘_listener’
?: in function <?:534>
?: in function <?:229>

Any help please? [import]uid: 58922 topic_id: 33742 reply_id: 333742[/import]

Hello,
Can you please post the code for just the “cleanGroups” function in the director.lua file you’re using? I want to just review that to see if anything odd seems to be in there.

Thanks,
Brent [import]uid: 200026 topic_id: 33742 reply_id: 134122[/import]

Certainly:

[lua]------------------------------------------------------------------------
– CLEAN GROUP

local function cleanGroups ( curGroup, level )
if curGroup.numChildren then
while curGroup.numChildren > 0 do
cleanGroups ( curGroup[curGroup.numChildren], level+1 )
end
if level > 0 then
curGroup:removeSelf()
end
else
curGroup:removeSelf()
curGroup = nil
return true
end
end[/lua] [import]uid: 58922 topic_id: 33742 reply_id: 134129[/import]

Ugh…you know what…brainfart. Somehow version 1.2 was in my folder rather than 1.4

fixed.

[import]uid: 58922 topic_id: 33742 reply_id: 134130[/import]

Hello,
Can you please post the code for just the “cleanGroups” function in the director.lua file you’re using? I want to just review that to see if anything odd seems to be in there.

Thanks,
Brent [import]uid: 200026 topic_id: 33742 reply_id: 134122[/import]

Certainly:

[lua]------------------------------------------------------------------------
– CLEAN GROUP

local function cleanGroups ( curGroup, level )
if curGroup.numChildren then
while curGroup.numChildren > 0 do
cleanGroups ( curGroup[curGroup.numChildren], level+1 )
end
if level > 0 then
curGroup:removeSelf()
end
else
curGroup:removeSelf()
curGroup = nil
return true
end
end[/lua] [import]uid: 58922 topic_id: 33742 reply_id: 134129[/import]

Ugh…you know what…brainfart. Somehow version 1.2 was in my folder rather than 1.4

fixed.

[import]uid: 58922 topic_id: 33742 reply_id: 134130[/import]