menu builder crash

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
neville
Posts: 64
Joined: Wed Jul 31, 2024 1:03 am
Location: Canberra, Australia
Contact:

menu builder crash

Post by neville »

Just got a crash in OxTLite when working with the Menu Builder tool. This is with a legacy Livecode stack, but I am 90% sure I had used MenuBuilder before successfully with this stack in OxTLite.

Just now it wouldn't let me edit the current menubar (which was "menubar 2"). The menubar items displayed correctly, but greyed out, everything was disabled. I created a new menubar, called "menubar 1". That enabled all items. Then selected my "menubar 2". All those items now enabled and I could edit it, seemingly successfully. Then tried to delete "menubar 1". Fatal crash of OXT. When I relaunched, menubar 2 was no longer editable; the stack hadn't saved so the changes I had made were gone, and menubar 1 was also absent.

Have changes been made to the Menu Builder stuff, or could this be an old LC bug?
User avatar
tperry2x
Posts: 3210
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: menu builder crash

Post by tperry2x »

I've made no changes to the menu builder stack as of yet. I was thinking of completely remaking it, but that was going to be a job for a future update.

What platform and OS version are you using Neville?
Many thanks.
User avatar
neville
Posts: 64
Joined: Wed Jul 31, 2024 1:03 am
Location: Canberra, Australia
Contact:

Re: menu builder crash

Post by neville »

That's MacOS Ventura, on a MacAir.

I haven't searched the LC Quality Control for this yet, but it sounds like it is an old bug we have inherited. I'll look for a workaround. My latest suspicion that

put the editmenus of this stack -> false

may have something to do with it
User avatar
neville
Posts: 64
Joined: Wed Jul 31, 2024 1:03 am
Location: Canberra, Australia
Contact:

Re: menu builder crash

Post by neville »

No, setting the editmenus works correctly (hiding the menu and raising the stack on a Mac) but the Menu Builder still doesnt work with it set to either true or false, everything except the New and Edit buttons is disabled. With New I can create a new menu, but deleting that then crashes the IDE.

A good possibility is my copy of the Menu Builder stack has been corrupted somehow (so the bug lies in how it got corrupted.) I will next try re-installing OxTLite (hmm maybe just the Menu Manager if I can track it down). But not now
User avatar
neville
Posts: 64
Joined: Wed Jul 31, 2024 1:03 am
Location: Canberra, Australia
Contact:

Re: menu builder crash

Post by neville »

No idea what caused the Menu Builder problem but I fixed it by :
creating a new stack
opening MenuBuilder to create a new menubar for the new stack - MB worked correctly.
close the stack
MenuBuilder now opens with my original stack with items enabled, no crashes.
User avatar
tperry2x
Posts: 3210
Joined: Tue Dec 21, 2021 9:10 pm
Location: Somewhere in deepest darkest Norfolk, England
Contact:

Re: menu builder crash

Post by tperry2x »

There's some kind of bug there somewhere, but the menu builder is something I want to look into at some point anyway. I'm glad it's resolved for you at the moment, but I'd still like to find out why it has this weirdness.
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: menu builder crash

Post by OpenXTalkPaul »

tperry2x wrote: Thu Aug 29, 2024 2:35 pm There's some kind of bug there somewhere, but the menu builder is something I want to look into at some point anyway. I'm glad it's resolved for you at the moment, but I'd still like to find out why it has this weirdness.
The menu builder has always been kind of weird I think. Personally I don't use it, I usually just copy-paste an existing menu and then modify it to suite the project. I probably would use custom menus more often if the tool for their construction was less wierd. TerryL's work on that helped a bit but I'd like to try out some other ideas for a menu building tool.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests