Page 1 of 1

How to rebuild corrupted stack ?

Posted: Mon Jul 03, 2023 9:31 pm
by mcelvain
What is the best way to rebuild a copy of a corrupted stack?

My stack has just started renaming its objects with my variables (perhaps Globals) and renaming my variables in scripts as well.

Re: How to rebuild corrupted stack ?

Posted: Mon Jul 03, 2023 10:32 pm
by FourthWorld
Stack file corruption of extremely rare in LiveCode.

From the description it sounds like you have an errant script in there somewhere. Rebuilding the stack still just reproduce the error.

What action triggers the renaming? We can probably help diagnose to pinpoint the root cause.

Re: How to rebuild corrupted stack ?

Posted: Mon Jul 03, 2023 11:13 pm
by dunbarx
What Richard said.

A corrupted stack (rare) generally does not load at all. It is not typically one that misbehaves in the sense that it has stopped "working" properly, and started to "work" improperly.

Can you comment out large portions of your scripts and handlers, and see what happens? If you have to comment everything, then do so. Then start enabling them one by one, and again see what happens.

Craig

Re: How to rebuild corrupted stack ?

Posted: Tue Jul 04, 2023 1:23 am
by mwieder
Also... from the Development menu select "Suppress Messages", *then* load your stack.

Re: How to rebuild corrupted stack ?

Posted: Wed Jul 05, 2023 10:40 pm
by mcelvain
Thank-you all!

Will do.

Would a bad system bus allow a line of script to just die, while the compiler is happily purring away, now with mis-matched calls/responses?

Re: How to rebuild corrupted stack ?

Posted: Wed Jul 05, 2023 10:53 pm
by stam
mcelvain wrote:
Mon Jul 03, 2023 9:31 pm
My stack has just started renaming its objects with my variables (perhaps Globals) and renaming my variables in scripts as well.
To me it seems more probable there is something in your code renaming objects rather than this being a corruption of some kind...

I would set a breakpoint at a relevant point and then step through the code to see at what point the objects are renamed to the name of your variables.

HTH
Stam

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 06, 2023 2:25 am
by dunbarx
Perhaps Stam is suggesting that you do a comprehensive search for "set the name" in the SE?

Craig

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 06, 2023 4:39 am
by FourthWorld
mcelvain wrote:
Wed Jul 05, 2023 10:40 pm
Would a bad system bus allow a line of script to just die, while the compiler is happily purring away, now with mis-matched calls/responses?
What is a "bad system bus"?

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 06, 2023 4:46 am
by mwieder

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 06, 2023 1:48 pm
by dunbarx
And I thought Americans were silly.

Craig

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 13, 2023 1:49 pm
by mcelvain
You guys were right; LC didn't corrupt my stack.

BTW, the concept of "bus" was more than adequately captured in a Beatles' album.

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 13, 2023 5:12 pm
by dunbarx
BTW, the concept of "bus" was more than adequately captured in a Beatles' album.
And even better from the Firesign Theater.

Craig

Re: How to rebuild corrupted stack ?

Posted: Thu Jul 13, 2023 5:13 pm
by dunbarx
You guys were right; LC didn't corrupt my stack.
So, er, what was it?

Craig