WTF

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

WTF

Post by dalkin » Sat Sep 11, 2021 2:56 am

Livecode and Mac OSX Big Sur still refuse to play nice and despite reporting a bug (23279) back in July but the problem is now unmanageable, with no clear fix in sight. I have uploaded a video https://youtu.be/zucpqmHgW78 that shows the issue that emerges when I open my project so someone might recognise what's at play and, if that person is LC staff, they might pass it to Panos. It is obviously (to me) a problem with how LC is managing memory but I don't know if that's what it is.

All versions of LC are affected, these are the versions I have installed:
Screen Shot 2021-09-11 at 11.47.12 am.png
If we're treading on thin ice, well you might as well dance.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: WTF

Post by richmond62 » Sat Sep 11, 2021 9:57 am

I must be very stupid indeed, but having watched your video
I cannot understand things.

If you could explain what goes wrong in words I might have a chance.

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: WTF

Post by dalkin » Sat Sep 11, 2021 10:44 am

There are 2 cards, and the video shows the transition from one card to the other where the 1st card, at the start of the video, breaks up slowly and in pieces to reveal the 2nd card (orange colour). The transition is triggered by selecting the name in the scrolling list field on card 1. The transition and fragmentation are in real time.
If we're treading on thin ice, well you might as well dance.

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1206
Joined: Thu Apr 11, 2013 11:27 am

Re: WTF

Post by LCMark » Sat Sep 11, 2021 12:20 pm

@dalkin: I posted a comment on bug 23279 which I hope will be helpful.

The video shows a known issue in 9.6.1 when running on Big Sur which we fixed in 9.6.3.

Unfortunately the fix to that bug means that it now takes longer to update the screen when any one update occurs - it is advised to use lock/unlock screen judiciously around code which updates multiple interface elements.

In particular, the CPU spike issue reported on the mentioned bug is down to the many default buttons on the Lyricist card - default buttons 'pulse' in some versions of macos, so with several of them the screen is being updated constantly (as they do not pulse on Big Sur, or indeed Catalina at least, we do need to tweak when the animation is attempted to be run based on macOS version).

In the meantime, simply making all those default buttons normal buttons seems to resolve the CPU spiking issue - which will hopefully mean you can use 9.6.4 for your app and thus resolve the graphical fragmentation issues you are seeing with 9.6.1.

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: WTF

Post by dalkin » Sun Sep 12, 2021 5:26 am

Thank you Mark, I would never have picked that up in 7 lifetimes. The interface is working to all intents and purposes with the single exception that I can't seem to delete a card by script. The card is not checked as 'Cant delete' in the property inspector but it seems that there is a running script. The triggered error and the script from the message box are shown here:
Screen Shot 2021-09-12 at 2.30.02 pm.jpg
If we're treading on thin ice, well you might as well dance.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7210
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: WTF

Post by jacque » Sun Sep 12, 2021 4:55 pm

Is the Delete button on the card you're trying to delete? You can't do that because the button script is running.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9250
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: WTF

Post by richmond62 » Sun Sep 12, 2021 6:22 pm

Is the Delete button on the card you're trying to delete? You can't do that because the button script is running.
This looks like a bad case of circular logic.

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: WTF

Post by dalkin » Sun Sep 12, 2021 10:55 pm

Strange .. 'delete card' is an entry in the dictionary so the question remains as to how to delete a card by script.
If we're treading on thin ice, well you might as well dance.

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

Re: WTF

Post by FourthWorld » Sun Sep 12, 2021 11:04 pm

Execute it from the script of any other object than the one being deleted.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13793
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: WTF

Post by Klaus » Mon Sep 13, 2021 12:12 am

Script this:

Code: Select all

on mouseup
  send "delete this cd" to this stack in 1
end mouseup
Isn't LCS wonderful? :-)

dalkin
Posts: 176
Joined: Wed Jul 04, 2007 2:32 am
Location: Blackheath, Australia
Contact:

Re: WTF

Post by dalkin » Mon Sep 13, 2021 10:13 pm

Yep. Richard's advice to trigger it from another object worked for me. Thank you to everyone who contributes to this forum. A real community. I think you should all be bronzed.
If we're treading on thin ice, well you might as well dance.

Post Reply

Return to “Mac OS”