Page 1 of 1

Corrupted Script on Load: Recovery Possible?

Posted: Mon Jun 10, 2013 9:24 pm
by Cromage
Hello,

I recently saved a small project in a local directory right before shutting down the computer. Now I can no longer open it.

Error message is: "There was a problem opening that stack: stack is corrupted, check for ~ backup file"

I read a similar topic but caused by something different -- I didn't do any manual editing of the file at all.

Instead, I saved on closing the program and immediately restarted my computer. I don't know if that contributed to it.

I don't really care about the project (it was only a few buttons with special geometry properties) but I would like to know:

a) is there a special location LC saves its backups?

b) does LC back up automatically or do you just need to make manual backups frequently? If the former, is there a way you can change backup frequency?

Thanks for any answers you have.

Re: Corrupted Script on Load: Recovery Possible?

Posted: Mon Jun 10, 2013 10:27 pm
by FourthWorld
The backup file is in the same directory as the original, merely renamed with a preceding tidle. The backup file is deleted once the save is completed and verified, however, so it's not like the engine makes innumerable copies of your file as you go.

As we discussed at length in the other thread, file corruption is extremely rare with LC. If you can find a recipe for reproducing it please submit a bug report.

Re: Corrupted Script on Load: Recovery Possible?

Posted: Tue Jun 11, 2013 4:27 pm
by Cromage
Ok, thanks for the info.

I'm not sure if it can be reproduced, but I'll try.

Re: Corrupted Script on Load: Recovery Possible?

Posted: Tue Jun 11, 2013 6:23 pm
by jacque
What version of LiveCode are you using? There was a script corruption issue that was fixed in 6.0.2.