Dispatch to own card locks up LC901

If you find an issue in LiveCode but are having difficulty pinning down a reliable recipe or want to sanity-check your findings with others, this is the place.

Please have one thread per issue, and try to summarize the issue concisely in the thread title so others can find related issues here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
sphere
Posts: 744
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth

Dispatch to own card locks up LC901

Post by sphere » Wed Sep 26, 2018 12:15 pm

Hi,
so i was doing a dispatch from a button to the card where it was on.
Of course this is absolutely nonsense and i don't know why i did it. What the h*ll was i thinking...

So LC901 IDE and the standalone locked up. So investigating why, it was the dispatch in the button to a handler in the card script.
Due to my think fault i did a dispatch, but of course it is not needed.
So removed it and all is working ok.

But is this a bug or not or is it just plain programming fail(the latter also), because LC locks up?

Sphere
Last edited by sphere on Wed Sep 26, 2018 8:50 pm, edited 1 time in total.
2018 Worldwide Mobile Market share: Android 84.4% !!!, iOs 15.1%, others 0.1%

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 517
Joined: Fri Feb 06, 2015 4:03 pm

Re: Dispatch to own card locks up LC901

Post by LiveCode_Panos » Wed Sep 26, 2018 12:37 pm

Hello Jerry,

Using dispatch from a button to its own card should not cause a lock up. In fact I just tried it, and LC (9.0.1) does not lock up for me.

If you can reproduce this reliably, you can file a bug report with a sample stack and we will investigate further.

Kind regards,
Panos
--

sphere
Posts: 744
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth

Re: Dispatch to own card locks up LC901

Post by sphere » Wed Sep 26, 2018 8:35 pm

Hi Panos,

i copied the stack and removed that dispatch.
Then i added it again to see what happens. Of course, now i can't replicate.

So loaded the previous stack, and this one still locks up.
Except for that line with dispatch, the stacks are the same.

I also removed the rev prferences file to see if that was of any help, but it does net make any difference.

The handler which is called by the dispatch uses the contents of a globalvariable, base64decodes them, then decrypts them and put them into their fields. Just as check after it has been saved(via php), so quickly retrieve them again(also php). And then go thru that handler.

So in short, i can't replicate. But the original stack with the command in it still does. Even as standalone.
It's on win10 (don't know if that matters). I can check on Linux and Mac too (triple boot).

***edit*** I did test the same stack on Linux Ubuntu Mate 18 and on MacOs High Sierra, but it only locks up on Windows10. All tested with LC901 Community.

Do you want me to send that stack to you?

Thanks!
Kind regards,
Jerry
2018 Worldwide Mobile Market share: Android 84.4% !!!, iOs 15.1%, others 0.1%

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 517
Joined: Fri Feb 06, 2015 4:03 pm

Re: Dispatch to own card locks up LC901

Post by LiveCode_Panos » Fri Sep 28, 2018 8:48 am

Hello Jerry,

Thank you for the update. Yes sure, you can send the stack to panos.merakos@livecode.com and we will investigate.

Best regards,
Panos
--

sphere
Posts: 744
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth

Re: Dispatch to own card locks up LC901

Post by sphere » Fri Sep 28, 2018 12:11 pm

Hi Panos,

ok will do.

Best regards,
Jerry
2018 Worldwide Mobile Market share: Android 84.4% !!!, iOs 15.1%, others 0.1%

Post Reply

Return to “Bug Triage”