How to rebuild corrupted stack ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
mcelvain
Posts: 58
Joined: Sat Apr 29, 2023 10:13 pm

How to rebuild corrupted stack ?

Post by mcelvain » Mon Jul 03, 2023 9:31 pm

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.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: How to rebuild corrupted stack ?

Post by FourthWorld » Mon Jul 03, 2023 10:32 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How to rebuild corrupted stack ?

Post by dunbarx » Mon Jul 03, 2023 11:13 pm

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

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: How to rebuild corrupted stack ?

Post by mwieder » Tue Jul 04, 2023 1:23 am

Also... from the Development menu select "Suppress Messages", *then* load your stack.

mcelvain
Posts: 58
Joined: Sat Apr 29, 2023 10:13 pm

Re: How to rebuild corrupted stack ?

Post by mcelvain » Wed Jul 05, 2023 10:40 pm

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?

stam
Posts: 2741
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: How to rebuild corrupted stack ?

Post by stam » Wed Jul 05, 2023 10:53 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How to rebuild corrupted stack ?

Post by dunbarx » Thu Jul 06, 2023 2:25 am

Perhaps Stam is suggesting that you do a comprehensive search for "set the name" in the SE?

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9852
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: How to rebuild corrupted stack ?

Post by FourthWorld » Thu Jul 06, 2023 4:39 am

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"?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: How to rebuild corrupted stack ?

Post by mwieder » Thu Jul 06, 2023 4:46 am


dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How to rebuild corrupted stack ?

Post by dunbarx » Thu Jul 06, 2023 1:48 pm

And I thought Americans were silly.

Craig

mcelvain
Posts: 58
Joined: Sat Apr 29, 2023 10:13 pm

Re: How to rebuild corrupted stack ?

Post by mcelvain » Thu Jul 13, 2023 1:49 pm

You guys were right; LC didn't corrupt my stack.

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How to rebuild corrupted stack ?

Post by dunbarx » Thu Jul 13, 2023 5:12 pm

BTW, the concept of "bus" was more than adequately captured in a Beatles' album.
And even better from the Firesign Theater.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: How to rebuild corrupted stack ?

Post by dunbarx » Thu Jul 13, 2023 5:13 pm

You guys were right; LC didn't corrupt my stack.
So, er, what was it?

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”