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 »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to rebuild corrupted stack ?

Post 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.
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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: How to rebuild corrupted stack ?

Post 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
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: How to rebuild corrupted stack ?

Post by mwieder »

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 »

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: 3209
Joined: Sun Jun 04, 2006 9:39 pm

Re: How to rebuild corrupted stack ?

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: How to rebuild corrupted stack ?

Post by dunbarx »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: How to rebuild corrupted stack ?

Post 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"?
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: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: How to rebuild corrupted stack ?

Post by mwieder »

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: How to rebuild corrupted stack ?

Post by dunbarx »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: How to rebuild corrupted stack ?

Post by dunbarx »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: How to rebuild corrupted stack ?

Post by dunbarx »

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

Craig
Post Reply