Page 1 of 1

Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 1:08 am
by Opaquer
Hey everyone! So, bit of bad news :(. The other day I was helping a friend, and he needed to unplug my monitor to plug in his laptop. I decided to save my stack before he did, in case he unplugged the wrong cable. Once it was saved, he unplugged the computer instead of the monitor (lucky I saved - or so I thought). However, I came in today ready to start working, and the stack won't open now :(. It doesn't come up with any errors, or anything, it just doesn't open. I go File->Open and nothing happens (it may be worth noting that there wasn't anything in Livecode's recent file list at this point either). I close Livecode and open the actual .livecode file from Windows Explorer, and it just opens Livecode and not the stack :(. I just got LC 8 DP 16 (I was using DP 14 until just now) in the hopes that would fix it, but it's still doing the same thing. I've got a backup from a couple of days ago that opens fine and everything, but it's missing some stuff that I've added since then. I've tried Googling, but have only come up with corrupted files from people opening their .livecode file in a text editor and things along those lines

Does anyone have any ideas on how I can get my stack back? Any ideas would be absolutely welcome :)

Thanks in advanced

Michael

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 3:07 am
by FourthWorld
So it's not reporting corruption - could it be opening invisibly or offscreen?

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 3:08 am
by Opaquer
I doubt it - there's nothing to cause it in the code. Also, when I go to open it, it doesn't do anything. It's exactly as if the stack wasn't even opened. When I go to the file menu, there's nothing there that needs to be there - the Standalone Settings, add new substack, all of that is greyed out. And there's no windows open in the Window menu :(. I just don't understand what it could be :(

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 4:12 am
by FourthWorld
Weird. You might send that to Support and see what they can find.

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 4:53 am
by Opaquer
I might have to give it a try. It's just annoying because I want to get started on it and get this project over sooner rather than later is all :(.

I just don't understand what could even cause something like this though - no error, no messages, nothing! It's weird!

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 4:04 pm
by jacque
In the message box, type:

there is a stack "<name of your stack>"

If it says "true", which I'm thinking it will, then:

show stack <name>
toplevel <name>

And if you still don't see it, and the above gives no errors:

set the loc of stack <name> to the screenloc

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 4:21 pm
by FourthWorld
Opaquer wrote:I just don't understand what could even cause something like this though - no error, no messages, nothing! It's weird!
You mentioned having a monitor attached to your system which you'd disconnected. If that was a second monitor and the stack was last saved at a location within it, it may be that it's opening outside the bounds of the monitor you're currently using.

You can check "the working screenrects" on preOpenStack to account for that going forward.

Re: Livecode not opening my stack with no errors :(

Posted: Mon Mar 21, 2016 6:46 pm
by quailcreek
What other versions of LC do you have installed? This sound like what happens when you try to open a stack using a previous version of LC. Like when you try to open a version 7 stack with version 6. What is the default version of LC on your machine?

Re: Livecode not opening my stack with no errors :(

Posted: Tue Mar 22, 2016 12:10 am
by Opaquer
jacque wrote:In the message box, type:

there is a stack "<name of your stack>"

If it says "true", which I'm thinking it will, then:

show stack <name>
toplevel <name>

And if you still don't see it, and the above gives no errors:

set the loc of stack <name> to the screenloc
Hey jacque. Again :P. So I haven't used the message box before, so I might have done something wrong, but typing that in just came back with a "double binary expression" error, so I changed it to just say exists(stack "Stack name"), and it came back with "Can't find stack" error :(.

Also FourthWorld, I've only got the one monitor, and nothing is hidden somewhere else - as I mentioned, Livecode doesn't even pick up that I've opened a stack when I try open it. Also Tom, I've only got LC 8 DP 13, 14 and I just got 16, though I didn't get 16 until after all this happened, and was using DP 14 for ages :)

I just got an email back from support, and the best guess so far is that the stack got corrupted during the saving process and when my computer's plug got pulled out. They've asked me to send the stack to them, which I have, but they'll let me know once they know I guess?

Re: Livecode not opening my stack with no errors :(

Posted: Tue Mar 22, 2016 2:53 am
by Opaquer
LC 8 DP 14 when it happened. After the shutdown, I tried on DP 14 again, but it still didn't work, so I got DP 16 just in case it fixed it, but that didn't work either

Re: Livecode not opening my stack with no errors :(

Posted: Tue Mar 22, 2016 4:18 am
by jacque
Support would know best, so it probably is corruption. All the LC8 DP versions warn that they made a change to how stacks are saved and you should keep good backups. The good news is that there's a fair chance the engineers can unravel and restore your stack.

Re: Livecode not opening my stack with no errors :(

Posted: Tue Mar 22, 2016 6:07 am
by Opaquer
I suppose so. We'll just have to wait and see what happens :). Thanks everyone for all your help :)

Michael