Cannot open stack anymore after crash
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Cannot open stack anymore after crash
One of my students was working on a stack. When he tried to save it, livecode crashed. Now the stack can't be opened anymore.
- Double-clicking on the stack will open livecode, but the stack will not open.
- Open from Livecode via the menu - it does not open.
The file itself is there, and with 1477 KB not empty.
I tried it from another PC - without success.
I opened the file with a text editor. We can see the different parts of code inside.
Is there a way to open this stack again?
(I cannot attach the file, as ".livecode" is an invalid file extension for the forum software.)
- Double-clicking on the stack will open livecode, but the stack will not open.
- Open from Livecode via the menu - it does not open.
The file itself is there, and with 1477 KB not empty.
I tried it from another PC - without success.
I opened the file with a text editor. We can see the different parts of code inside.
Is there a way to open this stack again?
(I cannot attach the file, as ".livecode" is an invalid file extension for the forum software.)
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Cannot open stack anymore after crash
Not sure about your issue. But you have to zip a file in order to attach it to a post.
Craig
Craig
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Cannot open stack anymore after crash
Hi,
You may try this:
Open LC, lockmessages, open your stack from menu open of LC
Best regards
Jean-Marc
You may try this:
Open LC, lockmessages, open your stack from menu open of LC
Best regards
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot open stack anymore after crash
You can zip the file for posting here.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Cannot open stack anymore after crash
Before doing a save, LC makes a copy of the stack as a backup in case something goes wrong. It names the backup with a leading tilde (~) before the original name. See if you can find a stack like that in the folder with the corrupted one. If so, you can remove the tillde from the name and the backup should open.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Cannot open stack anymore after crash
Thank you for all this inputs.
Unfortunately, I could not find a file with a tilde.
I didn't understand, how to open with 'lockmessage'.
This is the file: https://www.swisstransfer.com/d/72754ea ... 1673e0f02b (it is bigger than the size limit of the forum, the link works for 30 days)
Unfortunately, I could not find a file with a tilde.
I didn't understand, how to open with 'lockmessage'.
This is the file: https://www.swisstransfer.com/d/72754ea ... 1673e0f02b (it is bigger than the size limit of the forum, the link works for 30 days)
-
- VIP Livecode Opensource Backer
- Posts: 7237
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Cannot open stack anymore after crash
I looked at the stack, it is definitely corrupted. Locking messages doesn't help, and if there is no tilde backup then I'm afraid it's gone. You have two choices:
1. Create a new stack and reconstruct the stack cards and layout. Open the corrupted stack in a text editor and copy/paste the scripts into the new stack.
2. Ask LC support if they can fix it. There's a good probability they can, but you will probably have to pay a fee.
1. Create a new stack and reconstruct the stack cards and layout. Open the corrupted stack in a text editor and copy/paste the scripts into the new stack.
2. Ask LC support if they can fix it. There's a good probability they can, but you will probably have to pay a fee.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot open stack anymore after crash
Was the file stored on a networked drive, or in a folder synced with a cloud service like DropBox, iCloud, or Google Drive?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot open stack anymore after crash
FWIW, the engine confirms what Jacque says, that the file is corrupted:
...yields: "stack is corrupted, check for ~ backup file"
When I try to open here, the IDE reports that in a warning dialog. Does that not happen for you?
Looking at the file in a binary editor, I see the header marking noting the file format is intact ("REVO07000"), and the scripts are visible. While there's a lot of JPEGs in there which would need to be imported again if remaking it, the scripts themselves are few and short, so at least that part of rebuilding would be a snap.
Code: Select all
lock messages;open stack "/home/User/Path/To/File/Warships live code.livecode"; put the result
When I try to open here, the IDE reports that in a warning dialog. Does that not happen for you?
Looking at the file in a binary editor, I see the header marking noting the file format is intact ("REVO07000"), and the scripts are visible. While there's a lot of JPEGs in there which would need to be imported again if remaking it, the scripts themselves are few and short, so at least that part of rebuilding would be a snap.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Cannot open stack anymore after crash
Always backup your work
I am using the plugin stack "Auto backups" and it has saved my life more than once.
Check: http://livecodeshare.runrev.com/stack/799/Auto-backups
I back up the whole stack every 10 minutes.
When working in the script editor, I back up scripts after finishing one part with my own backup routing as text files appended with the date and time (with seconds).
Never do any serious development without backup. And to do it automatically using such plugin just saves you and you may even forget about it.
If you need to use a backed up stack, close LiveCode, rename the back up file to the current file name, start from there.
Golife
I am using the plugin stack "Auto backups" and it has saved my life more than once.
Check: http://livecodeshare.runrev.com/stack/799/Auto-backups
I back up the whole stack every 10 minutes.
When working in the script editor, I back up scripts after finishing one part with my own backup routing as text files appended with the date and time (with seconds).
Never do any serious development without backup. And to do it automatically using such plugin just saves you and you may even forget about it.
If you need to use a backed up stack, close LiveCode, rename the back up file to the current file name, start from there.
Golife
Re: Cannot open stack anymore after crash
Thank you for all help.
That is was the student did.FourthWorld wrote: ↑Wed Dec 02, 2020 9:38 pmWhile there's a lot of JPEGs in there which would need to be imported again if remaking it, the scripts themselves are few and short, so at least that part of rebuilding would be a snap.
We will look to that plugin next Friday and install it on the computers in the computer room.golife wrote: ↑Thu Dec 03, 2020 5:25 pmI am using the plugin stack "Auto backups" and it has saved my life more than once.
Check: http://livecodeshare.runrev.com/stack/799/Auto-backups
-
- VIP Livecode Opensource Backer
- Posts: 9840
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Cannot open stack anymore after crash
Please also send the corrupt file to support AT LiveCode.com.
True file format corruption is very rare with LiveCode. Submitting that example may make it even rarer if they can pin down the cause.
True file format corruption is very rare with LiveCode. Submitting that example may make it even rarer if they can pin down the cause.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn