LC crash on delete substack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1085
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

LC crash on delete substack

Post by trevix » Wed Dec 02, 2015 11:12 am

HI
My stack manages template in a way similar to the attached example, with substacks and trying to keep loaded only the duplicated one, beside the default one.
(LC Indy 7.1.0 build 10043 on Yosemite. Desktop development)
My stack is too complex to post and my attempts to reproduce the crash on a simpler example stack like the attachment where vain.
On the original stack the crash happens on trying to delete a loaded stack (on the second duplication)
Essentially I:
- From the main stack A) open a second stack B)
- Clone B)
- set the name of the clone to C)
- put an small array in a custom prop of C)
- save C) as a path
- make C) a substack of A)
- delete B) = Livecode crash

The crash report for Apple is of no use to me and any attempt to do things in a slightly different way, result in LC crash or the message "execution error at line 2652 (Handler: can't find handler) near "moveStack", char 1" (not part of my stack).
Any suggestion on what I should do ?
(Is a my impression or the number of crash since LC 5.5.5 have raised constantly?)
Attachments
ProvaCrash.livecode.zip
(2.46 KiB) Downloaded 236 times
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1085
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: LC crash on delete substack

Post by trevix » Wed Dec 02, 2015 12:14 pm

mmmmh....
Part of the problem, even if is not what I do on my stack, is that if:
- I have stack X with a substack Y
- I clone substack Y and rename it
- I make the cloned Y as a substack of X
- I save as path the substack Y

What get saved is X with the name of Y, not Y.
Doesn't sound correct to me, even if saving a substack as path is not correct since the substack get saved with the main stack.
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1085
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: LC crash on delete substack

Post by trevix » Wed Dec 02, 2015 4:34 pm

I decided to report this to the quality control center, but just to end the post:

EXPECTED RESULT: making a stack a substack of another stack, should update its Path (Stack X of Stack Y...)
OBSERVED RESULT: the created substack still appear as Stack X....path and you get the error "stack "lib_template": execution error at line 2652 (Handler: can't find handler) near "moveStack", char 1", which belongs to LC

1 -Open the stack
2 on the Application browser the substack “TempOldSub” is correctly: Stack “Temp OldSub” of Stack “Users/…./ProvaCrash2.livecode”
3 - select the line OldSub
4 press duplicate
5 - the new substack (as from line 52 of the script of stack “lib_template”) does not inherit the: Stack “Temp OldSub 1” of stack “/users/…../ProvaCrash2.livecode” as it should, but it stay: Stack “Users/…./“Temp OldSub 1.frtemp”
6 - run it again trying to duplicate the “OldSub 1”: at line 32 of “lib_templates” when you try to make the original to a mainstack, you get the error:
stack "lib_template": execution error at line 2652 (Handler: can't find handler) near "moveStack", char 1
Error that does not belong to the stack but to LC
Attachments
ProvaCrash 2.livecode.zip
(2.64 KiB) Downloaded 227 times
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1085
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: LC crash on delete substack

Post by trevix » Sat Dec 05, 2015 12:01 am

One more thing...
Last time I opened my stack, where i have been working for a long time, trying to populate the data grid on the PreOpenstack I've got the same error:
"execution error at line 2652 (Handler: can't find handler) near "moveStack", char 1"
the error line was:

Code: Select all

set the dgData of group "DataGrid 1" to theDataA
There are nowhere 2652 lines in my stack, the data grid group is there, the theDataA array was correct and I've got the same error reinstalling LC 7.1.0 and also trying LC 7.1.1
I also tryied to rebuilt from scratch the data grid.

At this point, being the data grid foundamental for my stack, I don't know what else to try. This is clearly another LC bug and I have no way to resolve it.
Any suggestions?
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

Post Reply