Page 1 of 1

Corrupted stack

Posted: Thu Jan 24, 2019 11:51 am
by simon.schvartzman
Hi, a project in which I've working for several months suddenly doesn't allow me to open with the following message
pic2.jpg
nothing has gone wrong with my Mac since last time I opened the stack and needless to say I have no backup (never needed one since starting working with LC in a Mac with no HD, just solid state memory..., shame on me)

This is my preference configuration
pic1.jpg
I remember having seen a message saying something about "Your LC needs to do something in order to work better with your mac".
Don't recall exactly one was it, but probably was after the last time I closed the troubled stack. I also don't recall how I answered the message. (shame on me again...)

All my other projects open OK.

Anyone has any idea of what could be happening and/or has a suggestion as how to fix it?

Many thanks

Re: Corrupted stack

Posted: Thu Jan 24, 2019 12:27 pm
by richmond62
At the risk of being a pain in the bum did you look for a file called

"~CamClient V4.livecode" rather than one called "~backup"?

If a LiveCode stack goes "wonky" there is USUALLY a file with the same name
prefixed with a tilde "~" in the same place as where you previously saved the stack.

This has got NOTHING to do with whether you have a backup you have made or not.

Admittedly it is a good idea to make backups of one's work, generally to an external hard disk.

Re: Corrupted stack

Posted: Thu Jan 24, 2019 12:43 pm
by simon.schvartzman
Thanks richmond for your suggestion, answer is no, no such file ~CamClient exists (even with no file extension defined).

My mother always said to me "Don't speak with strangers and always make backups" but I decided to live dangerously :D :( :oops:

Re: Corrupted stack

Posted: Thu Jan 24, 2019 1:23 pm
by Klaus
No backup, no mercy! 8)

Hey, you are on a Mac, so get an external hd and turn on "TimeMachine",
which saved my life a couple of times in the past!

Re: Corrupted stack

Posted: Thu Jan 24, 2019 4:13 pm
by dunbarx
Ugh.

I don't suppose you can, from msg, say, edit the script of the stack?

Craig Newman

Re: Corrupted stack

Posted: Thu Jan 24, 2019 4:59 pm
by Klaus
You can try to open that stack with a text editor and see if you can read and copy the scripts.

Re: Corrupted stack

Posted: Fri Jan 25, 2019 9:52 am
by [-hh]
You could try

1. delete the LC-preferences and restart
(usually /Users/<yourUserName>/Library/Preferences/RunRev/livecode7.rev for LC > 6)
2. As a last resort (to extract the scripts of the controls only):
Have a a look at the corrupted stack with "Nuzzler".
viewtopic.php?p=112416#p112416

Re: Corrupted stack

Posted: Fri Jan 25, 2019 4:09 pm
by tomBTG
Hi,

That dialog message is as bit misleading. It says look for the ~ backup file. But the ~ is actually added to the very end of the extension part of the file name, not at the front. And that trailing ~ can be easy to miss, especially since the file will probably no longer show the LC icon.

So, take another look for "CamClient V4.livecode~" If you find that, just remove the ~ and see if you can open the stack.

Good luck!
Tom Bodine

Re: Corrupted stack

Posted: Fri Jan 25, 2019 5:38 pm
by jacque
It seems unlikely, but make sure that the version of LiveCode that fails is the same copy that opened the stack previously. If you double clicked the stack to launch LiveCode it's possible an older version opened. Some older versions incorrectly reported corruption when they couldn't recognize a newer file format.

Re: Corrupted stack

Posted: Wed Jan 30, 2019 1:59 pm
by simon.schvartzman
Hi guys, many thanks for all of you who came to the rescue.

Unfortunately none of the suggestions worked, I'm following the "text editor" path. I was able to open the file with the text editor and since the Stack is not so big I shouldn't need too much time to bring it back to life.

Price to pay for having no backup!

Cheers

Re: Corrupted stack

Posted: Wed Jan 30, 2019 3:46 pm
by dunbarx
Might it be prudent to send the corrupted stack to the team?

I do not know how interested they might be in such a thing, but it is rare to find one, and perhaps they might get some insight into how it happened.

Anyone else ever sent one? Anyone have a folder full of corrupted stacks? Anyone know how to make one?

Craig

Re: Corrupted stack

Posted: Wed Jan 30, 2019 5:35 pm
by simon.schvartzman
Hi Craig, I guess this is a very good idea.

I'm going to approach Panos by mail and will report back his feedback.

Re: Corrupted stack

Posted: Fri Feb 01, 2019 12:55 pm
by simon.schvartzman
Hi, please find below the answer I got from LC
I have read the forum thread, and I suspect the issue is just "one of those
things". It's probably not reproducible, however it might be worth reporting it
in our Quality Center just as a data point, and so that we have all the
relevant information such as OS and LiveCode version used. If other users also
experience this they can then add to the report, which increases the chance of
a successful diagnosis/fix of the issue:
I did as suggested and the post is here https://quality.livecode.com/show_bug.cgi?id=21814

Best!